[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem with windows partition



On Tue, Feb 05, 2002 at 05:00:01PM -0600, William Lacy wrote:
| I installed debian on a desktop computer and for some reason although I 
| chose "make a boot floppy" the install script wrote "grub" the the mbr 
| of /dev/hda.

Huh!?  boot-floppies comes with grub now?  I thought it was lilo.

| I was stuck in a place with nothing but some debian cds, 

If you really did have grub, fire up the command line (press 'c' at
the menu) and


root (hd0,1)
makeactive
chainloader +1


and you'll have 'doze up and running.  (adjust the numbers for your
partition scheme, the box that is from has hda1-/boot hda2-'doze
hda3-(extended) hda4-/ hda5-(swap))

(stick this in /boot/grub/menu.lst with an appropriate title and
you're all set)

| but I digress.  I tried to load lilo but I messed up and typed 
| boot=/dev/hda1 instead of /dev/hda.  So apparently I lost my partition 
| table on /dev/hda1 which had several extended partitions with win xp and 
| God only knows what all.
| 
| Any help on how to get my partition table back for /dev/hda1 would be 
| greatly appreciated.

gpart is a great tool for figureing out the partition table from the
disk.  (You haven't been trying to use the system, have you?  Don't!
You don't want a system modifying the disk while it still doesn't know
the proper partition info)

Find another machine somewhere and stick the binary on a floppy that
is readable by the installer kernel (probably ext2 only).  Boot the
installer and switch to vc2 (Alt-Ctl-F2) without picking anything in
the menuds.  Run gpart (from your floppy) and write down what it
thinks your partitions are.  Then run cfdisk and create the partition
table.  Reboot.

http://www.stud.uni-hannover.de/user/76201/gpart/

-D

-- 

If Microsoft would build a car...
... Occasionally your car would die on the freeway for no reason. You
would have to pull over to the side of the road, close all of the car
windows, shut it off, restart it, and reopen the windows before you
could continue. For some reason you would simply accept this.



Reply to: