LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-23-2005, 09:01 PM   #1
Greenfuse
Member
 
Registered: Nov 2004
Distribution: gentoo, arch centos
Posts: 166

Rep: Reputation: 24
windows destroyed my Linux partitions


Two years experience with Linux. Never seen anything like this before - nothing I could find on other threads

Drive setup:
Main drive: A large drive (150GB) split into 4 primary partitions. First partition - (bootable) fat32 running win98. Second - ntfs running winxp. Third - split into swap and two ext3 for running Linux (mandriva). Fourth - ext3 with backup data

Second drive: 18GB ext3 unused

What I did:
Windows 98 was behaving badly (surprise surprise) so I reinstalled it. After the reinstall my partitions were altered. NOTE - at no time during the reinstall was there any indication that partitions were being altered.

the result:
Now my Main drive has two primary partitions. The first (hda1) is as before. The second (hda2) is ntfs - filling the remaining space in the drive. It is as if installing win98 has caused the ntfs partition to swallow up the linux partitions without a trace.

attempts to diagnose/remedy:
Running from (CD bootable) Mepis as a rescue. Analysis from fdisk shows only the two partitions. The same from qtparted. No sign of anything Linux.

Trying to crack the nut with e2fsck (not really knowing what I am doing) gives the following message:

root@ttyp1[demo]# e2fsck -b 8193 /mnt/hda2/
e2fsck 1.36-rc3 (18-Jan-2005)
e2fsck: Is a directory while trying to open /mnt/hda2/

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

help:
Can I retrieve the data from the missing Linux partitions? can I restore my mandriva operating system?
 
Old 07-23-2005, 10:46 PM   #2
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
I've never heard of a Windows 98 installation extending an XP NTFS, but there are two lessons you should learn from this:

1. Before you install anything on your computer, you should always back up your data.
2. Windows doesn't play nice with Linux. That's why, whenever people talk about dual-boots, they always advise installing Windows first, then installing Linux.

If Mepis doesn't see the partitions, I'm afraid they're gone. What does df say when you type it in the terminal?
 
Old 07-24-2005, 12:44 AM   #3
Greenfuse
Member
 
Registered: Nov 2004
Distribution: gentoo, arch centos
Posts: 166

Original Poster
Rep: Reputation: 24
Thanks for the reply.

df does not locate the missing partitions

I tried to recover using the advice I found (after considerable googling) at:
http://www.linux-france.org/article/.../howto/t1.html

Did not work

I backed up a few days ago so lost very little.
 
Old 07-24-2005, 09:03 AM   #4
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
If I'm not mistaking, you should use e2fsck on the device itself, not on the mount point, so you should pass as parameter /dev/hda2 instead of /mnt/hda2. Also, the device must not be mounted.
On the other hand, df won't show anything unless the partition is mounted so it's no use trying to run df from a CD if you can't mount the partition.

Last edited by harken; 07-24-2005 at 09:04 AM.
 
Old 07-24-2005, 12:39 PM   #5
ctkroeker
Senior Member
 
Registered: May 2005
Posts: 1,565
Blog Entries: 1

Rep: Reputation: 50
Quote:
Originally posted by aysiu
1. Before you install anything on your computer, you should always back up your data.
2. Windows doesn't play nice with Linux. That's why, whenever people talk about dual-boots, they always advise installing Windows first, then installing Linux.
Exactly. All boobs should get this lesson.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows disk check destroyed my files Impaler Linux - Software 0 08-20-2005 03:09 PM
PQMagic8 destroyed linux partitions. Unable to mount root fs cristip Debian 2 02-04-2005 09:22 PM
PQMagic8 destroyed linux partitions. Unable to mount root fs cristip Linux - General 1 02-04-2005 01:07 PM
Destroyed windows part. cidue Linux - General 12 11-06-2004 01:47 AM
partitions destroyed by windows ... Goo Linux - General 2 07-18-2004 01:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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