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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
05-06-2012, 08:57 PM
|
#1
|
LQ Newbie
Registered: May 2012
Posts: 5
Rep:
|
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.
|
|
|
05-06-2012, 09:43 PM
|
#2
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,165
|
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.
|
|
|
05-06-2012, 09:54 PM
|
#3
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,314
|
Duplicate threads cause confusion.
|
|
|
05-06-2012, 10:33 PM
|
#4
|
LQ Newbie
Registered: May 2012
Posts: 5
Original Poster
Rep:
|
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?
|
|
|
05-06-2012, 10:44 PM
|
#5
|
LQ Newbie
Registered: May 2012
Posts: 5
Original Poster
Rep:
|
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.
|
|
|
05-07-2012, 12:35 AM
|
#6
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,165
|
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
|
|
|
05-07-2012, 01:03 AM
|
#7
|
LQ Newbie
Registered: May 2012
Posts: 5
Original Poster
Rep:
|
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.
|
|
|
05-07-2012, 02:44 AM
|
#8
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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/
|
|
|
All times are GMT -5. The time now is 01:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|