You are not logged in.

#1 2009-12-13 09:15:59

ziv
Member
Registered: 2008-10-30
Posts: 5

Problems mounting with fstab (wrong options are set)

I have several partitions on an internal disk which are mounted on boot using fstab. For some reason 2 of them are mounted with the wrong options (such as noexec) and are not shown as mounted using the mount command, only when checking /proc/mounts. To be able to execute files I can sudo umount /dev/sdaX and sudo mount /dev/sdaX the 2 partitions, but I still would like it to be done on boot (as it should be?).

The partitions are sda6 (jfs) and sda9 (ntfs), and it might be a problem with the ntfs, but the mounting of the jfs partition is also not working properly. I'm adding the fstab file and info about mounted devices:

$cat /etc/fstab 
# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

/dev/sda10 swap swap defaults 0 0
/dev/sda2 /boot ext2 defaults 0 2
/dev/sda3 / jfs defaults,noatime,nodiratime 0 1
/dev/sda5 /var reiserfs defaults,noatime,nodiratime,notail 0 2
/dev/sda6 /media/data jfs defaults,noatime,nodiratime 0 2
/dev/sda8 /media/backup jfs defaults,noatime,nodiratime 0 2
/dev/sda7 /media/ubuntu jfs defaults,noatime,nodiratime 0 2
/dev/sda9 /media/winData ntfs-3g defaults,umask=007,gid=100 0 0
/dev/sda1 /media/Windows ntfs-3g defaults,umask=007,gid=100 0 0
none /tmp tmpfs   nodev,nosuid,exec,nodiratime,size=512m 0 0
$mount
/dev/sda3 on / type jfs (rw,noatime,nodiratime)
none on /dev type tmpfs (rw,relatime,mode=755)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
/dev/sda2 on /boot type ext2 (rw)
/dev/sda5 on /var type reiserfs (rw,noatime,nodiratime,notail)
/dev/sda8 on /media/backup type jfs (rw,noatime,nodiratime)
/dev/sda7 on /media/ubuntu type jfs (rw,noatime,nodiratime)
/dev/sda1 on /media/Windows type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
none on /tmp type tmpfs (rw,nosuid,nodev,nodiratime,size=512m)
$cat /proc/mounts 
rootfs / rootfs rw 0 0
/dev/root / jfs rw,noatime,nodiratime 0 0
none /dev tmpfs rw,relatime,mode=755 0 0
none /proc proc rw,relatime 0 0
none /sys sysfs rw,relatime 0 0
/dev/sda6 /media/data jfs rw,nosuid,nodev,noexec,relatime 0 0
/dev/sda9 /media/winData fuseblk rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 0
none /dev/pts devpts rw,relatime,mode=600 0 0
none /dev/shm tmpfs rw,relatime 0 0
/dev/sda2 /boot ext2 rw,relatime,errors=continue 0 0
/dev/sda5 /var reiserfs rw,noatime,nodiratime,notail 0 0
/dev/sda8 /media/backup jfs rw,noatime,nodiratime 0 0
/dev/sda7 /media/ubuntu jfs rw,noatime,nodiratime 0 0
/dev/sda1 /media/Windows fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 0
none /tmp tmpfs rw,nosuid,nodev,nodiratime,relatime,size=524288k 0 0

Thanks.

Offline

#2 2009-12-16 09:15:52

ziv
Member
Registered: 2008-10-30
Posts: 5

Re: Problems mounting with fstab (wrong options are set)

Bumping, and also, i've noticed that sometimes the jfs partition (sda6) mounts fine so I guess it's a problem with nfts, though the second ntfs partition mounts properly every time.

Offline

#3 2009-12-16 16:04:23

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: Problems mounting with fstab (wrong options are set)

Is there anything special about the NTFS drives themselves, like are they external or something? It sounds like they just aren't ready by the time boot up is ready for them. Any mention of them in dmesg?

Offline

#4 2009-12-16 16:57:00

ziv
Member
Registered: 2008-10-30
Posts: 5

Re: Problems mounting with fstab (wrong options are set)

Thanks for trying to help. It's a laptop with one internal disk without any external ones, and I can't findt anything in dmesg that is relevant.  There are messages during boot that (i think) have sda6 in them, but they run too fast and are not mentioned in dmesg.

Offline

Board footer

Powered by FluxBB