Cannot remount a cdrom which was unmounted
Greetings all,
I'm using CentOS 6.2 upgraded to CentOS6.3 which is running under VMware Workstation and it works just fine. I wanted to install the VMware Tools per the VMware instructions but issued the command 'umount /dev/sr0' and the desktop icon was gone and I don't know how to remount the cdrom. I'm a newbie and really never needed to use the mount command and still can't figure out how to mount file systems correctly. What would be the correct way to do the remount and what would the commands be? Thanks |
AFIK (I could be wrong) /dev/sr0 is a link to /dev/cdrom when it is mounted.
To remount just use 'mount /dev/cdrom' if you want to mount to a directory then use 'mount /dev/cdrom /mnt/tmp(example)' Hope this helps. |
Thanks Honeybadger ... sounds reasonable and I'll try it and advise.
|
I generally find that the udev rules will automatically re-mount it if you (physically) remove and then re-insert the CD.
|
Well, first attempt didn't work at all.
The cdrom/dvd drive doesn't have a disk in it and prehaps that's why things aren't working...just guessing as I'm a newbie. There aren't any entries in /etc/fstab or /etc/mtab, for the cd/dvd drive and don't know if one has to be there??? and if so I wouldn't know how to define it. Can an empty cd/dvd drive be mounted and shouldn't it be defined anywhere in the system? Thanks |
1.
Quote:
2. Have you read my post above? 3. Quote:
|
1. Tried a whole lot of variations of the mount command and checked various files.
2. Yes, I did read the post. 3. Yes, I also, rebooted the system and now I'll try it again with a dvd in the drive at boot time. |
Quote:
|
Yancek, will try to mount with disk in drive and return with commands.
Thanks |
Greetings again all and here is an update on what I've done and found out.
[root@localhost /]# umount /dev/sr0 [root@localhost /]# mount /dev/sda2 on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0") /dev/sda1 on /boot type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) [root@localhost /]# mount /dev/sr0 /mnt [root@localhost /]# pwd / [root@localhost /]# cd mnt [root@localhost mnt]# ls -la |more total 36 drwx------. 5 xxxxxx 196 Jul 21 16:35 . dr-xr-xr-x. 25 root root 4096 Sep 1 14:36 .. drwx------. 2 xxxxxx 8700 Jul 21 16:34 Excel Spread Sheets drwx------. 2 xxxxxxxx xxxxxxxx 21512 Sep 1 15:19 MVSJCLLIB drwx------. 6 xxxxxxxx xxxxxxxx 840 Jul 21 16:38 My Scans [root@localhost mnt]# mount /dev/sda2 on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0") /dev/sda1 on /boot type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) /dev/sr0 on /mnt type udf (rw) [root@localhost mnt]# pwd /mnt [root@localhost mnt]# showed all the files on the cd. I didn't have to use the -F option in the mount command. |
may b there is a problem with your disk... try another disk.... most probably it will b automatically mounted on /media ... if not try mount /dev/cdrom /media ..... if u want to configure /etc/fstab then write
/dev/cdrom /media iso9660 defaults,loop 0 0 |
All times are GMT -5. The time now is 09:48 AM. |