VMware in Ubuntu hangs ISO to virtual CD-ROM

Source: Internet
Author: User
Tags cpu usage

Under Linux mount (mount) CD-ROM image file. Removable hard disk. U disk. Windows and NFS network shares http://www.codeweblog.com/ under-linux-mount-mount-cd-rom-image-file-removable-hard-disk-u-disk-windows-and-nfs-network-shares/


Linux is an excellent open source operating system the can run on small to large to giant types of handheld computer Syst EMS, with the Linux system, the growing maturity and stability as well as their unique advantages of open source, Linux in T He world been more widely used. Now many companies is from the UNIX system, computer systems, Linux systems and Windows system components of the hybrid s Ystem, different systems often need to exchange data. Here I offer my own practical experience tell us about how to mount the Linux system (mount) CD-ROM image file, move the H ARD disk, U disk, and Windows network shares and UNIX NFS network shares.
Mount Command (Mount)
First of all, tell us about mount to use the command, Mount command parameter are very large, here mainly to talk a Bout today, we'll use the.
Command format:
Mount [-t vfstype] [-O options] Device dir
of which:
1.-T vfstype specified file system type, usually do not has a to is specified. Mount'll automatically select the correct type. Common types is:
CD-ROM or CD-ROM 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 sharing Network:nfs
2.-o options mainly used to describe the by equipment or files attached. Commonly used parameters is:
loop:used to mount a file as a hard disk partition on the system ro:read-only mounted equipment using Rw:read-write MOU nted device using Iocharset:access to the file system used by the specified character set 3.device to mount (Mount) equip ment.
4.dir device on the system, mount point.
CD-ROM image file attached disk technology in recent years great progress, new computer systems is equipped with large CA Pacity disk systems, in Windows, many people is used to make the software and data through a virtual CD-ROM image File to use. This have many advantages:first, the drive to reduce wear and tear; Large storage capacity hard drives be now dozens of CD-ROM image file is not a problem, as used with the transfer is Very convenient; Third, the hard drive is much higher than the CD-ROM read speed, the read speed, CPU usage greatly reduced. In fact, the production and use of the Linux system disc images more convenient than the Windows system, does not borrow any third- Party packages.
1 CD-ROM image file from the CD-ROMs. The CD into the drive, execute the following command.
# Cp/dev/cdrom/home/sunky/mydisk.iso or # DD if =/dev/cdrom of =/Home/sunky/mydisk.iso
Note:the implementation of any of the above command to the current drive can is made into a CD-ROM in the CD-ROM image fi Le/home/sunky/mydisk.iso
2, the files and directories on the CD-ROM image file, execute the following command.
# mkisofs-r-j-v Mydisk-o/Home/sunky/mydisk.iso/home/sunky/mydir
Note:this Command Will/home/sunky/mydir directory of the directories and files on CD-ROM image file/home/su Nky/mydisk.iso, CD label Is:mydisk
3, CD-ROM image file mounted (mount)
# Mkdir/mnt/vcdrom
Note:create a directory used as a mount point (mount point)
# Mount-o Loop-t Iso9660/home/sunky/mydisk.iso/mnt/vcdrom
Note:use The/mnt/vcdrom can access the disk image file Mydisk.iso in all the files.

