How to use A rescue disk?
Ive got an old hard drive with slack on it but I lost the root password. I booted up with the slack install disk but I dont remember how to mount the drive so I can see whats on it.
Ive tried to mount it with things like mount /dev/hda and mount /dev/sda and others with no luck. |
Did you look into /dev to see what all devices you have?
|
Yea, ive looked there Theres a whole bunch of stuff. When I try to mount I get the message "cannot find /dev/sda in fstab"
|
i use 'mount /dev/sda6 /mnt/gentoo' to mount my gentoo partition with slackware
and 'mount /dev/sda2 /mnt/slackware' to mount my slackware partition with gentoo try to find the partition number of the / then use that |
Maybe your HD is there but being listed as something different? Are you able to boot via hard drive? If so, then it most likely has to be there man. If anything, post the contents of /dev.
|
I just figured it out... I booted to the HD and saw that it was sda1, I thought I had tried that already, I guess not.
Thanks for the help. :) |
What was the problem?
|
cat /proc/partitions will give you a list of partitions.
You don't mount a drive, you mount the partitions. If you only lost the password, boot to single user, and issue the passwd command to change the password. At the lilo screen press tab. Type in the name of your kernel followed by init=/bin/bash. If you kernel is named Linux it would be - Code:
Linux init=/bin/bash Code:
mount -o rw,remount / |
The problem was that I simply did not format the mount command properly... :-
disturbed.... I will give that a try, I did not know you could do that. Thanks. |
disturbed1, it is really disturbing how reading posts such as your #8 make me realize how little I know having puttered with Slackware for more years than I wish to admit.
Here I've been: booting a live/install cd, mounting the / partition on /mnt, using vi (which I am not fond of cause I found mc and never became proficient in vi) to remove the first 'x' of the root line in /etc/passwd, saving the file and rebooting. While Grecian formula may hide my gray hairs, it has no regenerative effect on the gray cell beneath. Thanks for your post ppd |
Quote:
Side Note: Being able to change a root password so easily seems kinda strange.... :----: |
Quote:
http://www.brunolinux.com/05-Configu...tect_Lilo.html |
Quote:
|
All times are GMT -5. The time now is 05:24 AM. |