need help editing fstab and mounting 2nd harddrive
Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
need help editing fstab and mounting 2nd harddrive
i am on mdk 10 with two hard drives.. both on the Primary IDE channel.. both are ext3 fs and mandrake is installed as the master drive. /dev/hdb1 is the drive i have a question about.. whenever i boot up and log in, the drive mounts ok.. but is only accessible from root.. how do i change this so i don't have to switch to root each time i want to open it... (which is often) I also want write access. here is my fstab:
could it be because my user account has no rights to /mnt/ ??
also i noticed now there is a drive icon on my desktop titled anime.. but upon double click i get this error:
The action associated with "anime" is invalid.
You can configure GNOME to associate a different application or viewer with this file type. Do you want to associate an application or viewer with this file type now?
You are the owner of the dir, you were supposed to be able to write to it. It's odd....
Can you think of something, michael?
drwxr-xr-x 12 apostasy apostasy 4096 Jun 18 21:18 /mnt/anime//
The first section of the line refers to permissions. Like this:
d rwx r-x r-x
The "d" means dir. The next three chars say the owner can: Read, Write and "Xecute" the file. The next three (r-x) say: the group can Read, CANNOT Write (there a - instead of a w), and can Xecute. The next three is likewise.
adding 'rw' to the fstab as noted did not seem to work either.. here is the output of 'mount'
[apostasy@localhost apostasy]$ mount
/dev/hda1 on / type ext3 (rw)
none on /proc type proc (rw)
none on /proc/bus/usb type usbdevfs (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/hdb1 on /mnt/anime type ext3 (rw,noexec,nosuid,nodev)
could it be that i can't open /mnt/anime because i can't get to /mnt to begin with?
[apostasy@localhost apostasy]$ cd /mnt
bash: cd: /mnt: Permission denied
i mean.. the permissions could be all and well for the drive.. but wouldn't i need to be able to access /mnt before i can get into hdb1 (/mnt/anime) ?
The perms show that /mnt is owned by root, and group is adm. The only one who can read-write to it is root (the first three chars in "drwx".. except for the d). adm should be an administrative group with high privileges.
I don't think a normal user (apostasy) would be included in it by default. so, if you haven't edited it so far, you belong to the "others" section of those permissions, and you can't do anything.
As root, you can edit these permissions, to make it writable to everybody. To do this graphically, you should, in konqueror, put a cursor under /mnt and hit alt+enter (or you can right click with the mouse and choose properties). It will display the properties of the dir. You have to edit it, by clicking the entries under "others", choosing read-write mode. Also, choose the option "Apply changes to all subfolders and their content"
Last edited by bruno buys; 06-23-2004 at 09:54 AM.
as far as konqueror goes.. i don't know about that.. i'm using nautilus and alt+enter dosen't work... i've tried to chmod it to 755.. and that works.. but only temporarily.. for some reason it never holds the effect...
chmod -R 755 /mnt/
i've also tried:
chown -R apostasy:apostasy /mnt/
and that also only temporarily works.. after a while if i try to access any of the folders or files under /mnt i get permission denied... i've also just tried adding apostasy to the adm group but that dosen't seem to work either unless it dosen't take immediate effect