LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-22-2007, 09:15 AM   #1
Julix
LQ Newbie
 
Registered: Aug 2007
Location: Argentina
Distribution: Debian Etch, Slackware 12
Posts: 28

Rep: Reputation: 15
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
 
Old 08-22-2007, 09:56 AM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
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.
 
Old 08-22-2007, 10:15 AM   #3
Julix
LQ Newbie
 
Registered: Aug 2007
Location: Argentina
Distribution: Debian Etch, Slackware 12
Posts: 28

Original Poster
Rep: Reputation: 15
Smile It worked!!!!

Hi jay73,

I have tried placing the /var line first and all has been mounted successfully!!!!
Thank you very much!!!!
 
Old 08-23-2007, 02:23 AM   #4
brownflamigo1
Member
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 90

Rep: Reputation: 15
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
 
Old 08-23-2007, 11:18 PM   #5
Julix
LQ Newbie
 
Registered: Aug 2007
Location: Argentina
Distribution: Debian Etch, Slackware 12
Posts: 28

Original Poster
Rep: Reputation: 15
Smile

Hi Nik,

Sorry for not having specified how I changed my fstab. 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
 
Old 08-24-2007, 02:23 AM   #6
brownflamigo1
Member
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 90

Rep: Reputation: 15
thanks a lot
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab will not mount partitions n926bb Fedora 29 06-14-2006 12:55 PM
Adding partitions to fstab and mtab PipeDreams Mandriva 9 01-31-2006 08:04 PM
fstab extended partitions Chrax Slackware 2 01-03-2005 06:19 PM
Mounting FreeBSD partitions inside fstab damien Linux - General 1 02-04-2004 09:32 PM
fstab and windows partitions fedetxf Linux - Newbie 6 12-29-2003 06:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration