Joined: Mar 02, 2010 Posts: 1 Location: Kingston, Ontario, Canada
Posted: Wed Mar 03, 2010 8:34 pm Post subject: Questions about the mount cmd:
I was wondering how this works. Since installing Linux I have mostly used my CDROM under X and therefore had no need to use the mount command. Now reading these articles I thought I would try it out. So I logged into a tty as my user name and tried the command:
mount /media/cdrom
I got the error message:
mount: can't find /media/cdrom in /etc/fstab/ or /etc/mtab
So I changed to root and had a look in /media. There was a file in there that had the same name as the original volume name that windows had put on the CD I had in the drive. so I tried that name in place of /cdrom still same error.
Do I need to edit my fstab file? Or is there something else I am missing.
I am running OpenSuSE 11.2 on a Toshiba Tecra notebookwitha Core2 Duo T9400 2.53 GHz processor 4 GB RAM and a 180GB HDD with 1 swap and 3 ext4 partitions.
Joined: Jul 7, 2003 Posts: 1267 Location: Boise, ID, USA
Posted: Thu Mar 04, 2010 1:03 pm Post subject:
Greetings. From what you said, it looks like you may have tried to run the command without being root. Non-root users cannot perform administrative tasks such as mounting a file system (and in Linux, everything is considered a file system, including hardware). Hope that helps.
Posted: Thu Mar 04, 2010 8:41 pm Post subject: Re: Questions about the mount cmd:
Pigloo wrote:
I was wondering how this works. Since installing Linux I have mostly used my CDROM under X and therefore had no need to use the mount command. Now reading these articles I thought I would try it out. So I logged into a tty as my user name and tried the command:
mount /media/cdrom
I got the error message:
mount: can't find /media/cdrom in /etc/fstab/ or /etc/mtab
So I changed to root and had a look in /media. There was a file in there that had the same name as the original volume name that windows had put on the CD I had in the drive. so I tried that name in place of /cdrom still same error.
Do I need to edit my fstab file? Or is there something else I am missing.
I am running OpenSuSE 11.2 on a Toshiba Tecra notebookwitha Core2 Duo T9400 2.53 GHz processor 4 GB RAM and a 180GB HDD with 1 swap and 3 ext4 partitions.
If you can't find anything in /etc/fstab related to your cdrom drive, then a line in /etc/fstab will have to added. First make sure that the drive ISN'T there by reading the file and verifying that each /dev/hdx and/or /dev/sdx is accounted for. It's very unlikely that it ISN'T there.
Most likely you either used the wrong file path/name or the line for the cdrom doesn't have the user option, under options, that the one below does.
As this line from /etc/fstab was taken from a Debian machine my guess is that the correct path is /media/cdrom0. That's a zero after cdrom not a capital o.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
Help us cut cost by not downloading the whole site!
Use of automated download sofware ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and therefore is expressedly prohibited.
For more details on this, take a look
here
Login
Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.
Help us cut cost by not downloading the whole site!
Use of automated download sofware ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and therefore is expressedly prohibited.
For more details on this, take a look
here