* forgot passwd, cannot login, [rd]init=/bin/sh don't work [not found] <20081007095652.GD7127@fencepost.gnu.org> @ 2008-10-08 21:40 ` jidanni 2008-10-08 23:09 ` walt 2008-10-09 18:19 ` Niels Böhm 0 siblings, 2 replies; 25+ messages in thread From: jidanni @ 2008-10-08 21:40 UTC (permalink / raw) To: grub-devel; +Cc: bug-grub Gentlemen, last time I forgot my password and couldn't log into my machine here on my far away rural mountaintop, I ended up digging up an old Debian "potato" CDROM and installing it into some free space on my disk, from which I could edit /etc/passwd and zero out the password. These days that would no longer necessarily work, see man mkfs.ext3 -I. > Presuming Linux, you can add "init=/bin/sh" to the kernel command line. This > will give you a shell without asking for a password. From this shell you can > edit your password file. Didn't work. >Initrd scripts might change everything. 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. ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: forgot passwd, cannot login, [rd]init=/bin/sh don't work 2008-10-08 21:40 ` forgot passwd, cannot login, [rd]init=/bin/sh don't work jidanni @ 2008-10-08 23:09 ` walt 2008-10-09 18:19 ` Niels Böhm 1 sibling, 0 replies; 25+ messages in thread From: walt @ 2008-10-08 23:09 UTC (permalink / raw) To: grub-devel; +Cc: bug-grub jidanni@jidanni.org 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. ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: forgot passwd, cannot login, [rd]init=/bin/sh don't work 2008-10-08 21:40 ` forgot passwd, cannot login, [rd]init=/bin/sh don't work jidanni 2008-10-08 23:09 ` walt @ 2008-10-09 18:19 ` Niels Böhm 2008-10-11 2:46 ` jidanni 1 sibling, 1 reply; 25+ messages in thread From: Niels Böhm @ 2008-10-09 18:19 UTC (permalink / raw) To: The development of GRUB 2 On Wednesday 08 October 2008, jidanni@jidanni.org wrote: > > 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. That's normal behaviour, if you press ESC all your changes are gone. The solution is not to press ESC, but Ctrl-x instead. There's also a hint about that in the online help below the editor frame. Niels Böhm ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: forgot passwd, cannot login, [rd]init=/bin/sh don't work 2008-10-09 18:19 ` Niels Böhm @ 2008-10-11 2:46 ` jidanni 2008-10-15 18:41 ` jidanni ` (2 more replies) 0 siblings, 3 replies; 25+ messages in thread From: jidanni @ 2008-10-11 2:46 UTC (permalink / raw) To: grub-devel Ah, no wonder. These need rewording: Use the %C and %C keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting or 'c' for a command-line. Minimum Emacs-like screen editing is supported. TAB lists available completions. Press C-x ('x' with Ctrl) to boot, C-c ('c' with Ctrl) for a command-line or ESC to return menu. Here, I have reworded the latter, preserving terseness, and fixing grammar: Minimum Emacs-like editing is supported. TAB lists available completions. Press C-x ('x' with Ctrl) to boot, C-c for a command-line or ESC to throw away changes and return to menu. Kindly integrate it into your next version. Thank you. (There is also a grub screen with its several lines of help text enclosed by "[ ]". Might as well chuck them too.) By the way, I indeed now could login now without remembering the password. Use linux /boot/vmlinuz-... root=... rw init=/bin/sh initrd /boot/initrd.img-... The key is the "rw init=/bin/sh". (And after editing /etc/passwd to change root's :x: to ::, be sure not to just exit the shell, but hit CTRL-ALT-DEL, else one has to push the reset button.) ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: forgot passwd, cannot login, [rd]init=/bin/sh don't work 2008-10-11 2:46 ` jidanni @ 2008-10-15 18:41 ` jidanni 2008-12-26 18:57 ` [PATCH] menu.c clearer instructions jidanni 2008-12-26 19:10 ` [semi-PATCH] grub.texi: emergency booting without root passwd jidanni 2 siblings, 0 replies; 25+ messages in thread From: jidanni @ 2008-10-15 18:41 UTC (permalink / raw) To: grub-devel Can somebody please integrate my patches? For the parent article and the "grub-install message should mention --recheck" article. I am a mere "apt-get install" user. I fear if I learn your whole source code system, and finally make an official patch, it too will fall on deaf ears. As I expect I will only have one patch per three years, please integrate it for me. Thanks. ^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH] menu.c clearer instructions 2008-10-11 2:46 ` jidanni 2008-10-15 18:41 ` jidanni @ 2008-12-26 18:57 ` jidanni 2008-12-26 19:48 ` cmdline.c: ESC at any time exits: only mentioned once jidanni 2008-12-26 20:46 ` [PATCH] menu.c clearer instructions Carles Pina i Estany 2008-12-26 19:10 ` [semi-PATCH] grub.texi: emergency booting without root passwd jidanni 2 siblings, 2 replies; 25+ messages in thread From: jidanni @ 2008-12-26 18:57 UTC (permalink / raw) To: grub-devel diff -C 1 menuO*.c menu.c *** menuORIG.c 2008-12-27 02:42:57.000000000 +0800 --- menu.c 2008-12-27 02:53:49.000000000 +0800 *************** *** 84,87 **** Minimum Emacs-like screen editing is supported. TAB lists\n\ ! available completions. Press C-x (\'x\' with Ctrl) to boot,\n\ ! C-c (\'c\' with Ctrl) for a command-line or ESC to return menu."); } --- 84,87 ---- Minimum Emacs-like screen editing is supported. TAB lists\n\ ! completions. C-x (\'x\' with Ctrl) to boot, C-c for command-line,\n\ ! or ESC to throw away changes and return to menu."); } ^ permalink raw reply [flat|nested] 25+ messages in thread
* cmdline.c: ESC at any time exits: only mentioned once 2008-12-26 18:57 ` [PATCH] menu.c clearer instructions jidanni @ 2008-12-26 19:48 ` jidanni 2009-01-24 20:11 ` Vesa Jääskeläinen 2008-12-26 20:46 ` [PATCH] menu.c clearer instructions Carles Pina i Estany 1 sibling, 1 reply; 25+ messages in thread From: jidanni @ 2008-12-26 19:48 UTC (permalink / raw) To: grub-devel Gentlemen, there is a serious usability problem with cmdline.c. At the very start the user sees the message made by grub_printf ("\ [ Minimal BASH-like line editing is supported. For the first word, TAB\n\ lists possible command completions. Anywhere else TAB lists possible\n\ device/file completions.%s ]\n\n", nested ? " ESC at any time exits." : ""); The problem is, just let him type "help" just once... The note about "ESC at any time exits" is now gone from the screen. He now faces a list of the help commands, with NO "exit" or "quit" choices. No. Not even the tiniest hint left about how to get back out. > If he is smart he would have remembered "ESC at any time exits". But he is just average, not smart. He ends up choosing "reboot", the only choice that seems like it will get him BACK. Therefore, please add "ESC at any time exits" to the bottom of the help list. No, I don't know how to make this patch. You will have to do it for me. Also note the help list must still fit on one screen after the patch. Thank you. ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: cmdline.c: ESC at any time exits: only mentioned once 2008-12-26 19:48 ` cmdline.c: ESC at any time exits: only mentioned once jidanni @ 2009-01-24 20:11 ` Vesa Jääskeläinen 2009-01-25 9:42 ` Carles Pina i Estany 0 siblings, 1 reply; 25+ messages in thread From: Vesa Jääskeläinen @ 2009-01-24 20:11 UTC (permalink / raw) To: The development of GRUB 2 jidanni@jidanni.org wrote: > Gentlemen, there is a serious usability problem with cmdline.c. > > At the very start the user sees the message made by > > grub_printf ("\ > [ Minimal BASH-like line editing is supported. For the first word, TAB\n\ > lists possible command completions. Anywhere else TAB lists possible\n\ > device/file completions.%s ]\n\n", > nested ? " ESC at any time exits." : ""); This is kinda problem for translations anyway. So it would be preferable to have static text there... What is the overall gain for having nested to control output of that text? > The problem is, just let him type "help" just once... > > The note about "ESC at any time exits" is now gone from the screen. > > He now faces a list of the help commands, with NO "exit" or "quit" > choices. Now the question is, should we provide an exit command? Bash basically supports that so it could be a good idea. ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: cmdline.c: ESC at any time exits: only mentioned once 2009-01-24 20:11 ` Vesa Jääskeläinen @ 2009-01-25 9:42 ` Carles Pina i Estany 0 siblings, 0 replies; 25+ messages in thread From: Carles Pina i Estany @ 2009-01-25 9:42 UTC (permalink / raw) To: The development of GRUB 2 Hello, On Jan/24/2009, Vesa Jääskeläinen wrote: > jidanni@jidanni.org wrote: > > Gentlemen, there is a serious usability problem with cmdline.c. > > > > At the very start the user sees the message made by > > > > grub_printf ("\ > > [ Minimal BASH-like line editing is supported. For the first word, TAB\n\ > > lists possible command completions. Anywhere else TAB lists possible\n\ > > device/file completions.%s ]\n\n", > > nested ? " ESC at any time exits." : ""); > > This is kinda problem for translations anyway. So it would be > preferable to have static text there... I'm reading it and I don't see any problem for translation. Should be like: grub_printf (_("\ [ Minimal BASH-like line editing is supported. For the first word, TAB\n\ lists possible command completions. Anywhere else TAB lists possible\n\ device/file completions.%s ]\n\n"), nested ? _(" ESC at any time exits.") : ""); Or I'm wrong? -- Carles Pina i Estany GPG id: 0x17756391 http://pinux.info ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] menu.c clearer instructions 2008-12-26 18:57 ` [PATCH] menu.c clearer instructions jidanni 2008-12-26 19:48 ` cmdline.c: ESC at any time exits: only mentioned once jidanni @ 2008-12-26 20:46 ` Carles Pina i Estany 2008-12-26 22:54 ` jidanni 1 sibling, 1 reply; 25+ messages in thread From: Carles Pina i Estany @ 2008-12-26 20:46 UTC (permalink / raw) To: The development of GRUB 2 Hello, Again: I'm not a Grub expert/mantainer, but I have been reading some emails here and I will wear the police hat for this email: On Dec/27/2008, jidanni@jidanni.org wrote: > diff -C 1 menuO*.c menu.c Could you send using diff unified format, with 3 lines of context? (default one) I think that people here is used to receive this diff's, not the not-unifed format that you sent. I suggest download from the SVN and use svn diff :-) Also, and before somebody else will tell to you, could you write a Changelog entry for your patches? (take a look on the current Changelog to know the way that should be written), so you can attach the patch (not in the mail inline) and copy in the email the Changelog entry. Thanks, -- Carles Pina i Estany GPG id: 0x17756391 http://pinux.info ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] menu.c clearer instructions 2008-12-26 20:46 ` [PATCH] menu.c clearer instructions Carles Pina i Estany @ 2008-12-26 22:54 ` jidanni 2008-12-27 6:53 ` Pavel Roskin 2009-01-05 5:31 ` Jerone Young 0 siblings, 2 replies; 25+ messages in thread From: jidanni @ 2008-12-26 22:54 UTC (permalink / raw) To: grub-devel 2008-12-27 jidanni@jidanni.org * normal/menu.c: print clearer instructions on the screen --- menuORIG.c 2008-12-27 02:42:57.000000000 +0800 +++ menu.c 2008-12-27 02:53:49.000000000 +0800 @@ -82,8 +82,8 @@ { grub_printf ("\n\ Minimum Emacs-like screen editing is supported. TAB lists\n\ - available completions. Press C-x (\'x\' with Ctrl) to boot,\n\ - C-c (\'c\' with Ctrl) for a command-line or ESC to return menu."); + completions. C-x (\'x\' with Ctrl) to boot, C-c for command-line,\n\ + or ESC to throw away changes and return to menu."); } else { "No name needed". ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] menu.c clearer instructions 2008-12-26 22:54 ` jidanni @ 2008-12-27 6:53 ` Pavel Roskin 2008-12-27 22:49 ` jidanni 2009-01-05 5:31 ` Jerone Young 1 sibling, 1 reply; 25+ messages in thread From: Pavel Roskin @ 2008-12-27 6:53 UTC (permalink / raw) To: The development of GRUB 2 On Sat, 2008-12-27 at 06:54 +0800, jidanni@jidanni.org wrote: > - available completions. Press C-x (\'x\' with Ctrl) to boot,\n\ > - C-c (\'c\' with Ctrl) for a command-line or ESC to return menu."); > + completions. C-x (\'x\' with Ctrl) to boot, C-c for command-line,\n\ > + or ESC to throw away changes and return to menu."); How about "Ctrl-x to boot, Ctrl-c for command line, or ESC to abandon changes and return to the menu"? We don't need to use the "C-" notation at all if it needs explanation. "Ctrl-x" should be clear to most users (everyone knows "Ctrl-Alt-Del"). "abandon" sounds better than "throw away" in this context. -- Regards, Pavel Roskin ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] menu.c clearer instructions 2008-12-27 6:53 ` Pavel Roskin @ 2008-12-27 22:49 ` jidanni 2008-12-30 1:09 ` jidanni 0 siblings, 1 reply; 25+ messages in thread From: jidanni @ 2008-12-27 22:49 UTC (permalink / raw) To: grub-devel OK, Pavel Roskin's suggestions sound great. I leave this in your hands. ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] menu.c clearer instructions 2008-12-27 22:49 ` jidanni @ 2008-12-30 1:09 ` jidanni 2008-12-30 8:12 ` Jerone Young 0 siblings, 1 reply; 25+ messages in thread From: jidanni @ 2008-12-30 1:09 UTC (permalink / raw) To: grub-devel >>>>> "j" == jidanni <jidanni@jidanni.org> writes: j> OK, Pavel Roskin's suggestions sound great. I leave this in your hands. However, will these patches I sent this week be used, or slowly forgotten ? ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] menu.c clearer instructions 2008-12-30 1:09 ` jidanni @ 2008-12-30 8:12 ` Jerone Young 2009-01-01 0:18 ` jidanni 0 siblings, 1 reply; 25+ messages in thread From: Jerone Young @ 2008-12-30 8:12 UTC (permalink / raw) To: The development of GRUB 2 [-- Attachment #1: Type: text/plain, Size: 709 bytes --] I'll track your patches. If everyone comes to a consensus on them in a week I'll commit them to the repo. I agree with Pavel also that using "Ctrl-<key>" is more descriptive then what is there now. What other patches where you going to submit like this? On Mon, Dec 29, 2008 at 8:09 PM, <jidanni@jidanni.org> wrote: > >>>>> "j" == jidanni <jidanni@jidanni.org> writes: > > j> OK, Pavel Roskin's suggestions sound great. I leave this in your hands. > > However, will these patches I sent this week be used, or > slowly > forgotten > ? > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > [-- Attachment #2: Type: text/html, Size: 1328 bytes --] ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] menu.c clearer instructions 2008-12-30 8:12 ` Jerone Young @ 2009-01-01 0:18 ` jidanni 0 siblings, 0 replies; 25+ messages in thread From: jidanni @ 2009-01-01 0:18 UTC (permalink / raw) To: grub-devel >>>>> "JY" == Jerone Young <jerone@gmail.com> writes: JY> I'll track your patches. Thanks! JY> What other patches where you going to submit like this? There is a total of four issues, [PATCH] grub-install message should mention --recheck [PATCH] menu.c clearer instructions [semi-PATCH] grub.texi: emergency booting without root passwd cmdline.c: ESC at any time exits: only mentioned once There won't be more soon as I now boot like a charm. ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] menu.c clearer instructions 2008-12-26 22:54 ` jidanni 2008-12-27 6:53 ` Pavel Roskin @ 2009-01-05 5:31 ` Jerone Young 2009-01-05 23:53 ` jidanni 1 sibling, 1 reply; 25+ messages in thread From: Jerone Young @ 2009-01-05 5:31 UTC (permalink / raw) To: The development of GRUB 2 [-- Attachment #1: Type: text/plain, Size: 1017 bytes --] Committed a variant of this patch into the repository. Thanks, Jerone On Fri, Dec 26, 2008 at 4:54 PM, <jidanni@jidanni.org> wrote: > 2008-12-27 jidanni@jidanni.org > > * normal/menu.c: print clearer instructions on the screen > > --- menuORIG.c 2008-12-27 02:42:57.000000000 +0800 > +++ menu.c 2008-12-27 02:53:49.000000000 +0800 > @@ -82,8 +82,8 @@ > { > grub_printf ("\n\ > Minimum Emacs-like screen editing is supported. TAB lists\n\ > - available completions. Press C-x (\'x\' with Ctrl) to boot,\n\ > - C-c (\'c\' with Ctrl) for a command-line or ESC to return menu."); > + completions. C-x (\'x\' with Ctrl) to boot, C-c for command-line,\n\ > + or ESC to throw away changes and return to menu."); > } > else > { > > > "No name needed". > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > [-- Attachment #2: Type: text/html, Size: 2127 bytes --] ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] menu.c clearer instructions 2009-01-05 5:31 ` Jerone Young @ 2009-01-05 23:53 ` jidanni 2009-01-23 20:05 ` patches not acted upon jidanni 0 siblings, 1 reply; 25+ messages in thread From: jidanni @ 2009-01-05 23:53 UTC (permalink / raw) To: grub-devel JY> Committed a variant of this patch into the repository. OK, thanks. Say, three semi-patches of mine remain to be resolved. Their subjects were: [PATCH] grub-install message should mention --recheck [semi-PATCH] grub.texi: emergency booting without root passwd cmdline.c: ESC at any time exits: only mentioned once ^ permalink raw reply [flat|nested] 25+ messages in thread
* patches not acted upon 2009-01-05 23:53 ` jidanni @ 2009-01-23 20:05 ` jidanni 2009-01-24 20:02 ` Vesa Jääskeläinen 2009-01-25 3:24 ` Jerone Young 0 siblings, 2 replies; 25+ messages in thread From: jidanni @ 2009-01-23 20:05 UTC (permalink / raw) To: grub-devel I sent patches etc. last month, Subjects: [PATCH] grub-install message should mention --recheck [semi-PATCH] grub.texi: emergency booting without root passwd cmdline.c: ESC at any time exits: only mentioned once but nobody acted on them one way or the other ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: patches not acted upon 2009-01-23 20:05 ` patches not acted upon jidanni @ 2009-01-24 20:02 ` Vesa Jääskeläinen 2009-01-25 3:24 ` Jerone Young 1 sibling, 0 replies; 25+ messages in thread From: Vesa Jääskeläinen @ 2009-01-24 20:02 UTC (permalink / raw) To: The development of GRUB 2 jidanni@jidanni.org wrote: > I sent patches etc. last month, Subjects: > [PATCH] grub-install message should mention --recheck > [semi-PATCH] grub.texi: emergency booting without root passwd > cmdline.c: ESC at any time exits: only mentioned once > but nobody acted on them one way or the other If you hide your messages to some threads don't expect that hurry people will notice them. Just write a _new_ message and not a reply when starting a _new_ topic. Personally I can easily mark threads not within my interest area as ignored or mark automatically as read. This time I'll try to hunt your patches and comment on them if there is something to be done... ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: patches not acted upon 2009-01-23 20:05 ` patches not acted upon jidanni 2009-01-24 20:02 ` Vesa Jääskeläinen @ 2009-01-25 3:24 ` Jerone Young 2009-01-26 19:27 ` jidanni 1 sibling, 1 reply; 25+ messages in thread From: Jerone Young @ 2009-01-25 3:24 UTC (permalink / raw) To: The development of GRUB 2 [-- Attachment #1: Type: text/plain, Size: 1169 bytes --] Next week I was going to hunt all the patches I personally missed or had not been commited yet by someone else. Been so busy lately havn't had time. But I did commit one of your patches. 1)[PATCH] grub-install message should mention --recheck This one really isn't necessary. Kind of agreed with the first commenter. I don't have any strong feeling toward not including it. But it does seem like something that users can easily find when using --help. 2) [semi-PATCH] grub.texi: emergency booting without root passwd This patch isn't completed. Whould need to work on this more 3) cmdline.c: ESC at any time exits: only mentioned once Not sure off head. Will check it though. On Fri, Jan 23, 2009 at 2:05 PM, <jidanni@jidanni.org> wrote: > I sent patches etc. last month, Subjects: > [PATCH] grub-install message should mention --recheck > [semi-PATCH] grub.texi: emergency booting without root passwd > cmdline.c: ESC at any time exits: only mentioned once > but nobody acted on them one way or the other > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > [-- Attachment #2: Type: text/html, Size: 1650 bytes --] ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: patches not acted upon 2009-01-25 3:24 ` Jerone Young @ 2009-01-26 19:27 ` jidanni 0 siblings, 0 replies; 25+ messages in thread From: jidanni @ 2009-01-26 19:27 UTC (permalink / raw) To: grub-devel OK, thanks for evaluating them, worthy or not. ^ permalink raw reply [flat|nested] 25+ messages in thread
* [semi-PATCH] grub.texi: emergency booting without root passwd 2008-10-11 2:46 ` jidanni 2008-10-15 18:41 ` jidanni 2008-12-26 18:57 ` [PATCH] menu.c clearer instructions jidanni @ 2008-12-26 19:10 ` jidanni 2008-12-26 20:42 ` Carles Pina i Estany 2 siblings, 1 reply; 25+ messages in thread From: jidanni @ 2008-12-26 19:10 UTC (permalink / raw) To: grub-devel Please add this somewhere you feel comfortable with in grub.texi. I looked, but cannot find the right place. Thank you. @Chapter Tips @node Forgot the root password One place when grub can come in very handy is when one forgot the root password, and hence cannot boot or even shutdown the system. Use @example linux /boot/vmlinuz-... root=... rw init=/bin/sh initrd /boot/initrd.img-... @end example The key is the "rw init=/bin/sh". (And after editing /etc/passwd to change root's :x: to ::, be sure not to just exit the shell, but hit CTRL-ALT-DEL, else one has to push the reset button.) ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [semi-PATCH] grub.texi: emergency booting without root passwd 2008-12-26 19:10 ` [semi-PATCH] grub.texi: emergency booting without root passwd jidanni @ 2008-12-26 20:42 ` Carles Pina i Estany 2009-01-24 20:06 ` Vesa Jääskeläinen 0 siblings, 1 reply; 25+ messages in thread From: Carles Pina i Estany @ 2008-12-26 20:42 UTC (permalink / raw) To: The development of GRUB 2 Hello, (I'm not Grub expert) On Dec/27/2008, jidanni@jidanni.org wrote: > Please add this somewhere you feel comfortable with in grub.texi. > > I looked, but cannot find the right place. > > Thank you. > > @Chapter Tips > @node Forgot the root password > One place when grub can come in very handy is when one forgot the root > password, and hence cannot boot or even shutdown the system. Use > @example > linux /boot/vmlinuz-... root=... rw init=/bin/sh > initrd /boot/initrd.img-... > @end example > The key is the "rw init=/bin/sh". (And after editing /etc/passwd to change > root's :x: to ::, be sure not to just exit the shell, but hit > CTRL-ALT-DEL, else one has to push the reset button.) and I think that better type "sync" to synchronize the buffers. Also, I'm not sure if this should be in the Grub "Chapter Tips" (because it's half Grub related, half Linux related) (so, maybe would be useful but I wonder if it's the correct place) What other people thinks? -- Carles Pina i Estany GPG id: 0x17756391 http://pinux.info ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [semi-PATCH] grub.texi: emergency booting without root passwd 2008-12-26 20:42 ` Carles Pina i Estany @ 2009-01-24 20:06 ` Vesa Jääskeläinen 0 siblings, 0 replies; 25+ messages in thread From: Vesa Jääskeläinen @ 2009-01-24 20:06 UTC (permalink / raw) To: The development of GRUB 2 Carles Pina i Estany wrote: > Hello, > > (I'm not Grub expert) > > On Dec/27/2008, jidanni@jidanni.org wrote: >> Please add this somewhere you feel comfortable with in grub.texi. >> >> I looked, but cannot find the right place. >> >> Thank you. >> >> @Chapter Tips >> @node Forgot the root password >> One place when grub can come in very handy is when one forgot the root >> password, and hence cannot boot or even shutdown the system. Use >> @example >> linux /boot/vmlinuz-... root=... rw init=/bin/sh >> initrd /boot/initrd.img-... >> @end example >> The key is the "rw init=/bin/sh". (And after editing /etc/passwd to change >> root's :x: to ::, be sure not to just exit the shell, but hit >> CTRL-ALT-DEL, else one has to push the reset button.) > > and I think that better type "sync" to synchronize the buffers. > > Also, I'm not sure if this should be in the Grub "Chapter Tips" (because > it's half Grub related, half Linux related) (so, maybe would be > useful but I wonder if it's the correct place) > > What other people thinks? First of all it does not work with every Linux distribution and secondly I do not see that we should take any side how to enter to Linux installations without proper authentication... So you are free to keep information like this on the web, but not as part of official grub distribution... ^ permalink raw reply [flat|nested] 25+ messages in thread
end of thread, other threads:[~2009-01-26 19:27 UTC | newest]
Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20081007095652.GD7127@fencepost.gnu.org>
2008-10-08 21:40 ` forgot passwd, cannot login, [rd]init=/bin/sh don't work jidanni
2008-10-08 23:09 ` walt
2008-10-09 18:19 ` Niels Böhm
2008-10-11 2:46 ` jidanni
2008-10-15 18:41 ` jidanni
2008-12-26 18:57 ` [PATCH] menu.c clearer instructions jidanni
2008-12-26 19:48 ` cmdline.c: ESC at any time exits: only mentioned once jidanni
2009-01-24 20:11 ` Vesa Jääskeläinen
2009-01-25 9:42 ` Carles Pina i Estany
2008-12-26 20:46 ` [PATCH] menu.c clearer instructions Carles Pina i Estany
2008-12-26 22:54 ` jidanni
2008-12-27 6:53 ` Pavel Roskin
2008-12-27 22:49 ` jidanni
2008-12-30 1:09 ` jidanni
2008-12-30 8:12 ` Jerone Young
2009-01-01 0:18 ` jidanni
2009-01-05 5:31 ` Jerone Young
2009-01-05 23:53 ` jidanni
2009-01-23 20:05 ` patches not acted upon jidanni
2009-01-24 20:02 ` Vesa Jääskeläinen
2009-01-25 3:24 ` Jerone Young
2009-01-26 19:27 ` jidanni
2008-12-26 19:10 ` [semi-PATCH] grub.texi: emergency booting without root passwd jidanni
2008-12-26 20:42 ` Carles Pina i Estany
2009-01-24 20:06 ` Vesa Jääskeläinen
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.