User Tools

Site Tools


removable_disk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
removable_disk [2010/05/14 19:54]
modulistic Oops! mke2fs had no typos! sorry ;)
removable_disk [2010/11/12 20:08] (current)
darrick
Line 156: Line 156:
 Assuming the drive was assigned node /dev/sdX, the partition can now be formatted and labeled using: Assuming the drive was assigned node /dev/sdX, the partition can now be formatted and labeled using:
  
-  mke2fs -j -T largefile -L "​usbchanger1"​ /dev/sdX1+  mke2fs -j -T largefile -L "​usbchanger1" ​-m 0 /dev/sdX1
  
 This will create a new ext3 filesystem on the partition with filesystem label '​usbchanger1'​. Now unplug the USB drive, wait a few seconds, then plug it back in. A few seconds after plugging it in you should see a symlink /​dev/​disk/​by-label/​usbchanger1 pointing to whatever device node udev decided to assign to the partition. Now try: This will create a new ext3 filesystem on the partition with filesystem label '​usbchanger1'​. Now unplug the USB drive, wait a few seconds, then plug it back in. A few seconds after plugging it in you should see a symlink /​dev/​disk/​by-label/​usbchanger1 pointing to whatever device node udev decided to assign to the partition. Now try:
Line 170: Line 170:
 ====7. Installing vchanger==== ====7. Installing vchanger====
  
-Place a copy of the [[#​vchanger|vchanger shell script]] in the /etc/bacula directory, than change its owner and permissions as foolows:+Place a copy of the [[#​vchanger|vchanger shell script]] in the /etc/bacula directory, than change its owner and permissions as follows:
  
   chown root.disk /​etc/​bacula/​vchanger   chown root.disk /​etc/​bacula/​vchanger
Line 386: Line 386:
 # Return length of string $1 # Return length of string $1
 # #
-function strlen () +if [ `uname` = "​FreeBSD"​ ] 
-+then 
-   ​expr length $1 +        ​function strlen () 
-}+        
 +                expr -- "​$1"​ : "​.*"​ 
 +        } 
 +else 
 +        function strlen () 
 +        { 
 +                ​expr length $1 
 +        } 
 +fi 
  
 # #
removable_disk.1273863275.txt.gz · Last modified: 2010/05/14 19:54 by modulistic