LinuxQuestions.org
Help answer threads with 0 replies.
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 04-28-2007, 02:33 PM   #1
fred1972
LQ Newbie
 
Registered: Apr 2007
Posts: 3

Rep: Reputation: 0
mandriva 2007 freeze up during repartitioning


Hello, I am in a bit of a pickle right here:

this morning I decided to get rid of the 47 gig XP partition on my laptop in order to get some more space.
using the GUI I deleted the XP partition (sda1) and turned it into an ext3.
this was followed by a warning telling me that the partition where my Mandriva 2007 is were going to be renamed (sda5 the root became sda6 and so on for the /home patition).
after that an other message told me something about the Boot-loader and the whole system frozed up.
I used Ctrl-Alt-Bckspace to get out of X and halt the system somewhat cleanely.
after reboot I was presented with a Kernel Panic during Boot.

Now, I think I know what I did that was Very wrong:
- deleting the XP partition also deleted something that has to do with the MBR

I next tried to rescue the system with the DVD and got an error message which I think is due to the fact that lilo tries to rebuild the MBR on sda1 which I deleted...

right now I have installed a new Mandriva on an empty part of the drive and kept my /home as is and mounting the old root (/) partition under /old.

now, obviously I really really want to get my original system back; it's there, but I have no clue as to how to get it back.

some insight would be very much appreciated

here is the current lilo.conf

Code:
# File generated by DrakX/drakboot
# WARNING: do not forget to run lilo after modifying this file

default="linux"
boot=/dev/sda
map=/boot/map
keytable=/boot/us.klt
menu-scheme=wb:bw:wb:bw
compact
prompt
nowarn
timeout=100
message=/boot/message
image=/boot/vmlinuz
        label="linux"
        root=/dev/sda5
        initrd=/boot/initrd.img
        append=" resume=/dev/sda7 splash=silent"
        vga=788
image=/boot/vmlinuz
        label="linux-nonfb"
        root=/dev/sda5
        initrd=/boot/initrd.img
and here is the /old/etc/lilo.conf
Code:
 File generated by DrakX/drakboot
# WARNING: do not forget to run lilo after modifying this file

default="linux"
boot=/dev/sda
map=/boot/map
keytable=/boot/us.klt
menu-scheme=wb:bw:wb:bw
compact
prompt
nowarn
timeout=100
message=/boot/message
image=/boot/vmlinuz
        label="linux"
        root=/dev/sda6
        initrd=/boot/initrd.img
        append="resume=/dev/sda7 splash=silent"
        vga=788
image=/boot/vmlinuz
        label="linux-nonfb"
        root=/dev/sda6
        initrd=/boot/initrd.img
and lastely the current /etc/fstab
Code:
/dev/sda5 / ext3 noatime 1 1
/dev/sda8 /home ext3 noatime 1 2
/dev/hda /mnt/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
/dev/sda2 /mnt/windows vfat umask=0,iocharset=utf8 0 0
/dev/sda6 /old ext3 noatime 1 2
none /proc proc defaults 0 0
/dev/sda7 swap swap defaults 0 0
just in case you are wondering, the sda2 is the windows recovery partition

thank you
 
Old 04-28-2007, 10:42 PM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Usually when you have a recovery partition, you don't have a Windows CD. Hopefully before you deleted the Windows partition, you burnt a copy of the operating system to disc as all OEM manufacturers that put the OS on a recovery partition also give you the option to burn it to CD's or a DVD so you still have it in the event of a hard drive failure. This is usually done via the "All Programs" in the main menu.
The MBR is the first sector of the hard drive, it is not part of any partitions. The first sector of a partition can be referred to as the "PBR" (partition boot record).
In the order of the boot process, after the bios does a post (power on self test), it passes control over to the MBR of the drive set to boot in the bios, which is usually the first drive (primary). The boot loader in the MBR looks at the partition table to find a bootable partition and passes control to the PBR of the bootable partition, or the bootable partition belonging to the OS you choose in a menu if there is more than one (multi-boot).
Now, if you deleted sda1 which is a partition on the first SCSI disc sda, the MBR which is in "sda" not "sda1" is still intact. If you installed a Linux OS and selected to install the boot loader to "/dev/sda", the first sector of the disc, the MBR, then the Linux system should boot automatically after re-boot. If you installed the boot loader to the first sector of the / partition, like "/dev/sda6", then it will not boot as the Windows boot loader in the MBR is not configured to boot the Linux partition.

You can however, install lilo to the MBR with the installation disc. I have done a trial with my Mandrake 2005, Mandriva 2007 has the exact same installer and is pretty much identical when it comes to installing them. So I have written a tutorial on how to restore/repair the boot loader and will probably work to help you install lilo in the MBR. Because you have two Mandriva installations, you may have to choose the one you want to boot, it may even set both of them to boot. If you've been through all of this and it still does not work, you may have to delete one of them.

Code:
Restore boot loader Mandrake 10.2 2005 LE

1: Boot the computer with the first install CD or DVD in the drive.
2: When given the option to press enter to install or press a F(x)
combination where (x) represents a number for options, press the 
appropriate F(x) key to see the options. Most often you need to 
type: linux rescue    at the prompt if there is no rescue related
option.
3: The installer will load drivers into memory and should present 
a list of rescue operations. If a progress bar shows up and goes to 
the end and appears to hang there, hit the "Esc" key on the keyboard
to view the list of options.
4: If you see an entry like so: "Re-install Boot Loader", highlight
it if needed by using the arrow keys, then hit the "Tab" key on the 
keyboard to highlight the "OK" switch and hit enter.
5: Linux will mount the installation and ask to press Enter to 
continue, hit "Enter"
6: It will do it's thing and tell you to press Enter to return to
Rescue GUI, hit "Enter".
7: At the GUI with the list of options, use arrow keys to highlight
"Reboot", then hit "Tab" key till "OK" is highlighted and remove the
disc from the drive, hit "Enter" to reboot.
 
Old 04-29-2007, 08:25 AM   #3
fred1972
LQ Newbie
 
Registered: Apr 2007
Posts: 3

Original Poster
Rep: Reputation: 0
I now have two working systems...

Thank you for the answer and all the explanation regarding MBR.

I fixed the issue by adding the old system to LILO.

I can now boot either the old or the new system.

thank you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cingular 3G - Sierra Wireless 860 - Mandriva 2007.1 - How To Configure 3G on Mandriva wpennington Mandriva 0 04-27-2007 07:41 PM
LXer: Mandriva releases Mandriva Linux 2007 Spring LXer Syndicated Linux News 0 04-19-2007 12:16 AM
Opinions! -> Is buying the Mandriva 2007 powerpack from Mandriva worth the $$ nickboarder27 Mandriva 5 03-01-2007 01:14 AM
Upgrading Mandriva 2007.0 to 2007.1 Genin Mandriva 2 12-25-2006 03:48 AM
Repartitioning Hard Drive MAndriva 2006 tfm1 Mandriva 8 08-28-2006 01:38 PM


All times are GMT -5. The time now is 12:44 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration