View previous topic :: View next topic |
Author |
Message |
Guinpen Guru
Joined: 08 Dec 2004 Posts: 393
|
Posted: Fri Jun 24, 2005 6:43 am Post subject: Mounting at boot [SOLVED] |
|
|
Hi,
My fstab looks as follows:
Code: |
/dev/hda2 / reiser4 exec,rw,suid,async 0 1
/dev/hda1 /boot ext2 exec,rw,user,suid,async 0 2
/dev/hda6 /root ext3 exec,rw,user,suid,async 0 2
/dev/hda5 none swap sw 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc defaults 0 0
/dev/cdrom /mnt/cdrom auto defaults,ro,noauto 0 0
|
Well, there's the problem that when /boot and /root are mounted at start-up, they are mounted non-executable. To run anything from them, I need to do, say, mount /root -o remount,exec
What do I need to change in fstab to resolve the issue?
Last edited by Guinpen on Fri Jun 24, 2005 8:38 am; edited 1 time in total |
|
Back to top |
|
|
keli Apprentice
Joined: 18 Jul 2003 Posts: 210 Location: TgMures, RO
|
Posted: Fri Jun 24, 2005 7:05 am Post subject: |
|
|
I myself use much simpler setups for these partitions - defaults mostly - and they work as expected:
Code: | /dev/hda1 /boot ext2 noauto,noatime 1 1
/dev/hda4 / ext3 noatime 0 0 |
_________________ "The future masters of technology will have to be lighthearted and intelligent. The machine easily masters the grim and the dumb."
Marshall McLuhan, 1969 |
|
Back to top |
|
|
Guinpen Guru
Joined: 08 Dec 2004 Posts: 393
|
Posted: Fri Jun 24, 2005 8:34 am Post subject: |
|
|
Alright, so I'm reading the manual of both fstab and mount, and something is very wrong. Using this as fstab:
Code: |
/dev/hda2 / reiser4 defaults,noatime,user,rw 0 1
/dev/hda1 /boot ext2 defaults,noatime,user,rw 0 2
/dev/hda6 /root ext3 defaults,noatime,user,rw 0 2
/dev/hda5 none swap sw 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc defaults 0 0
/dev/cdrom /mnt/cdrom auto defaults,ro,noauto,user 0 0
|
Now the system won't even boot. From what I can make out from the messages, it seems to have a problem with the root partition. Every executable says it has no permission to run. It might be mounting / read-only, but I'm not sure about that.
I'll try removing "user" from / and see what happens. |
|
Back to top |
|
|
Guinpen Guru
Joined: 08 Dec 2004 Posts: 393
|
Posted: Fri Jun 24, 2005 8:34 am Post subject: |
|
|
Yes, removing "user" from all entries (except the cdrom) did it. Now my execution permission problem has been solved too
BTW, does "noatime" only prevent access times from being written, or modification times as well? |
|
Back to top |
|
|
|
|
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
|
|