View previous topic :: View next topic |
Author |
Message |
mamunata Apprentice
Joined: 30 Nov 2004 Posts: 169
|
Posted: Sat Mar 26, 2005 12:05 pm Post subject: Problem with SATA drive after re-installing GRUB |
|
|
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 |
|
|
Ansur Tux's lil' helper
Joined: 08 Jul 2004 Posts: 84 Location: Ireland
|
Posted: Sat Mar 26, 2005 12:12 pm Post subject: |
|
|
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 |
|
|
mamunata Apprentice
Joined: 30 Nov 2004 Posts: 169
|
Posted: Sat Mar 26, 2005 12:18 pm Post subject: |
|
|
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 |
|
|
Ansur Tux's lil' helper
Joined: 08 Jul 2004 Posts: 84 Location: Ireland
|
Posted: Sat Mar 26, 2005 1:25 pm Post subject: |
|
|
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 |
|
|
mamunata Apprentice
Joined: 30 Nov 2004 Posts: 169
|
Posted: Sat Mar 26, 2005 2:34 pm Post subject: |
|
|
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 |
|
|
mamunata Apprentice
Joined: 30 Nov 2004 Posts: 169
|
Posted: Sun Mar 27, 2005 6:20 am Post subject: |
|
|
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 |
|
|
Ansur Tux's lil' helper
Joined: 08 Jul 2004 Posts: 84 Location: Ireland
|
Posted: Sun Mar 27, 2005 9:17 am Post subject: |
|
|
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 |
|
|
mamunata Apprentice
Joined: 30 Nov 2004 Posts: 169
|
Posted: Mon Mar 28, 2005 5:49 am Post subject: |
|
|
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 |
|
|
Ansur Tux's lil' helper
Joined: 08 Jul 2004 Posts: 84 Location: Ireland
|
Posted: Mon Mar 28, 2005 1:57 pm Post subject: |
|
|
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 |
|
|
|