LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 05-02-2003, 02:34 PM   #1
Interceptor
LQ Newbie
 
Registered: May 2003
Location: IL
Distribution: Debian 3.0/testing & RH 7.3
Posts: 16

Rep: Reputation: 0
boot error after using Copy Commander to copy debian system onto larger new drive


I need some help to fix this problem.
I used V-COM "Copy Commander" to copy my Debian 3.0 to a larger new drive. (1): Boot from Copy Com. CD-ROM (2): partition and format new drive with same partition layout as old disk, only larger partitions (except the two SWAP). (3): Copy drive 0 to 1 using Copy Com. (4): Shutdown computer after completion prompt, remove cables from old hard drive, change drive jumper to MASTER, install power and data cable, reboot (5) Change BIOS from CDROM
as first boot dev, exit BIOS setup with SAVE (6): after the normal bios detection run GRUB Boot list came up, selected Debian 3.0/Testing 2.4.19-k6.
(7): The following error:
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/vmlinuz-2.4.19-k6
root=/dev/hda1 ro

error 13 Invalid or unsupported executable format

I removed the new 80g. hard drive and reinstalled the old one and rebooted to
send this querry. I also did an apt-get install grub to get the newest version off Testing in case that is the difficulty. Any ideas? I,ve never been able to make a GRUB boot floppy, I think that for some reason my boot image is not in a .bz nor .z format which makes the image too large for a floppy.
tia. matt
 
Old 05-02-2003, 04:04 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,467

Rep: Reputation: 153Reputation: 153
initialize grub

The boot loader (either lilo or grub) uses the exact physical address of the kernel when booting. When you copied everything to a different disk the kernel most likely copied to a different disk address. So you need to run the grub initialization procedure that installs a new MBR on the new disk, not because it is a new disk but because the kernel has moved.
 
Old 05-02-2003, 10:39 PM   #3
Interceptor
LQ Newbie
 
Registered: May 2003
Location: IL
Distribution: Debian 3.0/testing & RH 7.3
Posts: 16

Original Poster
Rep: Reputation: 0
Okay, if I understand you correctly:
original /dev/hda1 of 321mb versus new /dev/hda1 of 610mb has the data in different physical locations. Yes?
Now what do you recommend as to the method one may employ to run GRUB update? In as much as the kernel does not begin to boot, I assume that one needs a boot disk made from the orignal hard drive, or a copy of GRUB to install. Any ideas how best to proceed? tia, matt
 
Old 05-03-2003, 02:08 AM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
May I suggest reading this article which may help. I have used Drive image in the past to re-install Debian with no problem. What is essential is a floppy boot disk to get at the kernel.

Last edited by TigerOC; 05-03-2003 at 02:13 AM.
 
Old 05-03-2003, 02:33 PM   #5
Interceptor
LQ Newbie
 
Registered: May 2003
Location: IL
Distribution: Debian 3.0/testing & RH 7.3
Posts: 16

Original Poster
Rep: Reputation: 0
Okay, I am curious though, in as much as the GRUB menu.lst does come up and the error 13 is a GRUB specific error, does this perhaps mean that one might be able to run 'grub update' at the prompt to initiaize it? Any way it looks as though I MUST first find out why I am unable to make a GRUB boot floppy and fix that first. The last time I tried to make the floppy the files were too large for one floppy and aborted out. I know that the /boot/initrd.img-2.4.19-k6 is not compressed (.gz or .bz2), neither is vmlinuz. I'll muck about reading the doc's, while hoping for enlightened guidance from you all. tia, matt
 
Old 05-03-2003, 03:28 PM   #6
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,467

Rep: Reputation: 153Reputation: 153
Many distributions have a rescue mode on their install CD. SuSE does and I have used it sometimes instead of a boot floppy when I destroy lilo.

If your Debian or Red Hat has a rescue mode on their install CD then you could create your new disk, boot the install disk into rescue mode, chroot to your new disk (the rescue mode should do this with a menu entry), and then configure grub on your new disk.
 
Old 05-04-2003, 07:30 AM   #7
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 328

Rep: Reputation: 31
I use
http://www.phenix.bnl.gov/~purschke/RescueCD/

I routinely move systems around, actually clone many systems from a master installation. I need to run lilo (or grub) afterwards in a rescue system, obviously, as many posters noted.

M.
 
Old 05-04-2003, 12:40 PM   #8
Interceptor
LQ Newbie
 
Registered: May 2003
Location: IL
Distribution: Debian 3.0/testing & RH 7.3
Posts: 16

Original Poster
Rep: Reputation: 0
Okay! I think even I will be able to wrangle a fix from these two suggestions. (a): I check the Debian 3.0r1 disks that I recently purchased for a rescue method/image/bootable system. (b): I will definietly get the http://www.phenix.bnl.gov/~purschke/RescueCD/ and the Forensics Toolkit CD. tia, Matt
 
  


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
Easiest way to copy a boot drive to a new hard drive lsgko Linux - Software 3 05-24-2005 09:38 PM
Can't copy files larger than 2GB? Rotwang Linux - General 6 03-09-2005 12:17 AM
copy FC1 to new/larger HD? Buckyjunior Fedora 3 09-09-2004 09:55 AM
Installing Debian 3.0 from a hard drive copy? everest Debian 2 07-01-2004 06:55 PM
copy root partition to a larger one? idiosynthetic Linux - General 2 12-14-2003 05:53 PM


All times are GMT -5. The time now is 07:29 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration