-----Original Message----- From: Lars Ellenberg [mailto:l.g.e@web.de] Sent: 26 July 2004 18:59 To: suse-security@suse.com Subject: Re: [suse-security] password recovery
And what if I use LVM? how do I mount root manually?
it has been mentioned several times: at the (grub,lilo,whatever) boot promt, you can say init=/bin/bash (or sash, or whatever). you then only need to mount -o remount,rw /; passwd ; mount -o remount,ro ; reboot -f so what?
If the root partition is in LVM then you'll also need to run the LVM commands (pvscan etc, can't remember, I'll look at my notes in the morning) to see this partition. This is the main reason I use: /dev/sda1 /boot ext2 /dev/sda2 swap /dev/sda3 / reiserfs /dev/sda4 extended partition /dev/sda5 LVM partition Makes /boot and / trivial to access, assuming I have a boot disk with the megaraid2 driver available. Tom.