PDA

Bekijk de volledige versie : How can I mount a filesystem during boot sequence?



Duchy
10-08-2005, 18:45
I have tried to insert this statement into post-boot and after that to post-firewall, but in both of them it is ignored. If I execute it manually afterwards there is no problem at all.

mount -text3 -oloop,noatime /tmp/harddisk/opt.ext3 /opt

Thanks for help

Dusan

Oleg
11-08-2005, 10:05
use post-mount.

Duchy
15-08-2005, 18:34
use post-mount.
Even with:

0 drwxr-xr-x 1 admin root 0 Aug 8 15:47 .
0 drwxr-xr-x 1 admin root 0 Jan 1 2000 ..
0 -rwxr-xr-x 1 admin root 20 Aug 11 15:52 post-boot
0 -rwxr-xr-x 1 admin root 1893 Aug 10 17:43 post-firewall
0 -rwxr-xr-x 1 admin root 355 Aug 10 16:51 post-firewall.old
0 -rwxr-xr-x 1 admin root 57 Aug 11 15:53 post-mount
0 -rwxr-xr-x 1 admin root 44 Aug 8 18:02 save.sh
[admin@(none) sbin]$ cat post-mount
mount -text3 -oloop,noatime /tmp/harddisk/opt.ext3 /opt

It is still not working. :mad:

Oleg
15-08-2005, 20:24
You've to add #!/bin/sh to the begining of post-mount.

Duchy
16-08-2005, 21:58
You've to add #!/bin/sh to the begining of post-mount.
Ooops, stupid me. I have it everywhere (post-boot, post-firewall), just in this script it was left out while doing copy&paste. :eek: