grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: forgot passwd, cannot login, [rd]init=/bin/sh don't work


From: walt
Subject: Re: forgot passwd, cannot login, [rd]init=/bin/sh don't work
Date: Wed, 08 Oct 2008 16:09:42 -0700
User-agent: Thunderbird/3.0a2pre (X11; 2008100805)

address@hidden wrote:
> ...
OK, I then tried linux-doc-2.6.26/Documentation/kernel-parameters.txt.gz:
   rdinit=  [KNL]
    Format:<full_path>
    Run specified binary instead of /init from the ramdisk,
    used for early userspace startup. See initrd.

So in grub2 I chose "e" to edit, and changed the lines to
  linux /boot/vmlinuz-2.6.26-1-686 root=UUID=... rdinit=/bin/sh
  initrd        /boot/initrd.img-2.6.26-1-686
hit ESC then RET, and alas it was like I didn't type anything at
all but just hit RET, booting proceeded as usual, and /proc/cmdline
shows that my changes to that command line were thrown away.

The only reason to use a ramdisk during boot is if your kernel
doesn't have any support for your root filesystem (unlikely) or
for your hardware (much more likely).

If the disk controller on your motherboard isn't too exotic you
could probably boot the kernel directly, i.e:
/boot/vmlinuz-2.6.26-1-686 init=/bin/sh root=whatever
Note the use of *init* instead of rdinit because you aren't
using the initial ramdisk this way.

May or may not work, but it's worth a try.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]