Linux under the ISO file system to do and pressure
1. Make ISO image file
Switch to root account, execute command
The code is as follows:
Cp/dev/cdrom Xxxxx.iso
Xxxxx.iso is the ISO filename that needs to be named. After execution, all files on the disc are mapped to Xxxxx.iso
2. Loading ISO files
Execute the command under the root account
The code is as follows:
Rm-rf/dev/cdrom
Ln-s/dev/loop7/dev/cdrom
Losetup/dev/loop7/path (ISO file path)
Mount/mnt/cdrom
If you need to change the disk
The code is as follows:
Losetup-d/DEV/LOOP7
and repeat
The code is as follows:
Losetup/dev/loop7/path (ISO file path)
Mount/mnt/cdrom
If it's a normal CD with ISO
You can use the command directly
The code is as follows:
Mount-t Iso9660-o Loop/... /*.iso/path
/.../*.iso is the ISO file path
/path is the mount point
Or
The code is as follows:
Mount-o Loop
If the destination directory does not exist, the folder is created with mkdir.
3. Uninstall the loaded ISO file
The code is as follows:
Umount-n < destination directory/iso filename >
Two ways to open ISO file under Linux
Method one, under Linux with Mount Mount command
Download the software on the web is in the ISO format, not engraved into a CD-ROM can read the file inside. No decompression.
In terminal use
The code is as follows:
Mount-o Loop/mnt/*/1.iso/mnt/cdrom
command, (where * is the path where you put the tool tray).
After you enter the command, open My Computer--〉 open the CD-ROM to see the file inside. Run Install or Autorun.
When prompted to Charudi two discs, type the command
The code is as follows:
Umount/mnt/cdrom
。
and then type
The code is as follows:
Mount-o Loop/mnt/*/2.iso/mnt/cdrom
(Change the file name of the first command to 2, which is the name of the second disc). Then return to the car. Wait on it.
Remove Mount
The code is as follows:
Umount/mnt/cdrom
Cases:
Mount the first disc
The code is as follows:
#mount-O Loop/mnt/*/1.iso/mnt/cdrom
Cancel Mount
The code is as follows:
#umount/mnt/cdrom
Mount Second Disc
The code is as follows:
#mount-O Loop/mnt/*/2.iso/mnt/cdrom
Cancel Mount
The code is as follows:
#umount/mnt/cdrom
Note: There are spaces between umount and/
/* is the path to the ISO file placement
Method One has been used successfully, Law II is not used, and there is no personal practice.
Method Two, use the virtual optical drive under Linux
In fact, do not need any virtual optical drive software, with the Mount command can be completed.
1. Make the CD into an ISO document
The code is as follows:
Cp/dev/cdrom Xxxxx.iso
Xxxxx.iso for you to name the mirrored file. After you execute this command, you can make the entire CD-ROM into an ISO file. You can add a path before xxxxx.iso.
2. Load the ISO file on the hard disk onto the disc (or virtual optical drive).
The code is as follows:
Mount-t Iso9660-o Loop/*/xxxxx.iso/mnt/iso
3. If the installation system disk provided by the file, such as adding a removal program, the system may prompt you to insert the disc, but we do not have a disc, only mirrors, how to do?
For Redhat, Mount ISO First, and then execute
The code is as follows:
Redhat-install-packages--isodir=/mnt/iso
4. General situation Virtual Optical drive
The code is as follows:
Rm-rf/dev/cdrom #删除光驱
< P>ln/dev/loop7/dev/cdrom
< P>LOSETUP/DEV/LOOP7/*/xxxxx.iso
< P>mount/mnt/cdrom
And then you look at the ISO file, does it turn into a virtual optical drive?
5. Cancel this optical drive:
The code is as follows:
Losetup-d/DEV/LOOP7
If you change the PLATE:
Just transfer ISO Association to/DEV/LOOP
The code is as follows:
LOSETUP/DEV/LOOP7/*/xxxxx.iso
Note:/* is the path, you may want to build a folder named CDROM under/mnt/