LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot remount a cdrom which was unmounted (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-remount-a-cdrom-which-was-unmounted-4175424786/)

swamprat 08-30-2012 10:19 AM

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

honeybadger 08-30-2012 01:45 PM

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.

swamprat 08-30-2012 03:10 PM

Thanks Honeybadger ... sounds reasonable and I'll try it and advise.

chrism01 08-30-2012 05:50 PM

I generally find that the udev rules will automatically re-mount it if you (physically) remove and then re-insert the CD.

swamprat 08-30-2012 07:39 PM

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

chrism01 08-30-2012 07:48 PM

1.
Quote:

Well, first attempt didn't work at all.
what did you actually do??

2.
Have you read my post above?

3.
Quote:

Can an empty cd/dvd drive be mounted
'No'

swamprat 08-30-2012 08:10 PM

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.

yancek 08-30-2012 08:32 PM

Quote:

The cdrom/dvd drive doesn't have a disk in it and prehaps that's why things aren't working...just guessing
Good guess. You don't mount drives but rather the filesystem on the drive and if you have a blank CD/DVD there is nothing to mount and certainly nothing to mount if you don't even have a CD/DVD in the drive. Most recent Linux distributions will auto-mount a CD/DVD/Flash drive. Since we don't know what your "variations of the mount command" were there's not much we can do to point you in the right direction. Posting exact commands you tried as suggested above would be more useful.

swamprat 08-31-2012 02:42 PM

Yancek, will try to mount with disk in drive and return with commands.

Thanks

swamprat 09-01-2012 03:20 PM

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.

pgrvsunny 09-01-2012 04:24 PM

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.