LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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


Closed Thread
  Search this Thread
Old 05-06-2012, 08:57 PM   #1
chessmad00
LQ Newbie
 
Registered: May 2012
Posts: 5

Rep: Reputation: Disabled
How did this happen


Hi all,

I ran Damn Small Linux from a USB key to try to recover from a BSOD. When i rebooted i noticed that DSL was installed on my HDD. Ie it somehow reformatted my HDD, I'm pretty sure that i didnt wipe it intentionally.

How do i recover from this? I'm pretty sure the data is still on the drive.
 
Old 05-06-2012, 09:43 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,165

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
Not knowing what steps you took after booting the USB, it's pretty hard to know what happened. I would not expect DSL or any other Linux distribution to automatically install without any proactive step from the user. Boot DSL and run as root user: fdisk -l (Lower case letter L in the command). This will give partition information so we have a starting point. If you know how to mount a partition, you could do that and take a look to see if you still have your files.
 
Old 05-06-2012, 09:54 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,314

Rep: Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172
Duplicate threads cause confusion.
 
Old 05-06-2012, 10:33 PM   #4
chessmad00
LQ Newbie
 
Registered: May 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
sudo fdisk -l shows

disk /dev/sda: 320GB, 320072932684 bytes
16 heads, 32 sectors/track, 1220981 cylinders
Units = cylinders of 512*512 = 262144 bytes

device boot start end blocks id system
/dev/sda1 * 1 976 249840 b win95 fat32

disk /dev/sdb: 255 MB, 25585244 bytes
255 heads, 63 sectors/track, 31 cylinders
Units = cylinders of 16065*512= 8225280 bytes

device boot start end blocks id system
/dev/sdb1 * 1 31 248976 b win95 fat32
Partition 1 has different physical/logical beginnings (non-linux?):
phys=(0,0,1) logical=(0,1,1)

How do i make it boot from sda? Copy MBR record?
 
Old 05-06-2012, 10:44 PM   #5
chessmad00
LQ Newbie
 
Registered: May 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
mount /dev/sda1 - mount the partition

ls /mnt/sda1 - list the mounted partition

ls /mnt/sdb1 - list the mounted partition

Still cant see my windows files.
 
Old 05-07-2012, 12:35 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,165

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
Your fdisk output shows a 320GB drive with one windows partition with a fat32 filesystem. I expect the DSL is on the 255MB flash? Which version of windows are you using? Do you have its installation disk? Do you have a recovery option on it? You would need to use that to write the master boot record for windows.

You need to create a mount point and should specify a filesystem type, the command you list won't do anything. Create the directory windows in the /mnt directory when booted into DSL and run the command below. You should then be able to navigate to that directory and see if your files are there.

mount -t vfat /dev/sda1 /mnt/windows
 
Old 05-07-2012, 01:03 AM   #7
chessmad00
LQ Newbie
 
Registered: May 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Ok ran the command

sudo mount -t vfat /dev/sda1 /mnt/windows

then ran

ls /mnt/windows

the file list is of the linux boot disk when it should be showing my windows file.

I am running Windows Vista, i dont have the installation disk. There was a recovery partition but it seemed to be wiped out. So it seems the partition is there, I just need to access it :-D

Anything else to try.
 
Old 05-07-2012, 02:44 AM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


http://www.linuxquestions.org/questi...my-hdd-942845/
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How could this happen? Bller Slackware 8 08-25-2009 08:08 PM
What would happen if... d1s4st3r General 4 06-27-2004 08:12 AM
Can This Happen ? rvijay Linux - Security 11 09-28-2003 09:25 AM
Why does this happen? BajaNick General 1 09-09-2003 11:33 PM
what will happen doodah Linux - General 1 07-07-2001 05:54 PM

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

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