Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can manually mount but no fstab <solved>
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
gtr-xu1
Tux's lil' helper
Tux's lil' helper


Joined: 23 Nov 2004
Posts: 88
Location: Australia

PostPosted: Tue Dec 21, 2004 12:10 pm    Post subject: can manually mount but no fstab <solved> Reply with quote

I am sure this issue would been covered before so thanks for any suggestions.

I can mount my ntfs drive manually but i cannot get it to auto mount through fstab. Do I have to add anything to the <opts> section? i will post part of my fstab below.

Also, once that is done, what is the easiest way (cli) to set permissions on that drive - (write access for a non-root user).

Is it as simple as adding the user to a specific group?
Laters

Code:

# <fs>             <mountpoint>    <type>     <opts>         <dump/pass>
#SATA Drive
/dev/sda1      /mnt/sata/windows   ntfs   noatime       0 0
/dev/sda5      /mnt/sata/storage   ntfs   noatime       0 0
/dev/sda3      /mnt/sata/fat_drv   vfat   noatime       0 0   



Last edited by gtr-xu1 on Wed Dec 22, 2004 12:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
neotyk
n00b
n00b


Joined: 23 Mar 2004
Posts: 37
Location: Mind?

PostPosted: Tue Dec 21, 2004 1:18 pm    Post subject: Reply with quote

hi gtr-xu1,

You probably can mount it from fstab, but you can't see files on this device if you aren't root, because:
man mount wrote:
Mount options for ntfs
iocharset=name
Character set to use when returning file names. Unlike VFAT, NTFS suppresses names that contain
unconvertible characters.

utf8 Use UTF-8 for converting file names.

uni_xlate=[0|1|2]
For 0 (or `no' or `false'), do not use escape sequences for unknown Unicode characters. For 1 (or
`yes' or `true') or 2, use vfat-style 4-byte escape sequences starting with ":". Here 2 give a lit-
tle-endian encoding and 1 a byteswapped bigendian encoding.

posix=[0|1]
If enabled (posix=1), the file system distinguishes between upper and lower case. The 8.3 alias
names are presented as hard links instead of being suppressed.

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.



By useing uid, gid, and masks, you can change permissions, and as far as ntfs goes you should *not* use write feature, it's very limited and insecure.

Good luck,
H.
_________________
yes, yes, no, no
[img:5b0d5ae295]http://jobble.uaznia.net/images/antypixel/Jobblemap.png[/img:5b0d5ae295]
Back to top
View user's profile Send private message
gtr-xu1
Tux's lil' helper
Tux's lil' helper


Joined: 23 Nov 2004
Posts: 88
Location: Australia

PostPosted: Tue Dec 21, 2004 9:51 pm    Post subject: Reply with quote

thanks neotyk

Quote:

You probably can mount it from fstab, but you can't see files on this device if you aren't root


No and Yes - the drive is not mounting from fstab I get the following bootup messages:
"special device sda5 does not exist" and "some filesystems failed to mount"

After bootup I can mount all drives manually and browse them as root without any problems.
Back to top
View user's profile Send private message
neotyk
n00b
n00b


Joined: 23 Mar 2004
Posts: 37
Location: Mind?

PostPosted: Wed Dec 22, 2004 8:47 am    Post subject: udev or devfs Reply with quote

As in topic, which one do you use?
Entries in /etc/fstab looks like from devfs, but if you are useing udev, than device names may be different..
What scsi you are using?
_________________
yes, yes, no, no
[img:5b0d5ae295]http://jobble.uaznia.net/images/antypixel/Jobblemap.png[/img:5b0d5ae295]
Back to top
View user's profile Send private message
gtr-xu1
Tux's lil' helper
Tux's lil' helper


Joined: 23 Nov 2004
Posts: 88
Location: Australia

PostPosted: Wed Dec 22, 2004 12:09 pm    Post subject: Reply with quote

yep fixed it now thanks a lot for pointing out the gid and uid stuff. I did some extra reading up on it and have also managed (after a lot more trouble) to get a friends Fedora to read his ntfs as well.

Thanks
Back to top
View user's profile Send private message
neotyk
n00b
n00b


Joined: 23 Mar 2004
Posts: 37
Location: Mind?

PostPosted: Wed Dec 22, 2004 1:25 pm    Post subject: Reply with quote

you are welcome :D
_________________
yes, yes, no, no
[img:5b0d5ae295]http://jobble.uaznia.net/images/antypixel/Jobblemap.png[/img:5b0d5ae295]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum