One, Mount USB drive Now I use the Ubuntu12.04 when inserting a USB stick will be mounted directly to the/media/,
10:[email protected]:linc$ df-hfilesystem Size used Avail use% mounted ON/DEV/SDC 947M 638M 310M 68%/media/72d2-11e2/dev/sdb 5.0G 1.5G 3.5G 31%/media/8221-13e3
But the antique like my Fedora14 is not so, so I only have to manually hang it under the/mnt/usb/.
Take my Samsung phone as an example, the process is as follows:
1. Connect the data cable to see if the system is recognized:
10:[email protected]:linc$ lsusbbus 001 Device 004:id 04e8:681c Samsung Electronics Co., Ltd Galaxy portal/spica/s
2.fdisk View disk Name
10:[email protected]:linc$ sudo fdisk-l ... disk/dev/sdb:5354 MB, 5354029056 bytes165 heads, sectors/track, 1022 cylinders, total 10457088 sectorsunits = sectors of 1 * bytessector size (logical/physical): bytes/512 bytesi/o size (minimum/optimal): bytes/512 by Tesdisk identifier:0x00000000 Device Boot Start End Blocks Id systemdisk/dev/sdc:993 MB, 993001472 bytes31 heads, sectors/track, 1009 cylinders, total 1939456 sectorsunits = sectors of 1 * = Bytessect or size (logical/physical): bytes/512 bytesi/o size (minimum/optimal): bytes/512 bytesdisk identifier:0x00000 Device Boot Start End Blocks Id System
From the results, the phone has two disks, a mobile phone comes with the storage, an additional sdcard.
3.mount creating a directory to place mounted files
sudo mkdir/mnt/usb
Mount:
sudo mount/dev/sdc/mnt/usb/
Complete!
Second, mount Windows partition principle is the same, but we want to find the Windows partition disk name, as follows:
11:[email protected]:~$ sudo fdisk-ldisk/dev/sda:1000.2 GB, 1000204886016 bytes255 heads, $ sectors/track, 121601 Cyli Nders, total 1953525168 sectorsunits = sectors of 1 * = bytessector size (logical/physical): bytes/4096 byte SI/O size (minimum/optimal): 4096 bytes/4096 bytesdisk identifier:0xf1eff1ef Device Boot Start End Blocks Id system/dev/sda1 * 204812684 102406311 7 hpfs/ntfs/exfatpartition 1 does not start on ph Ysical sector boundary./dev/sda2 204812746 1953523711 874355483 f W95 Ext ' d (LBA) Partition 2 does not start O N Physical Sector Boundary./dev/sda5 204812748 724724279 259955766 7 hpfs/ntfs/exfatpartition 5 does not STA RT on Physical Sector Boundary./dev/sda6 724725760 1933993983 604634112 linux/dev/sda7 1933996032 195 3523711 9763840-Swap/solaris Linux
Hpfs/ntfs/exfat's two device is the partition of Windows, and one mount comes in the same way as a USB flash drive.
sudo mount/dev/sda5/mnt/winsudo umount/mnt/win/
auto mount on boot
We just need to modify the/etc/fstab file to add the following:
#for the Windows/dev/sda5
Linux using tricks to mount USB and Windwos partitions