Mount removable hard disk on Linux systems, USB interface, removable hard disk is treated as a SCSI device. Into the mobile hard disk before your use of the fdisk-l or more/proc/partitions View the system hard drive and hard disk Partition situation.
[Root at Pldyrouter/] # Fdisk-l
disk/dev/sda:73 Dot 4 GB, 73407820800 bytes
255 heads, Sectors/track, 8924 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Device Boot Start End Blocks Id System
/DEV/SDA1 1 4 32098 + de Dell Utility
/dev/sda2 * 5 2554 20482875 7 Hpfs/ntfs
/Dev/sda3 2555 7904 42973875, Linux
/dev/sda4 7905 8924 8193150 f Win95 Ext ' d (LBA)
/Dev/sda5 7905 8924 8193118 + the Linux swap
Here's can clearly see that the system have a SCSI hard DISK/DEV/SDA and it four disk partition/dev/sda1-/dev/s DA4,/DEV/SDA5 is the PARTITION/DEV/SDA4 logical partitions. Connected mobile Hard disk, then fdisk-l or more/proc/partitions View the system hard drive and hard disk partitioning [Root at Pldyrouter/] # Fdisk-l
disk/dev/sda:73 Dot 4 GB, 73407820800 bytes
255 heads, Sectors/track, 8924 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Device Boot Start End Blocks Id System
/DEV/SDA1 1 4 32098 + de Dell Utility
/dev/sda2 * 5 2554 20482875 7 Hpfs/ntfs
/Dev/sda3 2555 7904 42973875, Linux
/dev/sda4 7905 8924 8193150 f Win95 Ext ' d (LBA)
/Dev/sda5 7905 8924 8193118 + the Linux swap
disk/dev/sdc:40.0 GB, 40007761920 bytes
255 heads, Sectors/track, 4864 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Device Boot Start End Blocks Id System
/DEV/SDC1 1 510 4096543 + 7 Hpfs/ntfs
/DEV/SDC2 511 4864 3497 3505 f Win95 Ext ' d (LBA)
/DEV/SDC5 511 4864 3497 3473 + b Win95 FAT32
We should is able to find more than a SCSI hard DISK/DEV/SDC and its disk PARTITION/DEV/SDC1?,/DEV/SDC2, where /DEV/SDC5 IS/DEV/SDC2 partition logical partitions. We can use the following command MOUNT/DEV/SDC1 AND/DEV/SDC5.
# Mkdir-p/MNT/USBHD1
# Mkdir-p/MNT/USBHD2
Note:create a directory used as a mount point (mount point)
# mount-t NTFS/DEV/SDC1/MNT/USBHD1
# mount-t VFAT/DEV/SDC5/MNT/USBHD2
NOTE:NTFS formatted disk partition should use-t NTFS parameters, FAT32 formatted disk partition should use-t VFAT Paramet ERs. If The file name is displayed as garbled characters or no show, you can use the following command format.
# mount-t Ntfs-o iocharset = cp936/dev/sdc1/mnt/usbhd1
# mount-t Vfat-o iocharset = cp936/dev/sdc5/mnt/usbhd2
Linux system partition using FDISK and MKFS command to create a command file system partition can is made into a mobile ha RD Disk Linux system unique to ext2, ext3 format. Thus, even more convenient and use Linux. Use the following command can directly attached.
# MOUNT/DEV/SDC1/MNT/USBHD1

U disk and Mount removable hard disk USB interface on the Linux systems, like U disk is treated as a SCSI device. Using the same methods and mobile hard disk. Insert U Disk before the fdisk-l or more/proc/partitions View the system hard drive and hard disk partition Si Tuation.
[Root at Pldyrouter Root] # fdisk-l
disk/dev/sda:73 Dot 4 GB, 73407820800 bytes
255 heads, Sectors/track, 8924 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Device Boot Start End Blocks Id System
/DEV/SDA1 1 4 32098 + de Dell Utility
/dev/sda2 * 5 2554 20482875 7 Hpfs/ntfs
/Dev/sda3 2555 7904 42973875, Linux
/dev/sda4 7905 8924 8193150 f Win95 Ext ' d (LBA)
/Dev/sda5 7905 8924 8193118 + the Linux swap
Into the u-hours, and then fdisk-l or more/proc/partitions View the system hard drive and hard disk partition Situatio N.
[Root at Pldyrouter Root] # fdisk-l
disk/dev/sda:73 Dot 4 GB, 73407820800 bytes
255 heads, Sectors/track, 8924 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Device Boot Start End Blocks Id System
/DEV/SDA1 1 4 32098 + de Dell Utility
/dev/sda2 * 5 2554 20482875 7 Hpfs/ntfs
/Dev/sda3 2555 7904 42973875, Linux
/dev/sda4 7905 8924 8193150 f Win95 Ext ' d (LBA)
/Dev/sda5 7905 8924 8193118 + the Linux swap
disk/dev/sdd:131 MB, 131072000 bytes
9 Heads, Sectors/track, 888 cylinders
Units = Cylinders of 288 * 147456 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 * 1 889 127983 + b Win95 FAT32
Partition 1 has different physical/logical endings:
Phys = (+, 8, +) logical = (888, 7, 31)
System more than a SCSI hard disk/dev/sdd, and a disk partition/dev/sdd1,/dev/sdd1 are what we want to mount the U Disk.
# Mkdir-p/Mnt/usb
Note:create a directory used as a mount point (mount point)
# mount-t Vfat/dev/sdd1/mnt/usb
Note:it can be/mnt/usb to visit U disk, and if the file name was displayed as garbled characters or no show, you can U Se the following command.
# mount-t Vfat-o iocharset = Cp936/dev/sdd1/mnt/usb
Mount a network share Windows file Sharing is the core of Windows Smb/cifs, to be mounted under the Linux (Mount) window s disk sharing, must install and use the Samba package. Now most popular Linux distributions already contain the Samba package, if do installed install Linux system, please firs T install Samba Samba. Of course, can also go to
www.samba.org. Download the new version is 3.0.10 version.
When the Windows system after sharing set, you can mount the Linux client (mount), the specific operation is as follows:
# Mkdir-p/Mnt/samba
Note:create a directory used as a mount point (mount point)
# mount-t Smbfs-o username = Administrator, password = pldy123//10.140.133.23/c $/Mnt/samba
Note:administrator and pldy123 is the IP address 10.140.133.23 Windows computer, a user name and password, C $ is a disk of T His computer to share
So can the Linux system through The/mnt/samba to access Windows files on the system disk. Above operations in Redhat as Server 3, Redflag Server 4.1, SuSE Server 9, and Windows NT 4.0, Windows $, Windows XP, W Indows 2003 Environment test.
NFS mount Unix System similar to Windows file sharing network to share, UNIX (Linux) system also have its own network Shari Ng, that's NFS (Network File System), here we had the SUN Solaris2.8 and REDHAT as server 3 as a example a simple expla In how to mount the NFS in Linux network share.
The client in Linux mount (Mount) for NFS shared disk, you must configure NFS server.
1, Solaris NFS Server System configuration is as follows:
(1) Modify/etc/dfs/dfstab, increase the shared directory share-f Nfs-o Rw/export/home/sunky
(2) Start the NFS Service #/Etc/init.d/nfs.server start
(3) NFS services started, you can use the following command to add new shared # Share/export/home/sunky1
# Share/export/home/sunky2
Note:/Export/home/sunky And/export/home/sunky1 is ready to share the directory 2, Linux NFS Server System Configur Ation is as follows:
(1) Modify/etc/exports, increase the shared directory/export/home/sunky 10.140.133.23 (rw)
/Export/home/sunky1 * (rw)
/Export/home/sunky2 linux-client (rw)
Note:/export/home/directory sunky, Sunky1, Sunky2 is ready to share the directory, 10.140.133.23, *, Linux-client are Allowed to mount this share Linux client IP address or host name. If you want to use the host name linux-client to the server host in/etc/hosts file to increase linux-client host IP de Finition. The following format:
10.140.133.23 linux-client
(2) Start and stop NFS service/etc/rc.d/init.d/portmap start (the default in the REDHAT started in Portmap)
/Etc/rc.d/init.d/nfs Start start the NFS Service/etc/rc.d/init.d/nfs stop Stop the NFS service note:if MoD Ify/etc/export file to add new shares, should stop the Service for NFS, and then start NFS service can the sharing of the Additional work. Use the command EXPORTFS-RV can achieve the same effect.
3, Linux client mount (Mount) other Linux system or UNIX system, NFS share # Mkdir-p/Mnt/nfs
Note:create a directory used as a mount point (mount point)
# mount-t Nfs-o rw 10.140.133.9:/EXPORT/HOME/SUNKY/MNT/NFS
Note:here We assume 10.140.133.9 is the NFS server host IP address, of course, where can use the host name, and in the Local/etc/hosts file to increase the definition of the server IP. /Export/home/sunky shared directory for the server.
So can the Linux client Through/mnt/nfs to access other Linux system or UNIX system out of NFS Share file. Above operations in Redhat as Server 3, Redflag server4.1, SuSE Server 9, and Solaris 7, Solaris 8, Solaris 9 for x86 &amp ; SPARC environment test.

