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!
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'm mounting this drive by plugging it in. Its a USB external hard drive. The system auto-mounts it upon plug in; but i'm not able to read the contents unless i'm using a root file browsing process. I imagine this is prob. some security issue but how can i manually change the permissions of the volume?
And not just the volume; but all contents too. I have noticed that changing perms on a directory seems to not ever include contents,.
you need to edit /etc/fstab to include the option "user", eg
Code:
/dev/sda1 /mnt/sda1 auto ro,user,noauto 0 0
if sda1 is the usb device
And it's not a good idea to try to change permissions on a NTFS mount as 1st there is no write access and 2nd NTFS dosen't support linux file permissions.
Last edited by binary_y2k2; 07-02-2006 at 12:17 AM.
the /mnt dir can be replaced by any dir, it's just the mount point, if there is no reference to your usb HDD then you should add it in there using my example a a template.
you should look at "man fstab" and "man mount" especially the section on "Mount options for ntfs" in man mount.
okay okay; i found out that indeed, the location of the device is dev/sda1 *as you said*; however if i add the line in my fstab as you suggested; the drive doens't show up when I reboot. I then unplug the drive and plug it back in and i get a message in Gnome indicating that I dont have priveleges to mount LACIE (the name of the external drive) grrr.
drive doesn't show up on boot-up; gives me "don't have permissions to mount" error when unplugged and plugged back in; within gnome.
or
/dev/sda1 /mnt/sda1 auto ro,user,auto 0 0
during boot (before going into X); there is a line that says something to the effect of "attempting to mount other filesystems; /mnt/sda1 does not exist" drive won't show up on desktop in Gnome; unplugging and replugging it in gives me same error as above (no permission to mount)
If /dev/sda1 /mnt/sda1 auto ro,user,(no)auto 0 0 IS NOT included in fstab; drive shows up on gnome desktop upon bootup but can't be browsed.
Do you see a reference to "usbfs" or something similar in your /etc/fstab file. Your system may use a hotplug script, or UDEV to mount usb drives when they are plugged in. If you monitor the logs when inserting the usb drive, what message shows up: "sudo tail -f /var/log/messages".
Check for a /etc/udev/rules.d/ directory. Grep for "sd\*".
On my system, the rules are:
If the device is created with the group ownership of "disk", a shortcut could be to make yourself a member of the "disk" group. However, I don't know whether this is a very proper way of doing it, or maybe even dangerous ( if /dev/sda has "disk" group ownership as well as /dev/sda1 ).
i gave up; none of those suggestions work for me, so what I started doing is this:
on one of my workspaces i always have a terminal window open; full screen.
I simply become su and then start nautilus in file browsing mode. I am able to read files there, so that is fine with me. Its just the external drive I used to save all my movies, music and documents from my windows installation so that I can see them while using Linux---which is a big need if I'm ever going to switch to this permanently :-)
This still doesn't make me want to go back to windows. <still enjoying the honeymoon) LOL
Btw, my sound card broke. (I had the tower plugged into my stereo and since the cable isn't very long, my tower was pulled out and on the floor so the cable could reach my stereo. I started cleaning my room and stupidly forgot it was still plugged in when I attempted to move it back to the desk. I set the tower on the edge of the bottom shelf of my desk and it kinda dropped and it bent the 3.5 plug while it was still plugged into the card. A big piece of the actual "ring" that the plug goes into *the green ring* then came off when I unplugged the cable. Now, any time I have any speaker plugged into the card; I have to jiggle it and hold it to make contact.
I was going to attempt to use super glue today--but, we have like a bunch of unopened soundblasters at work that we never used (exact same model as the one i've now had for 6 years-SBLive5.1) so I will probably just snag one of those. Also, my motherboard has onboard audio (that I had never used). So I simply took out the soundcard and then activated the onboard audio.
I was shocked and suprised and happy that my distro automatically detected this change and installed whatever driver was needed to use the onboard audio :-)))))
You may want to make yourself a member of the "wheel" group. Then run "visudo" and remove the "# " comment characters in the sudoers entry "# %wheel ALL=(ALL) ALL". This will allow you to run root commands like mount by preceding the commands with the command "sudo ".
In your /etc/fstab file, you can add an entry for your usb drive (/dev/sda1).
Do not use the option "auto". Your commputer will fail to boot if the usb drive isn't plugged in.
I would recommend that you either use the option "umask=0000" or make yourself the owner with the option "uid=<yourusername>". The "users" option will allow you to use umount or eject.
Here is the fstab entry for an ntfs partition on my laptop:
/dev/hda1 /windows/C ntfs ro,users,uid=jschiwal,gid=users,umask=0002,nls=utf8 0 0
For an external drive, I would add the option "noauto" to prevent the system from locking up when you boot up the computer. Use the uid and gid values for your own system. If you use them, you don't need the umask= option if you are the only user who needs access to the drive.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.