LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 11-05-2005, 07:01 AM   #1
fprumbau
LQ Newbie
 
Registered: Aug 2002
Location: Germany, NRW
Distribution: Suse 8
Posts: 2

Rep: Reputation: 0
Lost Windows Partitions with grub-inst, Please help!


Helo,

after installing SuSE10 on a secondary disk (SATA, /dev/sda1) I wanted to install
Grub on my Windows Bootdisk (IDE, /dev/hda, NTFS).

I followed a step by step instruction on the web but then committed an error. I edited /boot/grub/device.map and menu.lst according to instructions but ended up
adding '--force-lba' to the grub-inst script (I suppose this could be my error).

First I was glad to see the grub come up on booting by /dev/hda but then I saw grub had
erased the two existing partitions and placed a new partition only containing the Grub MBR.

I was shocked to see that and ask myself why the script-developers omitted this thing. I was not asked neither if partition deletion is O.K. nor was I warned of the danger of the parameters I'd been giving grub-inst.

Now, can anybody help me? Is there a tool for partition recovery in Linux?

Now I could restore the OS, but I also lost about 200GB of data, most of which
consisted of yet unstored Home video. This would mean a few weeks of work.

(while booting with a Windows PE-CD, it shows me the disk as 'not assigned').

Thanks in advance
Frank Prumbaum
frank@prumbaum.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!Hey I found it myself. There is a free Software 'testdisk' which was able to restore
my partitions.!!!

I got the linux-static-version and it worked!

Last edited by fprumbau; 11-05-2005 at 07:59 AM.
 
Old 11-05-2005, 11:57 AM   #2
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
look for partition recovery with google or file recovery.

Next time make a backup if you do something like this. A mistake is easily made.
 
Old 11-05-2005, 09:58 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Re: Lost Windows Partitions with grub-inst, Please help!

Quote:
Originally posted by fprumbau
I was shocked to see that and ask myself why the script-developers omitted this thing. I was not asked neither if partition deletion is O.K. nor was I warned of the danger of the parameters I'd been giving grub-inst.
It's a documented option - see the grub manual. You *did* read the manual first, right ???.
Quote:
Grub manual
Force GRUB to use LBA mode even for a buggy BIOS. Use this option only if your BIOS doesn't work properly in LBA mode even though it supports LBA mode.
As for testdisk, it's a great tool, but you would do well not to regularly put yourself in a position to rely on it working every time.
 
Old 11-18-2005, 10:20 PM   #4
tinybit
Member
 
Registered: Jul 2005
Location: China
Distribution: Mandriva
Posts: 84

Rep: Reputation: 15
GRUB and LILO always conflict with Windows. And GNU GRUB is not so robust, causing many problems during boot.

So try GRUB for DOS please. It is a cross-platform boot loader based on GNU GRUB. The GRUB.EXE can be started from DOS/Win9x; and GRLDR can be started from BOOT.INI of Windows NT/2K/XP/2003; and even more, the GRUB.EXE can be started from LINUX via the KEXEC tool.

By using GRUB.EXE or GRLDR, you don't have to touch your MBR. It is the safest way coexisting with DOS/Windows.

You needn't install GRUB for DOS. Just run GRUB.EXE from DOS, or append a line of "C:\GRLDR=START GRUB" into your BOOT.INI(restart and select the "START GRUB" menu item), that will do.

Download GRUB for DOS here: http://freshmeat.net/projects/grub4dos/

There is a fat12grldr.img file with the GRUB for DOS release. You can create a GRUB bootable floppy with this fat12grldr.img file.

Or, you can just copy GRUB.EXE to your DOS floppy and run GRUB.EXE to enter the GRUB environment.

If the system has no DOS/WINDOWS, you may use the bootlace.com utility to write GRLDR boot record onto the MBR.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
I lost my Partitions using GParted! MorPhiend Linux - Newbie 1 11-23-2005 01:11 PM
reformatted windows-lost grub Sticktendo Linux - Newbie 3 02-24-2005 12:13 AM
Debian/Windows lost grub to ntldr DigitalSmash Debian 1 01-12-2005 10:04 AM
Passwd at login w GRUB and Windows partitions-Just give an opinion! carrie Linux - Security 3 10-14-2004 11:25 AM
Lost partitions with freshly built GRUB TheSwine Linux - General 4 01-27-2004 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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