Forum Home
Press F1
 
Thread ID: 30005 2003-02-08 05:31:00 Mounting a doze partition in Linux. nz_liam (845) Press F1
Post ID Timestamp Content User
119323 2003-02-10 02:44:00 The permissions on the mount point are not the problem. The mount programme needs root privilege to mount a disk unless the disk has the user option set in fstab.

It is a security issue.
Graham L (2)
119324 2003-02-10 02:53:00 Um, well I have still got the lock out problem. I changed loged in as root and changed my /etc/fstab to this;

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hda1 /mnt/hda1 ntfs auto,user,ro 0 0

But when I reboot and login as liam, the disk is mounted ok, but im still locked out?!?!

What did I do wrong?
nz_liam (845)
119325 2003-02-10 03:07:00 Make the mount point's permissions the same as those of, say, "bin". Check with "man chmod" about the mask, so the lower levels will inherit the proper permissions. The "world" rights are the important ones. Graham L (2)
119326 2003-02-10 03:10:00 What happens if you change it to:
/dev/hda1 /mnt/hda1/ ntfs (Or should it be NTFS) defaults 0 0
Chilling_Silence (9)
119327 2003-02-10 03:17:00 That might work ... having it automount at boot (but using the user option) may have made it so that root is the user who owns it. If it's mounted at boot time, it does not need the user option. That affects the command line use of mount. Graham L (2)
119328 2003-02-10 03:24:00 Would it be case-SeNSiTivE as well??? (for the NTFS part I mean?) Chilling_Silence (9)
119329 2003-02-10 05:48:00 The reason why I called it /mnt/hda1 in that format is because I have possibly 10 or more partitions and giving them special names to help remember is just as easy as looking at fdisk -ls and knowing which partition I want.

If I can't find what I want I've created all the hard drive shortcuts and have given them the drive letter of my Windows OS since that's easy for me to remember.

You basically set it up to how you'll understand it better.
Kame (312)
119330 2003-02-10 05:49:00 It's possibly case sensitive. All partitions shown are lower case so just keep it the same. Kame (312)
1 2 3