Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with SATA drive after re-installing GRUB
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mamunata
Apprentice
Apprentice


Joined: 30 Nov 2004
Posts: 169

PostPosted: Sat Mar 26, 2005 12:05 pm    Post subject: Problem with SATA drive after re-installing GRUB Reply with quote

Hi guys,

i have problem with boot of my system after reinstallin grub. I have an Athlon64 based box with SATA hdd and a few weeks ago i decided to try WinXP Pro 64bits. After installing new Windows i losed my grub in mbr. The I booted with Gentoo LiveCD and did re-install of grub and everything seemed OK but now when I try to boot my Gentoo I recieve errors that there is no /dev/sda2.:

>ext2_fsck_if_mount: no such file or directory while determining whether /dev/sda2 is mounted

and prompt for giving root pass or reboot.

I looked in https://forums.gentoo.org for same problem and tried to pre-compile the kernel but the problem is still here.

This is the part of dmesg output:

> scsi0: sata_nv
> ata2: no device found (phy stat 00000000)
>scsi1: sata_nv
>Vendor: ATA Model:ST380013AS rev: 3.18
>Type: Direct-Access ANSI SCSI revision: 05
>SCSI device sda: 156301488 512-byt hdwr sectors (80026MB)
>SCSI device sda: drive cache: write back
>/dev/scsi/host0/bus0/target0/lun0: p1 p2 p3 p4
>Attched scsi disk sda at scsi0, channel0, id0, lun0, type0


I don't think that it's a kernel problem because before installing a new Windows my Gentoo was perfect but........

Thanks in advance
Back to top
View user's profile Send private message
Ansur
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jul 2004
Posts: 84
Location: Ireland

PostPosted: Sat Mar 26, 2005 12:12 pm    Post subject: Reply with quote

Could you give the layout of your disk (partitions etc), as well as your grub config file?
_________________
Real programmers don't document. If it was hard to write, it should be hard to understand.
Back to top
View user's profile Send private message
mamunata
Apprentice
Apprentice


Joined: 30 Nov 2004
Posts: 169

PostPosted: Sat Mar 26, 2005 12:18 pm    Post subject: Reply with quote

Ansur wrote:
Could you give the layout of your disk (partitions etc), as well as your grub config file?


my hdd:
1-st partition is 7.9GB ntfs for win
2-nd partition is 11.5 ext3 GB for Gentoo
3-rd partition is 600MB swap
4-th partiton is 56.5GB ntfs for data

this is my grub.conf:

timeout 5

default 2

fallback 0

# For booting GNU/Linux
title=Gentoo Linux 2.6.9
#splashimage=(hd0,1)/boot/grub/splash.xpm.gz
root (hd0,1)
kernel /boot/kernel-2.6.9 root=/dev/sda2

title=Gentoo Linux 2.6.10
#splashimage=(hd0,1)/boot/grub/splash.xpm.gz
root (hd0,1)
kernel /boot/kernel-2.6.10 root=/dev/sda2
#chainloader +1

title=Windows XP
rootnoverify (hd0,0)
chainloader +1
Back to top
View user's profile Send private message
Ansur
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jul 2004
Posts: 84
Location: Ireland

PostPosted: Sat Mar 26, 2005 1:25 pm    Post subject: Reply with quote

On one of my computers, the liveCD recognized my sATA disk as /dev/sda1. However, when finishing the installation and wanting to boot into my new system, I got a similar error. Looking at the grub console I found out sda1 had become -strangely enough- hde4!. Maybe you want to explore that a bit?
_________________
Real programmers don't document. If it was hard to write, it should be hard to understand.
Back to top
View user's profile Send private message
mamunata
Apprentice
Apprentice


Joined: 30 Nov 2004
Posts: 169

PostPosted: Sat Mar 26, 2005 2:34 pm    Post subject: Reply with quote

Ansur wrote:
On one of my computers, the liveCD recognized my sATA disk as /dev/sda1. However, when finishing the installation and wanting to boot into my new system, I got a similar error. Looking at the grub console I found out sda1 had become -strangely enough- hde4!. Maybe you want to explore that a bit?


When i first installed Gentoo from LiveCD (2004.2 i think) it detected my SATA like /dev/hde but after modprobe-ing modules: "forcedeth, sata_nv and sata_sil" my hdd was recognized like /dev/sda and I think that's right way of detecting. And then I installed my system on /dev/sda2.

Now with "root=/dev/hde1" I can't boot again (I don't think that my kernel supports /dev/hde. My SATA is through SCSI bus)
Back to top
View user's profile Send private message
mamunata
Apprentice
Apprentice


Joined: 30 Nov 2004
Posts: 169

PostPosted: Sun Mar 27, 2005 6:20 am    Post subject: Reply with quote

Just a suggestion:

Is it possible the problem to be from "stage" files in grub directory. I don't know what exactly these files are for, but I installed my gentoo from 2004.2 LiveCD but now re-installed grub from 2004.3 CD.

Help pls:D
Back to top
View user's profile Send private message
Ansur
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jul 2004
Posts: 84
Location: Ireland

PostPosted: Sun Mar 27, 2005 9:17 am    Post subject: Reply with quote

That shouldn't be much of a problem, you'll probbly just have a more recent version of grub.

When grub loads and you go into config mode, which drives does it detect?
_________________
Real programmers don't document. If it was hard to write, it should be hard to understand.
Back to top
View user's profile Send private message
mamunata
Apprentice
Apprentice


Joined: 30 Nov 2004
Posts: 169

PostPosted: Mon Mar 28, 2005 5:49 am    Post subject: Reply with quote

The problem solved with new download of source and pre-compilation of the kernel. Maybe there was an error in the kernel source because of the many "make mrproper" I've done :(

Thanks to Ansur for the help!
Back to top
View user's profile Send private message
Ansur
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jul 2004
Posts: 84
Location: Ireland

PostPosted: Mon Mar 28, 2005 1:57 pm    Post subject: Reply with quote

My pleasure. I hope everything works now!
_________________
Real programmers don't document. If it was hard to write, it should be hard to understand.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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