Difference between revisions of "How to mount usb drive"
Line 5: | Line 5: | ||
{{NotePre | {{NotePre | ||
|text= | |text= | ||
− | root@iplog:/media# fdisk -l | + | root@iplog:/media# fdisk -l<br> |
+ | |||
Disk /dev/mmcblk0: 7458 MB, 7820279808 bytes, 15273984 sectors | Disk /dev/mmcblk0: 7458 MB, 7820279808 bytes, 15273984 sectors | ||
238656 cylinders, 4 heads, 16 sectors/track | 238656 cylinders, 4 heads, 16 sectors/track |
Revision as of 08:14, 14 December 2020
This site is under construction!
After you plug in your USB device to your USB port, Linux system adds a new block device into /dev/ directory. At this stage, you are not able to use this device as the USB filesystem needs to be mouted before you can retrieve or store any data. To find out what name your block device file have you can run fdisk -l command.
root@iplog:/media# fdisk -l<br> Disk /dev/mmcblk0: 7458 MB, 7820279808 bytes, 15273984 sectors 238656 cylinders, 4 heads, 16 sectors/track Units: cylinders of 64 * 512 = 32768 bytes Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type /dev/mmcblk0p1 0,1,1 1023,3,16 16 3818495 3818480 1864M 83 Linux /dev/mmcblk0p2 1023,3,16 1023,3,16 3818496 7636991 3818496 1864M 83 Linux /dev/mmcblk0p3 1023,3,16 1023,3,16 7636992 11455487 3818496 1864M 83 Linux /dev/mmcblk0p4 1023,3,16 1023,3,16 11455488 15273983 3818496 1864M 83 Linux Disk /dev/sda: 3860 MB, 4047503360 bytes, 7905280 sectors 492 cylinders, 255 heads, 63 sectors/track Units: cylinders of 16065 * 512 = 8225280 bytes Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type /dev/sda1 0,14,31 491,254,63 912 7905279 7904368 3859M c Win95 FAT32 (LBA) Partition 1 has different physical/logical end: phys=(491,254,63) logical=(492,20,40)
After you plug in your USB device to your IPLOG unit, It will add new block device into /dev/ directory. To verify it, use the following command.
root@iplog:~# fdisk -l
USB will start with name SDA