Changes

From Amahi Wiki
Jump to: navigation, search
50 bytes removed ,  02:28, 1 February 2019
* The "device name" of the drive needs to be determined.
<blockquote>Enter the following command:
{{Code| dmesg}}
</blockquote>
<blockquote>The following information is displayed:
{{Text|Text=<pre>[11122.304178] usb 2-4: new high-speed USB device number 5 using ehci_hcd
[11122.422152] usb 2-4: New USB device found, idVendor=0bc2, idProduct=3320
[11122.422165] usb 2-4: New USB device strings: Mfr=2, Product=3, SerialNumber=1
.
[11123.516813] sdb: sdb1
}}</pre>
</blockquote>
* The "device name" is "sdb1".
* The USB drive needs to be "unmounted".
<blockquote>
{{Code| umount /dev/sdb1}}
</blockquote>
* Format drive for ext3 filesystem and set drive label name as "usbdisk".
<blockquote>
{{Code| mkfs -t ext3 -v -L usbdisk /dev/sdb1}}
</blockquote>
:'''Please Note: THIS WILL ERASE ALL DATA ON /dev/sdb1, MAKE SURE THIS IS THE CORRECT USB DRIVE AND NOT ANOTHER DRIVE.'''
<blockquote>The following information is displayed:
{{Text|Text=<pre>mke2fs 1.42.5 (29-Jul-2012)
fs_types for mke2fs.conf resolution: 'ext3'
Filesystem label=usbdisk
.
Writing superblocks and filesystem accounting information: done
}}</pre>
</blockquote>
* Whenever a drive is formatted in Linux, about 5% is reserved of the total space on the drive for the operating system to continue using the hard drive to operate, even if it gets full. This is totally unnecessary for a USB external hard drive if it stores only data and not to run an operating system.
<blockquote>Enter the following to remove the reserved space:
{{Code| tune2fs -m 0 /dev/sdb1}}
</blockquote>
<blockquote>The following information is displayed:
{{Text|Text= tune2fs 1.42.5 (29-Jul-2012) Setting reserved blocks percentage to 0% (0 blocks)}}
* The external drive is now ready for use.
12,424

edits