Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-13-2004, 02:36 AM
|
#1
|
|
LQ Newbie
Registered: Dec 2004
Distribution: Debian unstable
Posts: 6
Rep:
|
Grub - Error 25: Disk read error
I am attempting to upgrade my harddrive by following the Hard Disk Upgrade Mini How-To
I added the new drive, partitioned, formated and copied all the files using the third method, my drive layout is a little different but this is the basic idea:
cp -a /bin /boot /dev /etc /home /lib /lost+found /mnt /root /sbin /tmp /usr /var /new-disk
cp -dp /* /.* /new-disk
To install Grub I started the grub shell and did the following, as the new drive was located as /dev/hdd:
root (hd2,0)
setup (hd2)
quit
So now when I move this drive to Primary Master to replace the old drive I get my bootmenu loaded okay but when I select a kernel to boot the drive reads for a minute or two and then I get "Error 25: Disk read error"
The layout of my new drive is as follows
partition 1 is /boot
partition 2 is /var
partition 3 is *swap*
partition 4 is /
menu.lst looks like this:
title Debian GNU/Linux, kernel 2.6.8-1-k7-smp
root (hd0,0)
kernel /vmlinuz-2.6.8-1-k7-smp root=/dev/hda4 ro
initrd /initrd.img-2.6.8-1-k7-smp
savedefault
boot
|
|
|
|
12-13-2004, 05:31 AM
|
#2
|
|
Member
Registered: Aug 2003
Location: Germany
Distribution: Mandrake 9.1
Posts: 36
Rep:
|
okay, stupid question. Are the kernels there where they listed in the menu? May be he just cant find them.
Else no clue, as the grub starts normal.
Lars
|
|
|
|
12-13-2004, 07:54 AM
|
#3
|
|
LQ Newbie
Registered: Dec 2004
Distribution: Debian unstable
Posts: 6
Original Poster
Rep:
|
kernels are in a /boot partition (hda1)
|
|
|
|
12-13-2004, 08:42 AM
|
#4
|
|
Member
Registered: Aug 2003
Location: Germany
Distribution: Mandrake 9.1
Posts: 36
Rep:
|
okay, another stupid idea, may be the permissions have changed during copy. though they have the correct permission rights?
Lars
|
|
|
|
12-13-2004, 09:30 PM
|
#5
|
|
LQ Newbie
Registered: Dec 2004
Distribution: Debian unstable
Posts: 6
Original Poster
Rep:
|
The file permissions are the same.
I also tried booting to Knoppix today with the new drive as hda and installing grub from there using:
root (hd0,0)
setup (hd0)
it still gives the same error, also if I edit the grub menu.lst file to point in the wrong place for the kernel I get a different error that the file cannot be found.
|
|
|
|
12-13-2004, 10:25 PM
|
#6
|
|
Member
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288
Rep:
|
Another silly question, you changed the jumper on the new hd to master, right?
Also, for menu.lst:
default=0
timeout=20
title Debian GNU/Linux, kernel 2.6.8-1-k7-smp
#root (hd0,0)
kernel /vmlinuz-2.6.8-1-k7-smp root=/dev/hda4 ro
initrd /initrd.img-2.6.8-1-k7-smp
#savedefault
#boot
The root(hd0,0) does nothing in menu.lst, only works on the grub prompt line.
Don't know what savedefault and boot do, is that some deb thing?
Kevin
Last edited by kevinalm; 12-13-2004 at 10:26 PM.
|
|
|
|
12-13-2004, 10:29 PM
|
#7
|
|
LQ Newbie
Registered: Dec 2004
Distribution: Debian unstable
Posts: 6
Original Poster
Rep:
|
yep  The drive is the primary master.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:04 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
|
|