LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   windows killed my partitions! no linux partitions found on this computer. (http://www.linuxquestions.org/questions/linux-software-2/windows-killed-my-partitions-no-linux-partitions-found-on-this-computer-473564/)

The MJ 08-13-2006 04:51 PM

windows killed my partitions! no linux partitions found on this computer.
 
I was all set to install windows on another partition of my hard drive, I popped the Windows XP Pro cd in to my drive, and booted it. When I got past the eula, it stated that I had no partitions, and would I like to format the empty space

I thought, Oh yeah, Windows, like so many things, can't recognise LVM partitions. I exited the windows cd, and booted up my INSERT livecd to create a fat32 partition for windows. When I typed lvscan into a terminal, it said no logical volumes. Oh shit, I restarted with the fedora core rescue cd, which also claims that there are "no linux partitions."

now I remember why I deleted the windows partition in the first place.
Is there any way to get my partitions back?

zhangmaike 08-13-2006 05:39 PM

If you remember where your partitions were EXACTLY and their sizes, and windows did write to the disk at all except to remove the partitions themselves, simply using fdisk to add the original partitions will restore your disk. Removing a partition doesn't remove the data on that partition, only the entry in the partition table.

If you don't remember where your partitions were, there's some GPL software I ran into recently that seems like it might help: http://www.cgsecurity.org/wiki/TestDisk

It's supposed to recover lost partitions, but I've never used it and thus cannot tell you whether or not it works.

Good luck.

verdeboy2k 08-13-2006 05:39 PM

Rule 1: You cannot install windows AFTER Linux.
Rule 2: Windows will nuke your partition table.

Fix: If you can remember your exact partiton layout, you can use fdisk et al to restore it. (Or whatever you use for logical volumes, I've never used them.)

syg00 08-13-2006 07:16 PM

I don't do LVM either, but what does a "fdisk -l" show ??? (from the rescue disk).

Testdisk BTW is excellent at it's job.

The MJ 08-13-2006 08:06 PM

I remember what the partitions were, but not where, or their sizes. I will try that disk.

@Rule1: That's what I thought, until I asked: http://www.linuxquestions.org/questi...d.php?t=462785
@Rule2: Why? f*king windows...

Quote:

sh-3.00# fdisk -l

Disk /dev/hdb: 203.9GB 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 825280 bytes

Disk /dev/hdb doesn't contain a valid partition table

The MJ 08-14-2006 01:47 PM

I tried testdisk, which managed to find all my partitions and write them to disk.

EDIT: The partitions are, it seems, set up correctly. When I boot the fedora core rescue cd, it is able to find and mount my linux partition! After issuing "grub-install /dev/hdb", it boots correctly.

Now, how would I go about installing windows?

J.W. 08-14-2006 01:57 PM

Although it is possible to install Windows after Linux, doing so basically equates to penalizing yourself with a lot of extra work. As you've found, Windows will overwrite your existing partition table but as already noted there are methods that may allow you to recover it. Overall, it's simpler to install Windows and then Linux if you are dual booting

swagner7 08-14-2006 02:43 PM

windows must be first (the Microsoft way)
 
Windows has to be the first OS on your root hard drive. Yes the rule of thumb is to install Windows 1st and then Linux. I'm sure this is part of Microsoft's plan for world domination. They are so arrogant that they think they are the only operating system that should be allowed to exist. Perhaps Vista will fix this, but don't hold your breath.

It seems to me that you may be able to install windows after if you only allow it to use a partition that you have already created in an NTFS or FAT32 format. I think I have done that on a re-install once.

The MJ 08-14-2006 03:38 PM

I actually had a windows partition, which I deleted out of frustration, becouse it couldn't see my ethernet card (fancy that, linux hardware detection working better than windows)

I am trying to make a new fat32 partition, but this LVM business is making the whole process exceedingly difficult. I have posted for help on that particular problem here: http://www.linuxquestions.org/questi...d.php?t=473840

ascompltd 09-05-2006 10:34 PM

Quote:

Originally Posted by The MJ
I actually had a windows partition, which I deleted out of frustration, becouse it couldn't see my ethernet card (fancy that, linux hardware detection working better than windows)

I am trying to make a new fat32 partition, but this LVM business is making the whole process exceedingly difficult. I have posted for help on that particular problem here:

Hi MJ I know this is probably an old issue for you now but from your description it sounds as though you have two hard drives if this is in fact the case providing your Windows partion is the first partion on your second drive you can install /re-install windows without effecting your linux install at all.

ie DISK1 linux partitioned however you like
DISK2 First partion for "NTFS/DOS" for your windoze install remainder of disk however you like

If you then unplug your disk one (LINUX boot disk) during the install process of windoze and just allow windows to install itself on that first partion after install completes replug disk one and use grub or lilo on disk one partion to handle the dual booting.

I have this format on my machine and can and have installed or reinstalled windows with inpunity.

Hope this helps

archtoad6 01-05-2007 08:31 AM

As to restoring partitions: sfdisk -d outputs all, not just MBR, part. info. in a format that can be saved & used as input to sfdisk to restore the partitions. I know this 20-20 hindsight, but it might help save someone else from a similar problem. To do this you would have to systematically dump the info on each hd you own & store it in a safe place or places you will remember w/ file names you will still understand in 6 mo. or a year when you will need it.


All times are GMT -5. The time now is 05:09 AM.