Line 36: |
Line 36: |
| ====Formatting your USB drive==== | | ====Formatting your USB drive==== |
| =====ext3===== | | =====ext3===== |
− | Copied with slight changes from [[Affa#Alternatively_setup_a_USB_drive]] | + | <ol></li><li>Copied with slight changes from [[Affa#Alternatively_setup_a_USB_drive]] |
− | # Connect a USB hard disk to the USB Bus. Now you must determine what device the kernel has assigned to the drive. View the /var/log/message and search for ''Initializing USB Mass Storage driver''. A few lines below you'll find the name of the device. In this example it is ''sdc''. Replace ''/dev/sdc'' by ''your device'' in following instructions.
| + | </li><li>Connect a USB hard disk to the USB Bus. Now you must determine what device the kernel has assigned to the drive. View the /var/log/message and search for ''Initializing USB Mass Storage driver''. A few lines below you'll find the name of the device. In this example it is ''sdc''. Replace ''/dev/sdc'' by ''your device'' in following instructions. |
− | # Use the fdisk program to create a linux partition<br><code># fdisk /dev/sdc</code><br>You'll most likely find an existing vfat dos partition, which you have to delete first. In the following we assume, that you have created a single partition ''/dev/sdc1''.
| + | Use the fdisk program to create a linux partition |
− | # Now format the drive with an ext3 filesystem<br><code>mkfs.ext3 -L MyLabel /dev/sdc1</code>
| + | fdisk /dev/sdc |
− | # Make the mount point<br><code># mkdir -p /mnt/affadevice</code>
| + | You'll most likely find an existing vfat dos partition, which you have to delete first. In the following we assume, that you have created a single partition ''/dev/sdc1''. |
− | # Customize /etc/fstab as shown here: [[USBDisks#Customizing_fstab|Customizing fstab]]
| + | </li><li>Now format the drive with an ext3 filesystem |
− | # Mount the drive<br><code>mount /mnt/affadevice</code>
| + | mkfs.ext3 -L MyLabel /dev/sdc1 |
− | # Crosscheck your work using the df command<br><code># df</code>
| + | </li><li>Make the mount point |
| + | mkdir -p /mnt/affadevice |
| + | </li><li>Customize /etc/fstab as shown here: [[USBDisks#Customizing_fstab|Customizing fstab]] |
| + | </li><li>Mount the drive |
| + | mount /mnt/affadevice |
| + | </li><li>Crosscheck your work using the df command |
| + | df</li></ol> |
| | | |
| =====vfat===== | | =====vfat===== |