MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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 am trying to mount my old hdd (new drive, fresh install of mandrake 10) so i can get the info off of it, but i can only mount and view the files as root by using
"mount /dev/hdb1 /mnt/hdd"
but then only root can access it. I have been looking around on the fourm for this and have found a few threads but have not had any luck with it. I would like to be able to have it automount at start up.
this is my fstab
Note that if you use a different filesystem, not Ext2, on the old disk, you should replace the third parameter with the right value.
I'd also remove the last line of your fstab (if you're not sure you need it) - it looks like a try to mount your old disk (target1/lun0/part1 is probably hdb1, but I'm not sure).
Thank you for your help, I added that line into my fstab and it now auto mounts, but i am still unable to access it. I can only access it if i am logged in as root. Is there a way around this or do i have to do that every time i want to access the drive?
You want the "ro" (read only) there. Writing to a Windows partition from Linux = trouble sooner or later.
I'd suggest unmounting the windows partition as root, running the chmod command as suggested above, then modifying fstab and rebooting.
In fact, umask=0. Next two zeros are completely unrelated. But first umask. It's a mask on the permissions, a negative one. umask=0 means all permissions may be given. When umask is non-zero, not all permissions are possible and that's probably your case. You can see your current configuration (used for permissions of new files you create) using the command 'umask'.
It was probably not fully clear, so an example. Let's say that I've got umask set to 022. When I create a file with permissions 0666, I'll get 0644
The two zeros are: first one is used by dump, so it has probably no use for you. The second one is more interesing. It's used by fsck to get the order partitions should be checked during boot. If there's 0, the partition is not checked.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.