SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
This boots directly before single user mode, and logs you in as root. Mount the root file system as read/write
Code:
mount -o rw,remount /
Issue the passwd to change the root password, and reboot.
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.
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
This boots directly before single user mode, and logs you in as root. Mount the root file system as read/write
Code:
mount -o rw,remount /
Issue the passwd to change the root password, and reboot.
I followed these instructions and they worked perfectly, Thanks for the help.
Side Note: Being able to change a root password so easily seems kinda strange.... :----:
But then you can just move the hard drive to another machine, do what you want, and move it back. Encrypting the hard drive is the only method (that I'm aware of) that requires considerable effort to get around when you have local access to the machine. Remote access of course is more difficult to obtain...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.