Linux: How to mount a CD-ROM drive https://i.cnblogs.com/EditPosts.aspx?opt=1

How do I mount an optical drive under the command line of the Linux operating system? You need to mount the CD or DVD drive using the Mount command, first you need to insert a CD or DVD into the CD-ROM drive and then type the mount command below to mount the disc.

get the device name for CD/DVD
use the following command to get the name of the Dvd/cd-rom/writer device:
#lsblk
or
#dmesg | egrep-i--color ' cdrom|dvd|cd/rw|writer

Command output:
Ata2.00:atapi:vmware Virtual IDE CDROM Drive, 00000001, Max Udma/33
Sr0:scsi3-mmc drive:1x/1x writer Dvd-ram cd/rw xa/form2 Cdda Tray

Mount Dvd/cdrom on a Linux system
#mount-t iso9660-o ro/dev/device name/mount directory name

To create a mount point, enter the mkdir command:
#mkdir-P/mnt/cdrom
Mount/dev/cdrom or/dev/sr0:
#mount-T Iso9660-o ro/dev/cdrom/mnt/cdrom
Or
#mount-T Iso9660-o ro/dev/sr0/mnt/cdrom

Use the following two commands to verify that the optical drive is mounted on the/mnt/cdrom, and enter the following command:
#mount
#df

How do I uninstall an already mounted optical drive?
Enter the following command:
#umount/cdrom
Or
#umount/dev/cdrom
Or
#umount/mnt/cdrom

How do I mount the optical drive in Red Hat Linux under a VMware virtual machine and find the required rpm file? https://i.cnblogs.com/EditPosts.aspx?opt=1

How to hang ISO to virtual CD-ROM under Ubuntu https://i.cnblogs.com/EditPosts.aspx?opt=1

VMware in Ubuntu hangs ISO to virtual CD-ROM

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.