Messages in this thread | | | Date | Fri, 20 Jun 1997 14:20:01 -0800 | From | (tk) | Subject | Re: unable to mount root (kernel panic) (details) |
| |
Thanks for the responses.
I am glad I am now able to get a little more specific. I tried so many things my mind got a bit confused.
I don't have a rescue disk for this particular hard disk configuration (hda1: MSDOS, hda2: swap, hda3: ext2 with Linux). I also don't have another Linux box with this configuration.
I do have a rescue disk for a system with Linux only (hda1 /, hda2 swap, hda3 /usr, hda4 /opt). Hopefully it has fsck on it; I know it's got vi, but that's all I really know offhand. I don't have another Linux box handy which I could use to check.
Ideally, I would like to find out how to (if possible) utilize the fsck which is on my hard drive. I.e.: -I am able to start the system from the floppy. The floppy uses minix file system, apparently. -I can mount the hard disk (hda3) at /mnt. -I don't have a vi or ed on the disk. cat and mv work, though, so I can write files from scratch or append to them.
Is there a way to run e2fsck after I mount the hard disk at /mnt ?
Thanks,
Troy
>>When mounting hda3 from a floppy I get the following: >>EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended >>EXT2-fs error (device 3/3): ext2_check_blocks_bitmap: wrong free blocks count >>for group 48, stored = 1595, counted 1580 >>Then 3 more errors with the same "wrong free blocks" message. >>One of them is in the same group 48, with a different number. >>The other two are in the superblock. >> >>My question is quite possibly, how to run e2fsck in this scenario? > >I assume you want to know how to run fsck on a disk with a bad superblock. >Ext2 partitions repeat the superblock periodically throughout the filesystem >for this very reason. The only way to be certain how frequent they are is >to check the superblock, which is kinda hard. However, chances are it is >the default. So boot from a rescue disk and run "e2fsck /dev/hda3 -b 8193". >Failing that, try with any other number of the form n*8192+1. To use this >option you do need to execute e2fsck directly, rather than useing fsck, >which is a generic front end. > >=== >Evan Jeffrey >erjeffre@artsci.wustl.edu > >Let us go. Let us leave this festering hell hole. Let us think the >unthinkable, let us do the undoable. Let us prepare to grapple with the >ineffable itself, and see if we may not eff it after all. > --Dirk Gently
Troy Korjuslommi ALLIANCE STUDIO Technical Director http://www.alliancestudio.com/ e. tk@alliancestudio.com ph. (310) 458-0884 http://www.alliancestudio.com/tk/ fx. (310) 395-5741
E R A S C E N T E R http://www.erascenter.com/ - - Model Educational Center of National and International Acclaim - -
| |