LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-09-2011, 09:01 PM   #1
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Rep: Reputation: 30
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.
 
Old 03-09-2011, 09:08 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Did you look into /dev to see what all devices you have?
 
Old 03-09-2011, 09:22 PM   #3
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
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"
 
Old 03-09-2011, 09:30 PM   #4
ewsmith
Member
 
Registered: Oct 2010
Location: Weesatche, Texas
Distribution: Slackware
Posts: 72

Rep: Reputation: 7
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
 
Old 03-09-2011, 09:30 PM   #5
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
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.
 
Old 03-09-2011, 09:38 PM   #6
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
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.

Last edited by M$ISBS; 03-09-2011 at 09:41 PM.
 
Old 03-09-2011, 09:41 PM   #7
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
What was the problem?
 
Old 03-09-2011, 09:54 PM   #8
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
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.
 
1 members found this post helpful.
Old 03-09-2011, 10:19 PM   #9
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
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.
 
Old 03-10-2011, 03:03 PM   #10
PDock
Member
 
Registered: Aug 2004
Distribution: Slack10 & curr. tried numerous
Posts: 189

Rep: Reputation: 37
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
 
Old 03-10-2011, 08:42 PM   #11
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by disturbed1 View Post
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.... :----:
 
Old 03-10-2011, 08:54 PM   #12
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
Quote:
Originally Posted by M$ISBS View Post
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.... :----:
Keep in mind a person needs physical access to the machine. You can also enable password protections in the BIOS and Lilo
http://www.brunolinux.com/05-Configu...tect_Lilo.html
 
Old 03-10-2011, 09:06 PM   #13
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by disturbed1 View Post
Keep in mind a person needs physical access to the machine. You can also enable password protections in the BIOS and Lilo
http://www.brunolinux.com/05-Configu...tect_Lilo.html
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...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What size USB disk is boot rescue disk? Lufbery Slackware - Installation 11 12-02-2007 02:36 PM
knoppix as a rescue disk lynnevan Linux - General 4 08-23-2006 05:48 AM
Rescue disk Ibrahimbazar Linux - General 7 06-26-2006 10:56 AM
Rescue disk UmneyDurak Mandriva 5 08-03-2004 02:49 AM
Boot disk, rescue disk deepika Linux - General 3 07-08-2003 01:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration