"); //-->
1、从光盘制作光盘镜像文件。将光盘放入光驱,执行下面的命令。
#cp /dev/cdrom /home/sungc/mydisk.iso 或
#dd if="/dev/cdrom" of="/home/sungc/mydisk".iso
注:执行上面的任何一条命令都可将当前光驱里的光盘制作成光盘镜像文件/home/sungc/mydisk.iso
2、将文件和目录制作成光盘镜像文件,执行下面的命令。
#mkisofs -r -J -V mydisk -o /home/sungc/mydisk.iso /home/sungc/ mydir
注:这条命令将/home/sungc/mydir目录下所有的目录和文件制作成光盘镜像文件/home/sungc/mydisk.iso,光盘卷标为:mydisk
3、光盘镜像文件的挂接(mount)
#mkdir /mnt/vcdrom
注:建立一个目录用来作挂接点(mount point)
#mount -o loop -t iso9660 /home/sungc/mydisk.iso /mnt/vcdrom
注:使用/mnt/vcdrom就可以访问盘镜像文件mydisk.iso里的所有文件了。
4.硬盘的挂接
mount -t filetype /dev/type of disk /mnt/..
5.U盘的挂接
由于U盘的类型为FAT32所以用:
fdisk -l //查询
mount -t vfat /dev/sdb1 /mnt/..
6.挂接windows共享文件
首先保证安装了Samba Server,然后如下:
mount -t samfs -o username="administrator",password=***** //ip地址/C$ /mnt/..
Notice:c$ is share of disk,
password is setted by youself,
ip is address of computer you hope to connect
*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。