Linux J2EE环境搭建 1、U盘/光盘挂载
2017-06-20 00:00
465 查看
U盘的挂载
1.插入U盘。
2.用fdisk -l查看磁盘信息
[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 bytes
上面红色显示的即为U盘。
3.在mnt目录下建一个usb目录(这个可随意)
[root@localhost mnt]# mkdir usb
4.挂载U盘
[root@localhost mnt]# mount /dev/sdb /mnt/usb/
5.进入/mnt/usb 即可看到U盘的内容了。
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
1.插入U盘。
2.用fdisk -l查看磁盘信息
[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 bytes
上面红色显示的即为U盘。
3.在mnt目录下建一个usb目录(这个可随意)
[root@localhost mnt]# mkdir usb
4.挂载U盘
[root@localhost mnt]# mount /dev/sdb /mnt/usb/
5.进入/mnt/usb 即可看到U盘的内容了。
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
相关文章推荐
- Linux J2EE环境搭建 1、U盘/光盘挂载
- Linux学习之CentOS(六)---mount挂载设备(u盘,光盘,iso等 )
- linux挂载光盘、linux挂载U盘、linux的卸载umount
- linux mount挂载设备(u盘,光盘,iso等 )使用说明
- linux下挂载(mount)光盘镜像文件、移动硬盘、U盘、Windows网络共享和NFS网络共享
- Linux开发环境搭建(系统、samba、ssh、nfs、开发板挂载)
- linux 挂载 u盘,光盘 乱码问题
- linux下J2EE开发环境的搭建
- linux下搭建J2EE开发环境以及IDE的安装
- Linux开发环境的搭建与U盘启动的制作
- linux下挂载(mount)光盘镜像文件、移动硬盘、U盘、Windows和NFS网络共享
- [zz]linux下挂载(mount)光盘镜像文件、移动硬盘、U盘、Windows和NFS网络共享
- Linux开发环境搭建与使用——ubuntu物理机安装方法-U盘安装
- 在Linux中搭建J2EE环境
- linux通过挂载系统光盘搭建本地yum仓库的方法
- linux mount挂载设备(u盘,光盘,iso等 )使用说明
- linux mount挂载设备(u盘,光盘,iso等 )使用说明(Centos为例)
- linux下挂载(mount)光盘镜像文件、移动硬盘、U盘、Windows和NFS网络共享
- linux 挂载 光盘 软盘 U盘 外挂硬盘分区
- linux下挂载(mount)光盘镜像文件、移动硬盘、U盘、Windows网络共享和NFS网络共享