Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem booting Gentoo from sdb
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
alocacoc
n00b
n00b


Joined: 25 Aug 2012
Posts: 15

PostPosted: Mon Aug 27, 2012 10:11 am    Post subject: problem booting Gentoo from sdb Reply with quote

I tried to install Grub
Error 25 while booting.

Tried LILO and it didn't work also. The error which lilo gave out meant that LILO cannot find its configuration file. Lilo also told me something is wrong with the partition table which it tried to fix, and after fixing it didn't give out any error message about this anymore.

Seems something is wrong with my hdd where Gentoo is on.

sda = hdd one, it holds Windows
sdb = hdd two, it holds Gentoo, sdb1=boot

So grub or lilo cannot start even into the selection screen

Booted a live cd and installed grub4dos, which worked, at least grub can now find its config on sda

Booting windows from there works well, on sda

Booting gentoo from sdb doesn't work, starting gives this error:

filesystem type :, ext2fs, partition type 0x83
kernel /boot/my kernel name root=/dev/sdb3
Error 25: disk read error

It can see its ext2fs, so it has to be able to access the disk I guess, how else can it know this.

I'm not sure how to fix this. The error is the same like grub told me, Error 25, after all grub4dos is based on grub source.

Anybody any clue how I can boot gentoo from that hdd?

Thank you.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Mon Aug 27, 2012 3:06 pm    Post subject: Reply with quote

Quote:
25 : Disk read error
This error is returned if there is a disk read error when trying to probe or read data from a particular disk.
Boot cd.
Code:
fdisk -l
Post result here.
Code:
fsck /dev/sdb1
Post result here.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
alocacoc
n00b
n00b


Joined: 25 Aug 2012
Posts: 15

PostPosted: Tue Aug 28, 2012 9:18 am    Post subject: Reply with quote

fdisk -l

...
Disk /dev/sdb: 60,0 GB, 163928604672 bytes
224 heads, 19 sectors/track, 75228 cylinders
Units = cylinders of 4256 * 512 = 2179072 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 5 31250 83 Linux
Partition does not end on cylinder boundary
/dev/sdb2 5 70 524288 83 Linux
Partition does not end on cylinder boundary
/dev/sdb3 70 7298 58057728 83 Linux
...



fsck /dev/sdb1
e2fsck 1.41.14
/dev/sdb1: clean, 11/7840 files, 1375/31248 blocks
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Tue Aug 28, 2012 3:06 pm    Post subject: Reply with quote

does windows still boot?

boot cd and enter the chroot, nominally:(nominal may be wrong for you, nominal /dev/sdb2 would be "82 Linux swap / Solaris" not "83 Linux")
Code:
mount /dev/sdb3 /mnt/gentoo
mount /dev/sdb1 /mnt/gentoo/boot
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
then run
Code:
grub
find /boot/grub/stage1
this should return in the form (hdx,y) use the numbers equivalent to x and y in the following
Code:
root (hdx,y)
setup (hdx)
quit

edit grub.conf to match root (hdx,y)
this should put grub on the MBR of sdb and tell grub that grub files are on sdb1.
Code:
exit
reboot
on the reboot enter bios and select the linux drive to be the primary boot drive.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
alocacoc
n00b
n00b


Joined: 25 Aug 2012
Posts: 15

PostPosted: Thu Aug 30, 2012 11:45 am    Post subject: Reply with quote

Thank you for your answer.

the harddisk seems to be faulty. I tried other distributions and nothing can boot up from this harddisk. It can hold files though once its mounted into a running system, this is why I was able to install Gentoo on it and it failed when loading from grub and lilo. I tried your installation process, but it won't work. It will set it up correctly, but it cannot boot up caused of the faulty disk.

I am taking a 120GB harddisk from my old computer in my hometown this weekend. I will report back once I tested installing on it, but it will take a while.

Thank you for your help.
Back to top
View user's profile Send private message
alocacoc
n00b
n00b


Joined: 25 Aug 2012
Posts: 15

PostPosted: Mon Sep 24, 2012 12:11 pm    Post subject: Reply with quote

Confirmed that it was the 80GB harddisks fault. With my 120GB harddisk everything worked out fine.

Thank you for your help.
Back to top
View user's profile Send private message
WorBlux
n00b
n00b


Joined: 07 May 2011
Posts: 39

PostPosted: Mon Sep 24, 2012 12:23 pm    Post subject: Reply with quote

alocacoc wrote:
Confirmed that it was the 80GB harddisks fault. With my 120GB harddisk everything worked out fine.

Thank you for your help.


Sometimes the bios probes a disk before it is up and ready. Most bioses allow you to specify a delay before probing for disks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum