Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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)
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:
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.