Re: Swapped disks and now stuck in the mountroot> prompt

From: Grzegorz Czaplinski (G.Czaplinski_at_prioris.mini.pw.edu.pl)
Date: 01/15/04

  • Next message: Veronica Brainfluff: "boot up issue"
    Date: Thu, 15 Jan 2004 20:58:05 +0100
    To: roberto@redix.it
    
    
    

    On Thu, Jan 15, 2004 at 09:43:17AM +0100, roberto@redix.it wrote:
    >
    > Date: 15 jan 2004
    >
    > I've installed FreeBSD 4.9 on a ide0:0 (primary IDE, master hd) then
    > ported the hard disk on a second PC and installed as ide1:0 (secondary
    > IDE, master hd) without update the "/etc/fstab" file.
    >
    > When booting the kernel start probing devices, I see the disk as "ad2"
    > then the kernel halts when trying to mount the root file system with the
    > following message:
    >
    > mount root from ufs:/dev/ad0s1a
    > root mount failed: 6
    >
    > At the prompt I've tried with "ufs:/dev/ad2s1a", now the right device, but
    > it does not work.
    >
    > The solution is to instruct the kernel with the right device: but ad2s1a
    > seems to be wrong...
    >
    > After several attempts I discover that the kernel must be started with the
    > option "-a": with this flag the device "ufs:/dev/ad2s1a" is accepted by
    > "mountroot> " and the boot proceed. Than I can change the fstab
    > accordingly to make the change permanent.
    >

    Hi,
    I will try to answer your questions.... ;)

    > My question are:
    > 1) I've made any mistake ?

    No.

    > 2) Without the boot "-a" flag, why the kernel ask me a device and even it
    > is the correct one vfs_conf.c:vfs_mountroot_ask() give me the error code
    > 6?

    I don't know this. Perhaps it's too late to change root to mount from.

    Cheers,
            greg

    --
    Grzegorz Czaplinski <gregory at prioris.mini.pw.edu.pl>
    "The Power to Serve, Right for the Power Users!" - http://www.FreeBSD.org/
     Fingerprint: EB77 E19D CFA2 5736 810F  847C A70F A275 2489 469F
    
    



  • Next message: Veronica Brainfluff: "boot up issue"

    Relevant Pages

    • Re: initrd question
      ... Booting the new kernel does ... > not load the module and thus upon trying to mount the root file system ... > see any of the probing messages my old 2.4.19 kernel outputs which has ...
      (Debian-User)
    • 2.6.27-rc7 no init found on the root partition?
      ... but the kernel is unable to boot. ... XFS file system but no init found. ... it complains that root file system not found and I have ... # Input Device Drivers ...
      (Linux-Kernel)
    • [BUG]: Crash with CONFIG_FAIR_CGROUP_SCHED=y
      ... If we skip the 'mount' command, there is no crash. ... mounting just the cpu or just the ns subsystem does not ... Kernel 2.6.24-rc1 on an x86_64 ...
      (Linux-Kernel)
    • Re: usb-storage && iRIVER flash player problem
      ... > The device is seen, but there is no way to mount it, nor re-partition ... explain that the mountable vfat partition under linux is the ... > debugging enabled and not as modules, directly into the kernel. ... > nfs warning: ...
      (Linux-Kernel)
    • Re: Getting CDRW to work in Debian
      ... Note that these instructions match a tuned modular kernel such as ... method to install your network and sound drivers. ... Test your configuration using cdrecord -scanbus. ... Create mount points for these devices. ...
      (Debian-User)