挂载u盘

来源:互联网 发布:变形相机是什么软件 编辑:程序博客网 时间:2024/06/06 00:28

1.鼠标先点入linux本机屏幕(不能用客户端)

2.插入u盘

3.查看分配挂载点

[root@bogon ~]# fdisk -l


Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001e220


   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          26      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              26         548     4194304   82  Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3             548        2611    16571392   83  Linux


Disk /dev/sdb: 7888 MB, 7888437248 bytes
13 heads, 13 sectors/track, 91166 cylinders
Units = cylinders of 169 * 512 = 86528 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1fe71fe6


   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        7973       91167     7029888    c  W95 FAT32 (LBA)


4.[root@bogon ~]# mkdir /mnt/usb
[root@bogon ~]# mount -t vfat /dev/sdb1 /mnt/usb/
[root@bogon ~]# cd /mnt/usb
[root@bogon usb]# ls
cms       GHO  MyClassLoader.java  System Volume Information  win????
Dog.java  jdk  Simple.java         web service                work__ygl__latest
[root@bogon usb]# cd ..
[root@bogon mnt]# cd /root
[root@bogon ~]# umount /dev/sdb1

0 0
原创粉丝点击