Skip to contentSkip to conversation

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

DISCUSSION [email protected] 1 participant 1 message Oct 9, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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.