LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 12-13-2004, 03:36 AM   #1
torham
LQ Newbie
 
Registered: Dec 2004
Distribution: Debian unstable
Posts: 6

Rep: Reputation: 0
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
 
Old 12-13-2004, 06:31 AM   #2
Onthefly
Member
 
Registered: Aug 2003
Location: Germany
Distribution: Mandrake 9.1
Posts: 36

Rep: Reputation: 15
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
 
Old 12-13-2004, 08:54 AM   #3
torham
LQ Newbie
 
Registered: Dec 2004
Distribution: Debian unstable
Posts: 6

Original Poster
Rep: Reputation: 0
kernels are in a /boot partition (hda1)
 
Old 12-13-2004, 09:42 AM   #4
Onthefly
Member
 
Registered: Aug 2003
Location: Germany
Distribution: Mandrake 9.1
Posts: 36

Rep: Reputation: 15
okay, another stupid idea, may be the permissions have changed during copy. though they have the correct permission rights?
Lars
 
Old 12-13-2004, 10:30 PM   #5
torham
LQ Newbie
 
Registered: Dec 2004
Distribution: Debian unstable
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
Old 12-13-2004, 11:25 PM   #6
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
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 11:26 PM.
 
Old 12-13-2004, 11:29 PM   #7
torham
LQ Newbie
 
Registered: Dec 2004
Distribution: Debian unstable
Posts: 6

Original Poster
Rep: Reputation: 0
yep The drive is the primary master.
 
  


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
GRUB Read Error GoBoy Linux - Software 4 04-10-2005 04:31 AM
Disk read error joeslomp Slackware 3 02-02-2005 03:15 PM
GRUB Error 25: Disk Read Error haertig Linux - Software 6 01-08-2005 02:22 PM
Disk read error? hbbtstar Linux - Newbie 0 10-18-2004 01:12 PM
Grub Read Error cgchris99 Linux - General 1 05-08-2003 09:52 PM


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