Re: /dev/hda7 -> /dev/hda8

From: Vilmos Soti (vilmos_at_vilmos.org)
Date: 08/27/03


Date: 26 Aug 2003 22:36:54 -0700


"Alex Mizrahi" <pmiz@etel.dn.ua> writes:

> i've added partition so linux moved. i did setup loader so it uses correct
> one and passes root=/dev/hda8 to kernel( i tried both lilo and aspldr).
>
> kernel starts to boot, but then breaks:
>
> EXT2-FS Warning: check time reached: running e2fsck is recommended
> VFS: Mounted root( ext2 filesystem)
> Journalled Block Device drive loaded
> VFS: Can't find ext3 filesystem on dev ide0(3,7)
> mount: Mounting /dev/hda7 on /sysroot failed: Invalid argument

The problem is that init after the filecheck wants to remount
your / rw, but the info in /etc/fstab tells the old value.

Boot with the following command (intelligently suited to your needs):

linux root=/dev/hda8 init=/bin/bash

They you will get a bash prompt very early. Remount the filesystem
read/write.

mount -o remount,rw /

It is possible that it won't work, and in that case, use

mount -o remount,rw /dev/hda8

Modify your /etc/fstab. Change the line which refers to your root.

*VERY IMPORTANT* change the filesystem back to ro:

mount -o remount,ro /

sync
exit

And hopefully it will work. Maybe an additional "rw" parameter on the
lilo command line eliminates the whole remount stuff, but I have
never done it that way.

Vilmos



Relevant Pages

  • Re: Diskless Debian PCs / Network Boot
    ... > Since the client is actually diskless, the boot process stops when the ... > kernel tries to mount a filesystem - that results in a kernel panic as ...
    (Debian-User)
  • Re: Software RAID problems (bad filesystem type)
    ... I've tried putting it to /etc/fstab, but getting the error on boot ... uncomment the device in fstab and do mount -a or just try ... The superblock could not be read or does not describe a correct ext2 ... filesystem, ...
    (Debian-User)
  • Re: interactive stop on boot
    ... machine to do its best to boot up and get onto the network, ... Depends on the whether or not the system needs something from the NFS mount at boot time. ... If it doesn't then you would do well to use amd to handle the mount. ... Amd helps by deferring the mount until something actually needs something from the remote filesystem. ...
    (freebsd-questions)
  • Re: LVM2 volume groups not found during boot
    ... I have to manually scan and mount them after the OS boots. ... Here's a snipped from the boot sequence: ... filesystem, ...
    (Debian-User)
  • Re: Q: to mount or not to mount?
    ... but I would like to be able to boot up clean with it either ... such that any user can mount the filesystem ... then umount will refuse to unmount the filesystem). ...
    (comp.os.linux.development.system)