LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-30-2012, 11:19 AM   #1
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 436

Rep: Reputation: 33
Question 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
 
Old 08-30-2012, 02:45 PM   #2
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
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.
 
Old 08-30-2012, 04:10 PM   #3
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 436

Original Poster
Rep: Reputation: 33
Wink

Thanks Honeybadger ... sounds reasonable and I'll try it and advise.
 
Old 08-30-2012, 06:50 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
I generally find that the udev rules will automatically re-mount it if you (physically) remove and then re-insert the CD.
 
Old 08-30-2012, 08:39 PM   #5
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 436

Original Poster
Rep: Reputation: 33
Question

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
 
Old 08-30-2012, 08:48 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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'
 
Old 08-30-2012, 09:10 PM   #7
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 436

Original Poster
Rep: Reputation: 33
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.

Last edited by swamprat; 08-30-2012 at 09:11 PM.
 
Old 08-30-2012, 09:32 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,870

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
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.
 
1 members found this post helpful.
Old 08-31-2012, 03:42 PM   #9
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 436

Original Poster
Rep: Reputation: 33
Yancek, will try to mount with disk in drive and return with commands.

Thanks
 
Old 09-01-2012, 04:20 PM   #10
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 436

Original Poster
Rep: Reputation: 33
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_ubject_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_ubject_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.
 
Old 09-01-2012, 05:24 PM   #11
pgrvsunny
LQ Newbie
 
Registered: Sep 2012
Location: Jaipur
Posts: 3

Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"errors=remount-ro" auto fsck, then remount-rw possible? Sepero Linux - Hardware 0 03-28-2007 04:23 AM
I am running SUSE Linus 9.2 my CDROM & floppy says unmounted dragonhawk7 Linux - Newbie 1 07-31-2006 02:02 PM
remount to hd ewt3y Linux - Newbie 1 08-16-2005 05:28 AM
Remount? Samba? ricake Mandriva 1 03-30-2004 09:22 PM
Cannot remount rw Andiroo Red Hat 3 12-02-2003 11:33 AM


All times are GMT -5. The time now is 09:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration