Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently installed a copy of what was formerly Mandrake 10 on my computer and I have been having issues with viewing the contents of the CD drive.
There is no problem installing packages off the OS CD which lead me to believe that is is mounted, I have checked fstab and its looks to be mounting it to ...mnt/cdrom however as I said before when I view the contents of mnt/cdrom there is nothing there. (I am also having the same problem with my USB HDD)
I am new at the whole Linux thing so i am not quite sure what files or logs to post. Any help would be greatly appreciated)
Use mount to see if it's actually mounted. And what type of cd's are you trying to view? If their media cd's, you don't view them, you play them. Only data cd's will show contents.
This resembles my fstab and should work fine. I suggest once you have switched to this (backing up original), if it workks add the more advanced options (i.e. the iocharset and codepage). I have added the gid option as this ensures files mounted will be accesible by the users group.
Also you should check the permissions of /mnt/USB and /mnt/cdrom to check they are readable as a normal user, if run the following command as root:
Thanks, that worked well, would you mind answering a few more questions?
I can now mount my CD drive and access it´s contents through both the standard and root user. However my second hard drive on my machine is now only mountable through the root user, hdb1. How would I go about setting permissions so the a standard user may mount and view its contents?(I have changed the permissions of the folder that is mounts to a). When i try to mount it I get a messages that reads ¨line 8 in fstab is bad¨ and that only the root may mount it.
Also when i try to mount my USB Drive i get a message informing me that line 11 in fstab is bad and that it can determine file system type and that there was none specified and I get this both in the root and normal account.
To make your 2nd hdd mountable add "users" to the options (have a look at the usb for an example) and for good measure add gid=100. It should automatically be mounted at boot with the options I suggested, was it not doing this?
As for the usb problem I beleieve this is a typo by me, instead of /dev/sda it should be /dev/sda1.
I have made the changes you suggested generic_genus and and I am able to mount both drives without a problem under the root user. However when i try to mount hdb1 I under my normal user I get an error saying that lines 7 and 8 of fstab are bad and mount: can't find /mnt/hd in /etc/fstab or /etc/mtab. When i try to mount the USB drive I get the same error, except time time it appears to be mounted (when i right click in the GUI the option to mount has turned to unmount). When i select unmount i get the same error as well as it telling me that the device is busy.
The line for hdb1 has gid in the wrong place. The third column is for mount options (i.e. what gid is) and the last two columns are for backup and whether the drive should be checked. In the example below I set these both to "off" (read up on these and general fsatb layout at at http://www.tuxfiles.org/linuxhelp/fstab.html ).
/dev/hdb1 /mnt/hd auto,users,defaults,gid=100 0 0
Also the line with /proc should not have that "none" at the end, delete that and all should be good
No idea why this works correctly for root as the syntax is wrong, but hey it doesn't matter if it works in the end.
Last edited by generic_genus; 01-09-2006 at 06:40 AM.
I have gotten rid of the line errors but I still can not mount the drives under the normal user. When I try to mount hdb1 I get an error saying ¨mount: only root can mount /dev/hdb1 on /mnt/hd" and when i try to mount the USB drive i get an error ¨mount: special device /dev/sda1 does not exist¨.
-----Automaticly uses supermount when i turn my USB drive on----------------
none /mnt/removable supermount dev=/dev/scsi/host4/bus0/target0/lun0/part1,fs=ext2:vfat,--,umask=0,iocharset=iso8859-15,kudzu,codepage=850 0
In the line I see ´vfat´ my drive is NTFS, could this automatic mounting as vfat be the problem?
good catch there, glad someone had their eyes open . Though I believe as it is fine (as its "critical for boot"), though change it just in case. (the second one is how it is in my fstab so pick whichever you want)
I missed the ntfs question there. The dashed line made me think it was a signature. Anyways yes your right, try adding ntfs to fs section:
fs=ext2:vfat:ntfs
however I am not particularly familiar with supermount as I found gnome-volume-manager to much more flexible and easier to configure. As for /dev/sda1 not existing it takes a while for the drive to appear (5-10secs) so perhaps that is the problem as I thought it was previously working.
Last edited by generic_genus; 01-10-2006 at 08:11 AM.
I have tried the changes but I still can not asccess the drives under the normal user. When I try to mount hdb1 I get a permissions error that is the same as the one I mentioned in my last post. When I try to mount my UBB drive one of to things happens.
Under root: The first time it works and all goes smoothly. However other times I will get the error ¨special device /dev/sda1 does not exist
Under normal user: I get the error ¨special device /dev/sda1 does not exist¨
Could it be that the drive is not unmounting properly?
I have tried changing the folders and folder permissions that the drives mount to but still no luck.
the hdb1 line is still wrong, the defaults part should not be there delete it and there should also be an extra 0 on the line so the correct version is:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.