Re: Unable to mount a partition



Man-wai Chang wrote:
My colleague's Redhat 9 failed to boot, showing a error in
/etc/rc.sysinit line 182. I booted the machine with a Knoppix Live CD.
Then I tried to mount the root partition, it said the device is busy or
already mounted.

I think Knoppix mounts all detected "linux" filesystems at boot time, running df should show which ones are mounted.


I tried running `badblocks /dev/hda2`, no error reported.

Then I `e2fsck /dev/hda2`, it still said the device is busy.

Unmount the filesystem before you run fsck.


Now how could I safely recover the partition? Is it a dead superblock?

If there had been superblock missing, then the system hadn't mounted the slice.

I do suggest you boot from RedHat 9 install CD1 in rescue mode, mount the filesystems on the harddrive (say yes when asked if mount them), chroot /mnt/sysmount (think it was called so) and reinstall the initscripts rpm (you find one on the CD, or you can download a new one from fedoralegacy.org).


//Aho
.



Relevant Pages

  • Re: USB Mass Storage not working on Solaris 10
    ... /dev/dsk/c1t0d0s2 is already mounted or /mnt is busy ... > format it and to mount it. ... > it from the USB port, then connected to firewire, then turned it on. ...
    (comp.unix.solaris)
  • [SLE] Unclean shutdown SuSE 9.2
    ... I am getting an un-clean shutdown with subsequent hang on on a SuSE V9.2 ... umount: /: device busy ... Oops umount failed trying to mount read only ...
    (SuSE)
  • All my mount points are busy
    ... all the mount points seem to be busy, ... To check if it's already mounted, I ran df and looked at vfstab. ... So maybe the problem is that the mount point is busy. ... I couldn't unmount any of them. ...
    (SunManagers)
  • [SLE] Cant unmount anything
    ... It seems with Suse 9.1 that anytime I mount something I cannot ... umount: /mnt: device is busy ... and won't unmount. ...
    (SuSE)
  • Re: 2.6.6-rc2-mm1
    ... It assumes a 2.6.6-rc2-mm1 tree. ... -static int autofs4_may_umount ... /* Check a mount point for busyness return 1 if not busy, ...
    (Linux-Kernel)