CentOS7 Linux Mount ISO

[mi@localLinux ~]$ su
密码:
[root@localLinux mi]# cd /run/media/mi/v/系统镜像/centOS/
[root@localLinux centOS]# ls
CentOS 64 位_虚拟机.rar         CentOS-7-x86_64-DVD-1503-01.iso         centos document
CentOS-6.6-x86_64-bin-DVD1.iso  CentOS-7-x86_64-Everything-1503-01.iso
CentOS-6.6-x86_64-bin-DVD2.iso  CentOS-7-x86_64-Minimal-1503-01.iso
[root@localLinux centOS]# cp CentOS-7-x86_64-Everything-1503-01.iso /usr/local/src
[root@localLinux centOS]# cd /usr/local/src
[root@localLinux src]# ls
CentOS-7-x86_64-Everything-1503-01.iso
[root@localLinux src]# mkdir /media/CentOS7-LocalSource
[root@localLinux mi]# mount -t iso9660 -o loop /usr/local/src/CentOS-7-x86_64-Everything-1503-01.iso /media/CentOS7-LocalSource
mount: /dev/loop0 Mount read-only
[root@localLinux media]# cd CentOS7-LocalSource/
[root@localLinux CentOS7-LocalSource]# ls
CentOS_BuildTag GPL LiveOS RPM-GPG-KEY-CentOS-7
EFI images Packages RPM-GPG-KEY-CentOS -Testing-7
EULA isolinux repodata TRANS.TBL
[root@localLinux CentOS7-LocalSource]# ls -l
total usage 1434
-rw-r--r--. 1 root root 16 Apr 1 2015 CentOS_BuildTag
drwxr-xr-x. 3 root root 2048 Mar 28 2015 EFI
-rw-r--r--. 1 root root 215 Mar 28 2015 EULA
-rw-r--r--. 1 root root 18009 Mar 28 2015 GPL
drwxr-xr-x. 3 root root 2048 Mar 28 2015 images
drwxr-xr-x. 2 root root 2048 Mar 28 2015 isolinux
drwxr -xr-x. 2 root root 2048 Mar 28 2015 LiveOS
drwxr-xr-x. 2 root root 1429504 Apr 1 2015 Packages
drwxr-xr-x. 2 root root 4096 Apr 1 2015 repodata
-rw-r-- r--. 1 root root 1690 Mar 28 2015 RPM-GPG-KEY-CentOS-7
-rw-r--r--. 1 root root 1690 Mar 28 2015 RPM-GPG-KEY-CentOS-Testing-7
-r--r--r--. 1 root root 2883 Apr 1 2015 TRANS.TBL

1.-t vfstype Specifies the type of the filesystem, usually not necessary. mount will automatically choose the correct type. Common types are:

CD or CD image: iso9660

DOS fat16 file system: msdos

Windows 9x fat32 file system: vfat

Windows NT ntfs file system: ntfs

Mount Windows file network share: smbfs

UNIX (LINUX) file network share: nfs

2.-o options Mainly used to describe the mounting method of the device or file. Commonly used parameters are:

loop: used to mount a file as a hard disk partition to the system

ro: mount the device in read-only mode

rw: mount the device in read-write mode

iocharset: specify the character set used to access the file system

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326469797&siteId=291194637