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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
05-02-2003, 02:34 PM
|
#1
|
LQ Newbie
Registered: May 2003
Location: IL
Distribution: Debian 3.0/testing & RH 7.3
Posts: 16
Rep:
|
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
|
|
|
05-02-2003, 04:04 PM
|
#2
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,381
|
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.
|
|
|
05-02-2003, 10:39 PM
|
#3
|
LQ Newbie
Registered: May 2003
Location: IL
Distribution: Debian 3.0/testing & RH 7.3
Posts: 16
Original Poster
Rep:
|
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
|
|
|
05-03-2003, 02:08 AM
|
#4
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
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.
|
|
|
05-03-2003, 02:33 PM
|
#5
|
LQ Newbie
Registered: May 2003
Location: IL
Distribution: Debian 3.0/testing & RH 7.3
Posts: 16
Original Poster
Rep:
|
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
|
|
|
05-03-2003, 03:28 PM
|
#6
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,381
|
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.
|
|
|
05-04-2003, 07:30 AM
|
#7
|
Member
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333
Rep:
|
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.
|
|
|
05-04-2003, 12:40 PM
|
#8
|
LQ Newbie
Registered: May 2003
Location: IL
Distribution: Debian 3.0/testing & RH 7.3
Posts: 16
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 12:01 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|