Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-25-2007, 03:42 AM
|
#1
|
LQ Newbie
Registered: Oct 2007
Posts: 6
Rep:
|
df command not list root directory
Hello,
I run the df -h command, /dev/sda5 (/) is not shown in the result.
I run the command cat /proc/mounts, I do see the following
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,data=ordered,usrquota 0 0
Thanks for your help.
|
|
|
10-25-2007, 06:29 AM
|
#2
|
Member
Registered: Oct 2007
Location: Val-des-Monts, Québec, Canada
Distribution: CentOS, RHEL, Fedora
Posts: 110
Rep:
|
What is in /etc/mtab?
|
|
|
10-25-2007, 07:00 AM
|
#3
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
Also, look in /dev to see what /dev/root is linked to
|
|
|
10-25-2007, 11:26 AM
|
#4
|
LQ Newbie
Registered: Oct 2007
Posts: 6
Original Poster
Rep:
|
Hello,
The following is what's in /ect/mtab. The root is not listed. Is it the problem? Thanks a lot for the help.
/dev/sda1 /boot ext3 rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/sda7 /home ext3 rw,usrquota 0 0
/dev/sda8 /tmp ext3 rw,noexec,nosuid 0 0
/dev/sda3 /usr ext3 rw,usrquota 0 0
/dev/sda2 /var ext3 rw,usrquota 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/tmp /var/tmp none rw,noexec,nosuid,bind 0 0
/dev/sdb1 /backup ext2 rw 0 0
|
|
|
10-25-2007, 01:23 PM
|
#5
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
So----
sda5 is not mounted anywhere
Nothing is mounted at "/"
How is this system even running at all????!!!!
In /boot/grub/menu.lst, what is in the "root= " statement on the kernel line?
|
|
|
10-25-2007, 06:43 PM
|
#6
|
LQ Newbie
Registered: Oct 2007
Posts: 6
Original Poster
Rep:
|
Hello,
The file is like this.
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda5
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=20
#splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-8.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/1 console=tty0 console=ttyS1,19200n8
initrd /initrd-2.6.18-8.el5.img
|
|
|
10-25-2007, 06:47 PM
|
#7
|
LQ Newbie
Registered: Oct 2007
Posts: 6
Original Poster
Rep:
|
Hello,
The root is listed in fstab file.
LABEL=/1 / ext3 defaults,usrquota 1 1
LABEL=/boot1 /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
LABEL=/home1 /home ext3 defaults,usrquota 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
LABEL=/tmp1 /tmp ext3 defaults 1 2
LABEL=/usr1 /usr ext3 defaults,usrquota 1 2
LABEL=/var1 /var ext3 defaults,usrquota 1 2
LABEL=SWAP-sda6 swap swap pri=0,defaults 0 0
/tmp /var/tmp ext3 defaults,bind,noauto 0 0
/dev/sdb1 /backup ext2 defaults 0 0
|
|
|
10-25-2007, 07:29 PM
|
#8
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
I'm now in over my head---I know nothing of the RedHat labelling (except that I don't like it... )
So---for someone: Why does this line in fstab:
LABEL=/1 / ext3 defaults,usrquota 1 1
not result in an mtab entry??
wabaha: any chance that the mtab file got snipped in the cut 'n paste?
|
|
|
10-25-2007, 11:52 PM
|
#9
|
LQ Newbie
Registered: Oct 2007
Posts: 6
Original Poster
Rep:
|
Hello,
The root entry is indeed not in the mtab file.
The root file system is on a RAID 1 disk. Is it possilbe that somehow the raid control has problem?
|
|
|
10-26-2007, 06:49 AM
|
#10
|
Member
Registered: Oct 2007
Location: Val-des-Monts, Québec, Canada
Distribution: CentOS, RHEL, Fedora
Posts: 110
Rep:
|
I have seen this before where the mtab files gets out of sync with what is actually mounted. /proc/mounts will not lie to you. mtab might.
Unfortunately the df command uses the mtab file to sort out the mounted filesystems.
Sorry to say this but a reboot would fix it.
I have also seen forum entries where people link /etc/mtab to /proc/mounts but I strongly discourage such practice.
|
|
|
All times are GMT -5. The time now is 09:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|