ryansstuff
18-03-2011, 06:23
Thank you that was really helpful and have been able to do it.
Many Thanks
Many Thanks
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000e3c4f
Device Boot Start End Blocks Id System
/dev/sdb1 1 2550 20480993 fd Linux raid autodetect
/dev/sdb2 2550 60671 466854912 fd Linux raid autodetect
/dev/sdb3 60671 60801 1048096 82 Linux swap / Solaris
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d3deb
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20480993 fd Linux raid autodetect
/dev/sda2 2550 60671 466854912 fd Linux raid autodetect
/dev/sda3 60671 60801 1048096 82 Linux swap / Solaris
Disk /dev/md2: 478.0 GB, 478059364352 bytes
2 heads, 4 sectors/track, 116713712 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000
Disk /dev/md2 doesn't contain a valid partition table
Disk /dev/md1: 20.9 GB, 20972437504 bytes
2 heads, 4 sectors/track, 5120224 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000
Disk /dev/md1 doesn't contain a valid partition table
reboot -f
fdisk -l
... Device Boot Start End Blocks Id System /dev/sda1 * 1 1449 5242879+ 83 Linux ...
mount /dev/sda1 /mnt
chroot /mnt
passwd
ssh-keygen
Hi
You need to do this:
fdisk -l
the root one is marked with an asterisk. Thus now you can use the following command to mount the root partition:
mount /dev/yourrootpartition /mnt
Then, to use your partition type the command:
chroot /mnt
Then type the command:
passwd
type the new password at the prompt request
Then just boot back onto HD.