View previous topic :: View next topic |
Author |
Message |
warthog Tux's lil' helper


Joined: 11 Aug 2003 Posts: 82 Location: Seattle (Eastside)
|
Posted: Mon Dec 20, 2004 7:03 am Post subject: df incorrectly reporting one partition |
|
|
This is really weird, for some reason, when I use the 'df' command, I only see /dev/hda3, but from my fstab snippet below, you can see I've got both /dev/hda3 and /dev/hda4 defined. I know that /dev/hda4 is being mounted or I would be able to see my home directories! Does anybody have any idea? I tried searching the forums, but 'df' returns mostly german posts.
fstab snippet:
Code: |
/dev/hda3 / reiserfs noatime 0 0
/dev/hda4 /home reiserfs noatime 0 0
|
results of df command:
Code: |
# df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/hda3 7727 4654 3073 61% /
|
|
|
Back to top |
|
 |
klieber Bodhisattva


Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Mon Dec 20, 2004 9:12 am Post subject: |
|
|
Just because you can see your home directories doesn't mean that /dev/hda4 is mounted. They could be stored on your / directory.
Try running 'mount' with no arguments from the command line. That will tell you what your system has mounted.
--kurt _________________ The problem with political jokes is that they get elected |
|
Back to top |
|
 |
warthog Tux's lil' helper


Joined: 11 Aug 2003 Posts: 82 Location: Seattle (Eastside)
|
Posted: Mon Dec 20, 2004 4:59 pm Post subject: |
|
|
klieber wrote: | Just because you can see your home directories doesn't mean that /dev/hda4 is mounted. They could be stored on your / directory.
Try running 'mount' with no arguments from the command line. That will tell you what your system has mounted.
|
I thought about that too, but then I wouldn't have access to the files that I have stored on /dev/hda4. Nevertheless, I gave it a try:
Code: |
# mount /home
mount: /dev/hda4 already mounted or /home busy
|
I fairly certain that /home is getting mounted, or I wouldn't have access to my files. This is really weird. |
|
Back to top |
|
 |
Taladar Guru

Joined: 09 Oct 2004 Posts: 458 Location: Bielefeld, Germany
|
Posted: Mon Dec 20, 2004 5:45 pm Post subject: |
|
|
mount just displays the content of /etc/mtab AFAIK.
If you want the real kernel view about which filesystems are mounted do a
cat /proc/mount |
|
Back to top |
|
 |
warthog Tux's lil' helper


Joined: 11 Aug 2003 Posts: 82 Location: Seattle (Eastside)
|
Posted: Wed Dec 22, 2004 6:24 am Post subject: |
|
|
Taladar wrote: | mount just displays the content of /etc/mtab AFAIK.
If you want the real kernel view about which filesystems are mounted do a
cat /proc/mount |
Interesting... I did not know that. What role does /etc/mtab play? I know about /etc/fstab..
Anyway, here's the output:
Code: | # cat /proc/mounts
rootfs / rootfs rw 0 0
devfs /dev devfs rw 0 0
/dev/hda3 / reiserfs rw,noatime 0 0
none /proc proc rw,nodiratime 0 0
none /sys sysfs rw 0 0
none /dev/pts devpts rw 0 0
/dev/hda4 /home reiserfs rw,noatime 0 0
none /dev/shm tmpfs rw 0 0
none /proc/bus/usb usbfs rw 0 0
|
Ahhh, and you know what? The paritition is now showing up, and I did nothing except let my box sit off over night. Very weird. Here's what it looks like now:
Code: | # df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/hda3 7727 4646 3082 61% /
/dev/hda4 104710 23048 81663 23% /home
none 506 0 506 0% /dev/shm
|
_________________ Gentoo Linux 2.6.7-gentoo-r11 running Gnome 2.6
Asus nForce2
AthlonXP 3000 Barton
1GB Corsair DDR TwinX |
|
Back to top |
|
 |
HermanR Apprentice


Joined: 08 Jan 2004 Posts: 293 Location: The Netherlands
|
Posted: Mon Mar 07, 2005 9:03 pm Post subject: |
|
|
Well, I've got the same thing: sometimes when I boot, I get an error in the boot sequence, like this:
Code: | * Mounting local filesystems...
can't create lock file /etc/mtab~5687: Read-only file system (use -n flag to override)
* Some local filesystem failed to mount |
Actually, the local filesystem has been mounted, but this has not been recorded in /etc/mtab, and so all programs that rely on this information (like mount or df) do not work properly.
In the Italian Gentoo forum, I found the following solution by fabius:
Code: | Spero di aver trovato la soluzione (se così può essere chiamata) Cool
In pratica ho aggiunto un "piccolo" ritardo (sleep 1) tra la fine dell'esecuzione di /etc/init.d/checkfs e l'inizio di /etc/init.d/localmount (che sono eseguiti in sequenza). |
My Italian is barely enough to understand what he's saying (basically slowing down the boot process between /etc/init.d/checkfs en /etc/init.d/localmount), but shouldn't this be solved at a more general level? Or does hardly anyone experience this inconvenience?
EDIT: Btw, the solution didn't work for me. |
|
Back to top |
|
 |
|