LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Some partitions in FSTAB not mounting (http://www.linuxquestions.org/questions/linux-general-1/some-partitions-in-fstab-not-mounting-578934/)

Julix 08-22-2007 10:15 AM

Some partitions in FSTAB not mounting
 
Hi everybody,

Hi have modified some partitions on my first harddisk, to have added two new extended partitions, like hda10 and hda11 and modified the fstab to have them mounted automatically, but when I boot my linux box, the hda9, hda10 and hda11 won't mount automatically. In fact it's mounting as my old fstab configuration.
my new fstab:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hdb5 /home ext3 defaults 0 2
/dev/hda11 /var/share ext3 defaults 0 2
/dev/hda10 /var/www ext3 defaults 0 2
/dev/hda9 /var/mail ext3 defaults 0 2
/dev/hda8 /tmp ext3 defaults 0 2
/dev/hda5 /usr ext3 defaults 0 2
/dev/hda6 /var ext3 defaults 0 2
/dev/hda7 none swap sw 0 0
/dev/hdb1 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

my fstab as i had before:

/etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hdb5 /home ext3 defaults 0 2
/dev/hda9 /share ext3 defaults 0 2
/dev/hda8 /tmp ext3 defaults 0 2
/dev/hda5 /usr ext3 defaults 0 2
/dev/hda6 /var ext3 defaults 0 2
/dev/hda7 none swap sw 0 0
/dev/hdb1 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

the odd thing is that I can mount hda10 as /var/www manually with no problem, for example.
Does anyone know how to setup the fstab to have hda9, hda10 and hda11 mounted correctly?
Thanks in advance for your kind held

jay73 08-22-2007 10:56 AM

I'm not perfectly sure how /etc/fstab gets processed but it may make a difference whether var gets mounted before or after its subdirectories. Try placing the /var line first.

Julix 08-22-2007 11:15 AM

It worked!!!!
 
Hi jay73,

I have tried placing the /var line first and all has been mounted successfully!!!!
Thank you very much!!!!

brownflamigo1 08-23-2007 03:23 AM

So, did u just move these three lines onto the first positions and it worked?
Quote:

/dev/hda11 /var/share ext3 defaults 0 2
/dev/hda10 /var/www ext3 defaults 0 2
/dev/hda9 /var/mail ext3 defaults 0 2
Thanks.
nik

Julix 08-24-2007 12:18 AM

Hi Nik,

Sorry for not having specified how I changed my fstab. :D I have changed it this way and it worked:
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hdb5 /home ext3 defaults 0 2
/dev/hda8 /tmp ext3 defaults 0 2
/dev/hda5 /usr ext3 defaults 0 2
/dev/hda6 /var ext3 defaults 0 2
/dev/hda11 /var/share ext3 defaults 0 2
/dev/hda10 /var/www ext3 defaults 0 2
/dev/hda9 /var/mail ext3 defaults 0 2
/dev/hda7 none swap sw 0 0
/dev/hdb1 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

Basically what I did was to place
/dev/hda11 /var/share ext3 defaults 0 2
/dev/hda10 /var/www ext3 defaults 0 2
/dev/hda9 /var/mail ext3 defaults 0 2
below
/dev/hda6 /var ext3 defaults 0 2
I think itīs just like Jay73 said before: the /var directory needed to me mounted first :)

brownflamigo1 08-24-2007 03:23 AM

thanks a lot :)


All times are GMT -5. The time now is 09:42 AM.