LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-01-2007, 05:37 AM   #1
wood1607
LQ Newbie
 
Registered: Aug 2007
Posts: 4

Rep: Reputation: 0
Grub Boot problem


Hi

i have Ubunta V4 i think, quite an old one anyway.

I am trying to clone this machine, using ghost v12, i tried a normal copy and a sector by sector copy, but each time i get a "GRUB error 17" when i restore to an identical machine when i try to boot, it freezes at this.

how do i get round this, many thanks for any help
 
Old 08-01-2007, 06:03 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,214

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I'm by no means an expert at solving Grub problems. I did some googling and found some information that may help.

First of all, here is what error 17 means, from the Grub documentation.

Quote:
17 : Cannot mount selected partition
This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.
So grub is not able to understand the file system for some reason. Ghost is a windoze program as far as I know; unless you have found a linux version. I wouldn't bet the bank it could read a linux file system properly. Did you copy this using Ghost under windoze?

Here is a thread I found with similar problems, and a way to find out what is going on. Have a look.

http://www.linuxforums.org/forum/sla...rror-17-a.html

If you are bent on cloning a linux system, I would look for linux tools to do so. Keep in mind you will have limited success unless the hardware is identical, or very close. Things like audio and video partitioning etc have to match up, other wise kernel modules will have to be changed after the cloning process. It might be faster to just install to a new system.
 
Old 08-01-2007, 07:13 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Without knowing the complete configuration, this is only a guess:

GRUB gets installed in the MBR with the location of the /boot directory (containing kernel, stage files, menu.lst) "hard-coded" into it. Thus, you would need to clone the entire disk--including the MBR---AND the device referencing must be the same. e.g. when GRUB looks for it's files in --eg--(hd0,3), that partition needs to be hd0,3 on the new machine as well as the old one.
 
Old 08-02-2007, 05:56 AM   #4
wood1607
LQ Newbie
 
Registered: Aug 2007
Posts: 4

Original Poster
Rep: Reputation: 0
thanks for your replies

Not getting very far though, been looking through forums etc and trying things with no success

i tried this from the live CD :

sudo grub
find /boot/grub/stage1
root (hd0,1)
setup (hd0)
quit

this got rid of the error 17 messeage but just get a prompt at rebot to install bootable media, disk not bootable.

in the GUI console the hard drive and partitions are listed as sda1,sda2.sda3 (only 1 h/d installed).

cannot understand why a ghost V12 sector by sector copy does not work, is there any Ghost swithes i am missing? (i have made sure virus monitoring is turned off in bios)
 
Old 08-02-2007, 07:38 AM   #5
tromboneman
Member
 
Registered: Jan 2007
Distribution: Debian
Posts: 67

Rep: Reputation: 15
On your live cd, try mounting the partition that contains your Linux installation. Then, chroot to the root of that partition by typing "chroot /path/mounted" where path mounted is similar to /mnt/drive or /media/drive. Do not use /dev/hdxx. Now, do the following procedure:
Quote:
sudo grub
find /boot/grub/stage1
root (hd0,1)
configfile (hd0,1)/boot/grub/menu.lst
setup (hd0)
quit
where (hd0,1) is the result returned by find /boot/grub/stage1. Make sure it isn't the live cd!

Hope this helps!
 
Old 08-02-2007, 08:04 AM   #6
wood1607
LQ Newbie
 
Registered: Aug 2007
Posts: 4

Original Poster
Rep: Reputation: 0
thanks again for your reply

i tried this but get "file system not reconised" when i execute the menu.lst line

it is a ext3 partition.

it is a old version of ubuntu, would booting with the latest ubuntu live cd make a difference?
 
Old 08-02-2007, 08:33 AM   #7
tromboneman
Member
 
Registered: Jan 2007
Distribution: Debian
Posts: 67

Rep: Reputation: 15
After you chroot, try doing the procedure I listed above, without the configfile line. Then reboot, and grub should work. If not, would you please post your menu.lst file and your /etc/fstab file? These would help a lot.
 
Old 08-02-2007, 08:46 AM   #8
wood1607
LQ Newbie
 
Registered: Aug 2007
Posts: 4

Original Poster
Rep: Reputation: 0
a big big thanks to tromboneman

its all working fine now. I didn't try your second idea. But as said, when i executed the menu.lst line got meesege saying file system not reconised. i thought it had failed, but restarted and its boots off the h/d with the ghost image restored so i have an exact clone now.

think it was the chroot command which did it but not sure

a big thanks again to you tromboneman
 
  


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
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 03:13 AM
GRUB dual boot problem: Boot "other" (windows) just restarts GRUB! stevod333 Linux - Software 13 04-06-2006 05:26 AM
Grub Boot Problem Magikus Linux - Software 1 04-02-2006 12:39 AM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 11:45 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM

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

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