On Nov 24, 6:26 am, freemont <
freemontspamme...@freemontsoffice.com>
wrote:
> As was suggested to me years ago under similar circumstances, maybe you
> can compare the output of df and fdisk -l with the entries in /etc/fstab.
> Don't assume that /dev/hda1 contains /. What is fstab trying to mount,
> and what do the partitions actually contain?
First off, my apologies for posting via Google Groups. I'm on the box
in question running a live distro with no Usenet client on it.
df will be of limited use, given that all but one of the partitions of
the hard disk are unmountable:
bt ~ # mount -a
mount: devpts already mounted or /dev/pts busy
mount: wrong fs type, bad option, bad superblock on /dev/hda1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
mount: wrong fs type, bad option, bad superblock on /dev/hda7,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
mount: wrong fs type, bad option, bad superblock on /dev/hda8,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
mount: wrong fs type, bad option, bad superblock on /dev/hda9,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Here's what can be mounted (see last line):
bt ~ # mount
aufs on / type aufs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda5 on /mnt/hda5 type ext3 (rw,noatime)
With that caveat, here's what df and fdisk say:
bt ~ # df -h
Filesystem Size Used Avail Use% Mounted on
aufs 261M 9.0M 252M 4% /
/dev/hda5 8.0G 147M 7.4G 2% /mnt/hda5
/dev/sda1 3.7G 2.8G 732M 80% /mnt/sda1
bt ~ # fdisk -l
Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1051 8442126 83 Linux
/dev/hda2 1052 19456 147838162+ 5 Extended
/dev/hda5 1052 2101 8434093+ 83 Linux
/dev/hda6 2102 2241 1124518+ 82 Linux swap
/dev/hda7 2242 2636 3172806 83 Linux
/dev/hda8 2637 3298 5317483+ 83 Linux
/dev/hda9 3299 19456 129789103+ 83 Linux
Disk /dev/sda: 4007 MB, 4007657472 bytes
18 heads, 18 sectors/track, 24158 cylinders
Units = cylinders of 324 * 512 = 165888 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 25 24159 3909696 83 Linux
The previous day's backup of /etc/fstab says:
# Entry for /dev/sda1 :
UUID=f9f5a379-224d-48d6-a523-d3acd3f97a39 / xfs relatime 1 1
# Entry for /dev/sda9 :
UUID=844ee38a-2705-4a2d-8820-cdcc1f6f50e9 /home xfs relatime 1 2
/dev/cdrom /media/cdrom auto
umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
/dev/fd0 /media/floppy auto
umask=0,users,iocharset=utf8,noauto,exec,flush 0 0
# Entry for /dev/sda5 :
UUID=c910b8c5-6e34-423d-a093-f8e1a1c0c825 /next_install ext3 relatime
1 2
# Entry for /dev/sda7 :
UUID=47985ce3-bec0-4d29-a64c-6a3b6bdffcaf /opt xfs relatime 1 2
none /proc proc defaults 0 0
none /tmp tmpfs defaults 0 0
# Entry for /dev/sda8 :
UUID=40518fd6-f3b2-45d6-8396-262a1ec45f86 /var/www/html xfs relatime 1
2
# Entry for /dev/sda6 :
UUID=1aeb634e-e9cd-45ce-b418-18156d286d1f swap swap defaults 0 0
The box's owner doesn't know what partition is for what, but between
fdisk and what he remembers of his partition layout, my best guess is:
sda1/hda1: / (my guess)
sda2/hda2: extended partition (per fdisk)
sda5/hda5: an empty partition to become the new root partition when
upgrading (my guess)
sda6/hda6: swap (per fdisk)
sda7/hda7: /opt (my guess)
sda8/hda8: /var/www/html (my guess)
sda9/hda9: /home (my guess)
...so my focus is on sda1/hda1, being the closest thing I can confirm
to being the root partition.