Friday, May 12, 2006

Mount & unmount a medium in Linux

This was done in ESX VMware.

1) Make sure /mnt/cdrom exists. If not, type
mkdir /mnt/cdrom

2) To mount the CD, type
mount /dev/scd0 –t iso9660 –o ro /mnt/cdrom

In Linux system, mount is a command to mount a file system.
–t flag is a argument used to indicate the file system type.
iso9660 is a CD file system type that it supports.
-o ro means it mounts the file system read only.
/dev/scd0 is the source.
/mnt/cdrom is the destination.
3) Before a CD can’t be reject, the CD ROM has to be unmounted.
umount /mnt/cdrom


To mount/unmount a USB floppy drive:

1) Make sure /mnt/floppy exists. If not, type
mkdir /mnt/floppy
2) To mount the diskette, type
mount /dev/sda –o auto /mnt/floppy
3) To unmount a diskette,
umount /mnt/cdrom

No comments: