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.
I am pretty new to linux, so pleace explain in details, thanks
Here's what I have done until now:
I have tryed the mepis distro for some time, just to try linux out, then i decitet that i wantet to try ubuntu, I installed it and here I am now
Now I want to mount a ntfs partition where I have my music on, it's hda 5
Enhed Opstart Start Slut Blokke Id System
/dev/hda1 1 922 7405933+ 7 HPFS/NTFS
/dev/hda2 992 6756 46307362+ f w95 udvidet (LBA)
/dev/hda3 * 6757 7297 4345582+ 83 Linux
/dev/hda5 992 6728 46082421 7 HPFS/NTFS
/dev/hda6 6729 6756 224878+ 82 Linux swap / Solaris
so i type "mount ntfs /dev/hda5 /media/hda5
and it works fine the partition gets mountet
Here's my problem:
1. I want to open the partition in Amarok, the music player, so I can play my music, but it seams that I can't :/ it just have a lock symbol on the folder, how can i change it, so amarok also have read acces to hda5??
2. I tryed writing "/dev/hda5 /media/hda5 ntfs default 0 0" in fstab so that it would auto mount on startup, how do I get it to auto mount??
Last edited by Gentleman_finn; 03-19-2005 at 05:33 PM.
I take it that you are mounting the NTFS partition while you are logged in (su possibly) as root, and that you are trying to access the files from a non-root account?
If what I just said is the case, this might help. Because NTFS does not contain any linux file ownership information, linux sets the owner of all files on a NTFS volume to the user who mounted the volume. This is why your normal user account cannot access the files; root mounted the drive.
From the mount manpage:
Mount options for ntfs
uid=value, gid=value and umask=value
Set the file permission on the filesystem. The umask value is
given in octal. By default, the files are owned by root and
not readable by somebody else.
You have a few options:
1) You can specify a umask value when you mount the NTFS volume:
prompt # mount -t NTFS -o umask=644 /dev/hda5 /media/hda5
The 644 value should make it so that while the files are still owned by root, other users are allowed to read them.
2) You could use the uid= and guid= options:
prompt # mount -t NTFS -o uid=1000,gid=100 /dev/hda5 /media/hda5
This will cause the files to be owned by the specifid user and group instead of root. (uid = user id, gid = group id) If you want to find out what uid and gid values to use, you can try "echo $UID" (and $GID), but if all else fails look in your /etc/passwd and /etc/groups files.
3) Edit /etc/fstab so that the volume can be mounted by users:
/dev/hda5 /media/hda5 ntfs noauto,ro,user 0 0
This tells the computer to not mount the volume on boot. That way a user has the ability to mount it later on. Because the user, and not root, mounts the volume, the owner of the files should be set to the user.
I prefer method 1 personally. It is more secure. Also remember that NTFS in linux is read-only currently. Don't expect to be able to write to the NTFS volume.
I've tried the auto mount option -- but it still dosn't do the trick. I havn't tried that in conjunciton with the umask=677 option, so I will try that. I'll post my results after my next reboot. Thanks.
nope...the umask=677 option locked all other users out of the device and the auto option still does not load the device. This is getting to be a pain in the ass, cause every time I boot I have to manually mount the partition IOT get my media libraries to rescan (since they were missing upon boot). Root dosn't mount this device, for some reason! wft??
First of all, it isn't advisable to start a new thread just because the existing one doesn't get answered. And actually, it's not about being answered to, but being patient. Some threads get a reply after 5-10 mins after creation, others after days. It depends on how many users are currently browsing the boards, their level of knowledge, their mood etc.
As for the umask setting, IIRC the values passed to it are actually "substracted" from a 777 permission set. So, try instead a 'umask=022' option.