linux 下如何打开u盘

插入U盘之后,直接用mount就可以了。一般U盘都是/dev/sda1分区,下面的命令就可以了:

 

[root@localhost home]# /sbin/fdisk -l           //查看u盘加载在什么地方?

 

Disk /dev/sda: 155.9 GB, 155933511168 bytes
255 heads, 63 sectors/track, 18957 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14       18957   152167680   8e  Linux LVM

Disk /dev/sdb: 8537 MB, 8537505792 bytes
64 heads, 32 sectors/track, 8142 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

This doesn't look like a partition table
Probably you selected the wrong device.

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   ?      945327     1849555   925929529+  68  Unknown
Partition 1 does not end on cylinder boundary.
/dev/sdb2   ?      649505      912677   269488144   79  Unknown
Partition 2 does not end on cylinder boundary.
/dev/sdb3   ?      263179      945973   699181456   53  OnTrack DM6 Aux3
Partition 3 does not end on cylinder boundary.
/dev/sdb4   ?      680971      680981       10668+  49  Unknown
Partition 4 does not end on cylinder boundary.

[root@localhost uu]# mkdir /mnt/usb
[root@localhost uu]# mount /dev/sdb /mnt/usb    //加载完成



//mount -t vfat /dev/sda1 /mnt/
就行了。

 

http://fedora.linuxsir.org/main/node/83

你可能感兴趣的:(linux)