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
119313 2003-02-08 19:18:00 > So I thought, simple fix, and did a chmod 770
> /mtn/hda1 at the prompt as su, and it said 'changing
> permisions of '/mnt/hda1': Read-only file system',
> however I still can access it as a normal user, and
> when I browse to the directory in konqueror it still
> has the padlock siymbol, and of course when I try to
> open it I get a "you do not have permisions blah blah
> blah".
>
>
> What did I do wrong??

Try it with the NTFS partition unmounted.
segfault (655)
119314 2003-02-08 20:35:00 Thats very odd Linux can not see NTFS, it should read all formats, unlike Windoze,

I just go to
file:/mnt/win_c
or
file:/mnt/win_d
for that matter.

to see my fat 32 partitions

From Eric
E.ric (351)
119315 2003-02-09 01:39:00 Ok, here whats happening.

While the drive is unmounted I can assess and change the permisions of the /mnt/hda1 directory, however once I mount /dev/hda1 to it the directory becomes locked to root, (even if it was set to 777 before it was mounted). When I chmod it back to 777 at the prompt it dosent work.

Could this be bacause it's a read-only filesystem, and im telling it to make it writable, which it can't do?
nz_liam (845)
119316 2003-02-09 01:55:00 To make a disk mountable from non-root accounts add the option "user" to the /etc/fstab entry for the disk.

It's prudent to keep an NTFS disk read-only (the default probably has the "ro" option in /etc/fstab.) It is not a totally good idea to write from one OS to a disk owned by another OS. ;-) I don't think MS have published the full specifications for NTFS, so the implementation has to be reverse engineered.
Graham L (2)
119317 2003-02-09 03:14:00 > To make a disk mountable from non-root accounts add
> the option "user" to the /etc/fstab entry for the
> disk .
>
> It's prudent to keep an NTFS disk read-only (the
> default probably has the "ro" option in /etc/fstab . )
> It is not a totally good idea to write from one OS to
> a disk owned by another OS . ;-) I don't think MS have
> published the full specifications for NTFS, so the
> implementation has to be reverse engineered .

Ok well I have /etc/fstab open, I assume I add in a line like "/dev/hda1 /mnt/hda1", but where exactily do I add the user bit, (sorry, but im new to this sorta thing) .


Cheers

Liam
nz_liam (845)
119318 2003-02-09 03:33:00 > Ok well I have /etc/fstab open, I assume I add in a
> line like "/dev/hda1 /mnt/hda1", but where exactily
> do I add the user bit, (sorry, but im new to this
> sorta thing) .

The other entries usually help when doing this, but here is what mine looks like: (Hope it comes out alright)

/dev/hda6 / reiserfs notail 1 1
none /dev/pts devpts mode=0620 0 0
none /mnt/cdrom supermount dev=/dev/hdc,fs=auto,ro,--,iocharset=iso8859-1,codepa
ge=850,umask=0 0 0
/dev/hda1 /mnt/nt ntfs iocharset=iso8859-1,ro,umask=0 0 0
192 . 168 . 1 . 3:/home/shared /home/shared nfs defaults 0 0
/dev/hda5 /mnt/lfs ext3 1 2
none /proc proc defaults 0 0
/dev/hda7 swap swap defaults 0 0
segfault (655)
119319 2003-02-09 03:40:00 Yea I see all that, but where do I slot the user bit in?????

Mine looks like;

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


Would I just add tha line;
/dev/hda1 /mnt/hda1 user

?????
nz_liam (845)
119320 2003-02-09 06:54:00 /dev/hda1 /mnt/hda1 ntfs noauto,user,ro 0 0

I assume. I'm not sure... I usually su to root when I need to mount drives
Kame (312)
119321 2003-02-10 01:58:00 That's right . Have a look with "man fstab" (or "apropos fstab" if there isn't a man page for it :D)

It's:
<device> <mount point> <filesystem> <options> <two numbers which are to do with checking>

I wouldn't call its mount point "/mnt/hda1" . ;-) I put such things at the root level, and with a meaningful name . You might use "/WinNTFS" or something like that . (That might not be in accordance with the standard file layout, but it saves me some typing . Guess which wins . ;-))

Another useful option is "noauto" . The default is "auto" which means that the disk is mounted at boot time . That is a bad idea for floppies or CDs . If it's a fixed hard disk, it's probably best automounted (it doesn't use any resources) .

If you use NFS to mount disks on other comoputers in your network, there are some other options which let it handle the other computer(s) being up and down .
Graham L (2)
119322 2003-02-10 02:05:00 If you've got a GUI (Which you should do having all packages installed)
type:
init 4 to get into it (may be init 5 - cant remember)

browse for the mount point and right-click on the folder
from there, set the permissions!
Chilling_Silence (9)
1 2 3