Linux - GeneralThis 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
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.
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.
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?
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.