[Top][All Lists]
[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: |
jidanni |
Subject: |
Re: forgot passwd, cannot login, [rd]init=/bin/sh don't work |
Date: |
Thu, 09 Oct 2008 09:09:00 +0800 |
AW> If you have a LiveCD or recovery CD which many distros of linux have, then
AW> boot under that. Then, when you are in the root shell, you can mount your
AW> systems partition, and then you can use the command chroot
AW> <place_where_you_mounted_your_filesystem>. That will make the live cd use
AW> your systems file system. Then simply passwd as root, and make your new root
AW> password.
Yes but as happened to me before, when one digs out one's old live CDs,
they often cannot deal with the newer filesystems (man mkfs.ext3 -I),
so I was wondering if there was a grub way rather than burning new
live CDs every few years.