LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-08-2007, 04:31 PM   #1
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Rep: Reputation: 15
Cloned harddisk doesn't boot with LILO in MBR


Perhaps this question is not addressed properly here, but I will give it a try.
I have Windows XP and Linux Slackware partitions, LILO is installed in the MBR.
I have Acronis (on XP) to clone my hd to another disk. It seems that since I installed Lilo in the MBR of my primary HD my second harddisk is not able to boot any more. Even fixing the MBR with the windows XP fixboot results in '01 01 01...' upon boot. Does anyone know how to correct this?
 
Old 07-08-2007, 05:20 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 334Reputation: 334Reputation: 334Reputation: 334
You could try copying the boot sector of the disk that works to the disk that doesn't work. Under Linux, if the disk that works is /dev/hda and the disk that doesn't work is /dev/hdb then the following command would copy the boot sector of the disk that works to the disk that doesn't work.
Code:
dd if=/dev/hda of=/dev/hdb bs=512 count=1 conv=notrunc,noerror
The disk that was fixed probably needs to be /dev/hda in order for the boot loader to work correctly so you would have to change the cable around before you test the second disk.

I prefer to use Linux to clone disks. Linux give you software tools like partimage, dd, fdisk, and sfdisk that makes it easy to clone partitions, the MBR, and the partition table if you need to do that. If you want to clone disks in Windows I recommend using Symantec Norton Ghost. It's excellent.

Last edited by stress_junkie; 07-08-2007 at 05:28 PM.
 
Old 07-09-2007, 12:15 AM   #3
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 50
I cloned a Slackware only HD to another (2nd) HD of the same size (used Acronis TI).

Anyways this 2nd HD then ran fine (I'd removed the HD # 1)

But it wouldn't boot on its own (I had booted from/using the Slackware install CD then issued appropriate command made it boot fine, ok). As i said it ran fine.

So, while running I then ran /sbin/lilo

Upon reboot, all is fine; it now boots on its own.

I don't know why that was. But, nonetheless, it happened.

--
Alan.
 
Old 07-09-2007, 12:37 AM   #4
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 572

Rep: Reputation: 38
I'd guess that Acronis didn't copy the MBR over. Re-running LILO fixed it.

Cheers.
 
Old 07-09-2007, 05:07 PM   #5
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Original Poster
Rep: Reputation: 15
Thanks, running /sbin/lilo I did this before to install the bootloader in MBR, however, I recall that all the paths were different as this time you need to mount the whole linux disk on a temporary directory when booting from CD. I had to reset several things and don't know exactly how I did it then. Can someone give a few more clues?
 
Old 07-23-2007, 07:06 PM   #6
orbit
Member
 
Registered: Sep 2006
Location: Australia
Distribution: Slackware
Posts: 176

Rep: Reputation: 30
Hi,
I discovered this same MBR Lilo error while Acronis cloning slackware hdd's.

The workaround I discovered was that when you are making your HDD image, split it into 650Mb chunks.
I have no idea why this should effect the MBR? But it does.
If you split it, the problem goes away and your system will restore correctly .

N.B. Afterwards, you can burn the 3 or 4 part HDD image onto one DVD to restore off one disc, (it doesnt need to be on separate CD's).

Hope this helps

Cheers

Orbit

Last edited by orbit; 07-25-2007 at 06:12 PM.
 
Old 07-23-2007, 08:53 PM   #7
dennisk
Member
 
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279

Rep: Reputation: 30
System Rescue CD is a good distro to keep around. It has all the tools you need to clone, recover, repair, and reinstall grup & lilo. Good documentation, too!

Dennisk
 
Old 07-24-2007, 07:39 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,388
Blog Entries: 31

Rep: Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568
Quote:
Originally Posted by Kristian2
Perhaps this question is not addressed properly here, but I will give it a try.
I have Windows XP and Linux Slackware partitions, LILO is installed in the MBR.
I have Acronis (on XP) to clone my hd to another disk. It seems that since I installed Lilo in the MBR of my primary HD my second harddisk is not able to boot any more. Even fixing the MBR with the windows XP fixboot results in '01 01 01...' upon boot. Does anyone know how to correct this?
Hi,

I really think your problem is the 'Acronis'. You could easily use 'dd' to copy/clone a HDD with linux. You could look at Learn The DD Command Revised which is part of 'Slackware-Links' which was compiled from 'Slackware LQ Suggestions Links!' for some good online reference.

The 'dd' reference is rather lengthy but is complete. Read it, very good resource.
 
Old 07-24-2007, 01:00 PM   #9
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Original Poster
Rep: Reputation: 15
Thanks all,
the solution was quite simple (I did it before but forgot how to initially .

Reboot with the Slackware CD, do a
mount /dev/hda7 (where root is) /mnt
My backup HD is IDE, so every 'sda' becomes 'hda'

cp /mnt/sbin/lilo /sbin/lilo and
cp /mnt/etc/lilo.conf /etc
change each reference of 'sda' to 'hda' in lilo.conf
/sbin/lilo
When placing lilo in MBR I have to do this after each hd cloning session
 
  


Reply

Tags
disk clone


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
Lilo will not install to MBR and I get 99 99 99 at boot? M$ISBS Slackware 2 12-22-2006 02:40 PM
best method to upgrade RH Linux 6.0 harddisk with lilo boot Noorul LQ Suggestions & Feedback 1 08-25-2004 06:32 AM
If I install LILO to the MBR, can I use it to boot Windows XP? squirrels Linux - General 3 06-11-2004 02:18 PM
reinstall grub/lilo on MBR without cdrom boot lay_Z Linux - Newbie 5 03-12-2004 05:45 AM
Do not want lilo in my MBR, want to use System Commander to boot rdaves@earthlink.net Linux - General 4 09-21-2001 11:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration