LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-25-2006, 12:15 PM   #1
bronco9588
LQ Newbie
 
Registered: Jun 2006
Posts: 8

Rep: Reputation: 0
Finding Hard Drive Using Knoppix STD


I am not very experienced with linux, and i heard that knoppix STD was the best way to recover the Windows/system32/config/sam file. I have booted up the program on several computers and have been unable to find the hard drive to even begin to search for the file. Knoppix loads onto a RAMDrive, and is booted from the CD. If you guys could help me out, i am trying to recover some documents off of my computer, and i have misplaced my password.

If it may help, the hard drive is a Serial Ata.
 
Old 06-25-2006, 02:48 PM   #2
xpromisex
Member
 
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Rep: Reputation: 30
Linux requires that you mount a filesystem to a drive before you can view its contents (furthermore, it requires that you mount it with the RIGHT filesystem) Since this drive is a Windows formatted drive, and is a SATA drive - it should be listed as a sd drive. Considering that it is your only Sata drive in the computer, it should be sda (note that if there are more than one SATA drive it will be sdb, sdc or sdd). So what you can do to mount and access this drive is to move into the /dev/ folder and see what entries are in there with the sd prefix. YOu can do this like so (anything inside the ''s is a command - input this into the terminal):

1) Open a terminal
2) 'cd /dev/' (Much the same as the DOS command)
3) 'ls sd*'
4) The results from this will give you what you need. If you have multiple partitions on the hard drive, they will come back as sda1, sda2 and so on. These are what you need to mount to find what you need. Assuming that all of these partitions have a FAT 32 filesystem on them these commands will mount them so you can find what you need:

1) Open terminal (if it isn't already open)
2)'su' (to change to root user)
3)enter the root user's password
4) mkdir /mnt/sata
5) mount -T vfat /dev/sd** /mnt/sata

Those stars are the a,b,c, or d and the 1,2,3,4 from earlier. Now you are ready to launch your file browser and look for what you need. If you mount the wrong harddrive partition, you can try again by doing this:

1) Open Terminal (if it isn't already open)
2) 'su'
3) enter root password
4) 'umount /mnt/sata'
5) 'mount -T vfat /dev/sd** /mnt/sata'

Hope this helps and isn't too wordy.
 
Old 06-25-2006, 06:40 PM   #3
bronco9588
LQ Newbie
 
Registered: Jun 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by xpromisex
Assuming that all of these partitions have a FAT 32 filesystem
only like any XPS computers uses ntfs... does that change anything?
 
Old 06-25-2006, 08:31 PM   #4
xpromisex
Member
 
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Rep: Reputation: 30
It does change some of the things I said above, but not TOO much. First of all you need to replace the command:

mount -T vfat /dev/sd** /mnt/sata

with
mount -T ntfs1 /dev/sd** /mnt/sata

The problem comes here: Linux write to NTFS is quite experimental at the moment, so most people do NOT write to their NTFS drives, and consequently I am really of no help with NTFS write either, as I have never needed it. However, there are experimental (I repeat EXPERIMENTAL) steps and programs to allow you to write to NTFS partitions. Should you need those, check out captive and ntfsprogs. ntfsprogs is here and captive is here. Hope everything goes Okay - and let me know should you need some more help.
 
Old 06-25-2006, 09:58 PM   #5
bronco9588
LQ Newbie
 
Registered: Jun 2006
Posts: 8

Original Poster
Rep: Reputation: 0
actually, i am just trying to retrieve information off of the hard drive, i dont really need to write anything. If possible i would like to run chntpw, but i need access to the hard drive to attempt it

I have yet to try 'mount -t ntfs1'

i typed the following 'mount -t ntfs /dev/sda1 /mnt/sata' basically no 1
i created the sata directory and i got the following response 'not a valid block device' what does this mean?

so i went back to the dev directory and 'ls sd*'
came up with like 50 listings. some were in yellow, and some were in blue sda and sda1 were yellow.
 
Old 06-25-2006, 11:39 PM   #6
xpromisex
Member
 
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Rep: Reputation: 30
oops - it's actually mount -t ntfs (no 1)

and hmm...it sounds like your system is using devfs instead of udev.

Repeat the ls command but change the sd part to be hde*. Does that report anything?
I'm not sure what to do - I'm sorta bottom fishing here, but from what I understand /dev/sda* may also be /dev/hde*. Not sure what to do if it isn't though...

Last edited by xpromisex; 06-25-2006 at 11:45 PM.
 
Old 06-26-2006, 04:01 PM   #7
bronco9588
LQ Newbie
 
Registered: Jun 2006
Posts: 8

Original Poster
Rep: Reputation: 0
ihave no idea what the device is labeled, what is the difference in colors yellow and blue?
 
Old 06-27-2006, 05:14 AM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
It'd help if you posted the output of "fdisk -l" (run it as root).
 
  


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
Finding hard drive in mandriva live DiabloDan Linux - Hardware 1 05-14-2006 09:36 PM
Finding hard drive type? stefaandk Linux - Newbie 3 05-09-2006 07:19 PM
finding a window hard drive greek Linux - Hardware 0 06-17-2004 06:18 PM
cd-rom drive working in knoppix Hard drive installation dj_dubbbz Linux - Newbie 5 03-02-2004 10:58 AM
RH 9 installation not finding Hard Drive avdicmon Linux - Newbie 1 08-18-2003 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:34 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