LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-05-2006, 06:05 AM   #1
jovie
Member
 
Registered: May 2006
Posts: 54

Rep: Reputation: 15
Mount at boot problems


Can anyone explain...
Why /dev/sda1 (/data (RAID)) and /dev/hda3 (/home) don't get mounted at boot?
Should /dev/hda5 (swap) and /dev/hda4 (I've no idea, but it does exist) be mounted?

/etc/fstab content below. The /dev/sda1 mounts manually with what I expect is the equivalent of the fstab line. As does /dev/hda3 but before I mount it there is already a /home dir with and empty dir for the user created during installation. Could this be stopping /dev/hda3 from mounting at boot?

Thanks for you time and thoughts
Ann

Using fedora core 4

Code:
[root@galaxy /]# more /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
/dev/devpts             /dev/pts                devpts  gid=5,mode=620  0 0
/dev/shm                /dev/shm                tmpfs   defaults        0 0
/dev/proc               /proc                   proc    defaults        0 0
/dev/sys                /sys                    sysfs   defaults        0 0
LABEL=SWAP-hda5         swap                    swap    defaults        0 0
/dev/sda1               /data                   ext3    defaults        0 0
/dev/hda3               /home                   ext3    defaluts        0 0
/dev/hdc                /media/cdrecorder       auto    pamconsole,exec,noauto,managed 0 0
[root@galaxy /]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2              20G  5.4G   14G  29% /
/dev/hda1              99M   13M   82M  14% /boot
/dev/shm             1013M     0 1013M   0% /dev/shm
[root@galaxy ~]# mount /dev/sda1 /data
[root@galaxy ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2              20G  5.4G   14G  29% /
/dev/hda1              99M   13M   82M  14% /boot
/dev/shm             1013M     0 1013M   0% /dev/shm
/dev/sda1             691G  563G   93G  86% /data
[root@galaxy ~]# ls /home/
john
[root@galaxy ~]# mount /dev/hda3 /home
[root@galaxy ~]# ls /home/
    <snip> list of ~20 users on /dev/hda3
 
Old 07-05-2006, 10:30 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,626
Blog Entries: 14

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
swap devices don't get "mounted" in the traditional sense. They are used as an adjunct to memory to swap out (old style) or page out (new style) portions of memory to disk to free up memory for newer processes.

I notice all of your mounts other than root have "0" in the last position. That is the fspassno position. Try setting /home and /data to 2 in that position and see if it helps. It will force them to be checked AFTER root which is what you want because they both sit on top of root.

It is unlikely the user's home before mount of /home is preventing the mount. If it were you couldn't do it manually either and you are doing it manually. (FYI: You don't have to specify device and filesystem when you do manual mount if entry is in fstab - Typing "mount /data" and "mount /home" would be sufficieint.) I would recommend deleting this user directory though - once you've mounted /home you can't access the user directory but it is still tying up space in your root filesystem.

Last edited by MensaWater; 07-05-2006 at 10:31 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FSTAB: My Win Share Wont Mount @ Boot, but will when I sudo mount -a...please help! TruANTOlogy Ubuntu 8 06-20-2006 09:00 AM
problems with smbfs mount-point in /etc/fstab - "mount -a" works, but not at boottime MarkSide Linux - Software 4 11-20-2005 04:30 PM
CD Boot/mount problems (Rank Newbie - Sorry) Killdog Linux - Newbie 3 08-31-2005 05:25 AM
Drive mount at boot time problems pete123 SUSE / openSUSE 4 03-13-2005 03:17 PM
Why a FSTAB entry will mount using -a switch but will not mount automatically at boot mjen Linux - Newbie 3 05-19-2004 08:45 AM


All times are GMT -5. The time now is 11:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration