Advertise

Saturday, October 31, 2009

How to Access USB Drive In Linux

Hi All

First Step is to Insert PenDrive into Any Linux PC.Then
Open the Terminal and type Below Commands

#fdisk -l

ram@ram-laptop:~$ sudo fdisk -l
[sudo] password for ram:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000080

Device Boot Start End Blocks Id System
/dev/sda1 * 1 5099 40957686 7 HPFS/NTFS
/dev/sda2 5100 19457 115330635 f W95 Ext'd (LBA)
/dev/sda5 5100 9561 35840983+ 7 HPFS/NTFS
/dev/sda6 9562 19048 76204296 83 Linux
/dev/sda7 19049 19457 3285261 82 Linux swap / Solaris

Disk /dev/sdb: 4022 MB, 4022337536 bytes
255 heads, 63 sectors/track, 489 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0105a552

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 490 3928032+ b W95 FAT32
Partition 1 has different physical/logical endings:
phys=(488, 254, 63) logical=(489, 5, 28)



Here in the above List Look for Last Device that Got Detected By Linux PC.It would be FAT32

Then Next Step is to Mount the Device /dev/sdb1(Note it could vary in each user case) to any Folder in your PC As mentioned in the Below Mentioned Example.

#mount /dev/sdb1 /mnt
#cd /mnt
#ls


Here in my case i am mounting my Device to /mnt Directory .

No comments:

Post a Comment