Linux J2EE環境搭建 一、U盤/光盤掛載

U盤的掛載spa

1.插入U盤。.net

2.用fdisk -l查看磁盤信息get

[root@localhost usb]# fdisk -l

Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 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      1012   8024467+  83  Linux
/dev/sda3          1013      1044    257040   82  Linux swap

Disk /dev/sdb : 511 MB, 511558144 bytes
16 heads, 61 sectors/track, 1023 cylinders
Units = cylinders of 976 * 512 = 499712 bytesit

 

上面紅色顯示的即爲U盤。class

 

3.在mnt目錄下建一個usb目錄(這個可隨意)margin

[root@localhost mnt]# mkdir usbtop


4.掛載U盤db

[root@localhost mnt]# mount /dev/sdb /mnt/usb/di

 

5.進入/mnt/usb 便可看到U盤的內容了。vi

6.卸載U盤

[root@localhost usb]# umount -l /dev/sdb

 

光盤的掛載

與U盤類似。

1.插入光盤。

 

2.掛載光盤

[root@localhost mnt]# mount /dev/cdrom /mnt/cdrom/

 

3.卸載光盤

[root@localhost usb]# umount -l /dev/cdrom

 

4.彈出光盤

[root@localhost usb]# eject

相關文章
相關標籤/搜索