File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes Partition Woes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Partition Woes" Watch "Partition Woes" New topic
Author

Partition Woes

Abhinav Srivastava
Ranch Hand

Joined: Nov 19, 2002
Posts: 349

So I had this perfectly working setup of WinXP and Ubuntu and then I had to reinstall WinXP. I just reinstalled Win, did not format the drive etc. I have one 160GB disk on my laptop.

1. The grub loader disappeared.
2. Used LiveCD and when I started GParted, it would not show my partitions.
3. Any attempts to restroe grub failed. It wouldn't find the "stage1".
4. Tried to reinstall Ubuntu, failed with Error 18.
5. It seems like the partitions have gone out-of-order at least thats what TestDisk says... (incorrect number of heads/cylinder 240 (FAT32) != 255 (HD))
6. Windows Checkdisk runs fine.
7. PartitionMagic won't start complaining about drive letters.

What can I do next (other than backing up my HD and reformatting/partitioning the whole thing.)?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8866
    
    8

Abhinav Srivastava wrote:
1. The grub loader disappeared.


Windows does not play well with others. It always overwrites the master boot record, which disables Grub.

Abhinav Srivastava wrote:
3. Any attempts to restroe grub failed. It wouldn't find the "stage1".


Exactly what did you do? Did you try the procedures to recover Grub here?

Abhinav Srivastava wrote:
What can I do next (other than backing up my HD and reformatting/partitioning the whole thing.)?


You may want to post over at Ubuntu Forums. They may have some in-depth knowledge that escapes me (I'm a mere Ubuntu user). Personally, I'd start from scratch, but I store all my important data on a NAS, so it's not a big deal.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4646
    
    5

I am pretty sure that there is a Ubuntu/Debian utility to rewrite the master boot record so that grub works. But as written upthread, the Ubuntu forums have folks who know much more than I do. I am mostly a user, altho I pretend to be a sysadmin on four systems
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Partition Woes