Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Problem with SATA drive after re-installing GRUB

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
mamunata
Apprentice
Apprentice
Posts: 169
Joined: Tue Nov 30, 2004 6:23 pm

Problem with SATA drive after re-installing GRUB

  • Quote

Post by mamunata » Sat Mar 26, 2005 12:05 pm

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 http://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
Top
Ansur
Tux's lil' helper
Tux's lil' helper
Posts: 84
Joined: Thu Jul 08, 2004 9:34 am
Location: Ireland

  • Quote

Post by Ansur » Sat Mar 26, 2005 12:12 pm

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.
Top
mamunata
Apprentice
Apprentice
Posts: 169
Joined: Tue Nov 30, 2004 6:23 pm

  • Quote

Post by mamunata » Sat Mar 26, 2005 12:18 pm

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
Top
Ansur
Tux's lil' helper
Tux's lil' helper
Posts: 84
Joined: Thu Jul 08, 2004 9:34 am
Location: Ireland

  • Quote

Post by Ansur » Sat Mar 26, 2005 1:25 pm

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.
Top
mamunata
Apprentice
Apprentice
Posts: 169
Joined: Tue Nov 30, 2004 6:23 pm

  • Quote

Post by mamunata » Sat Mar 26, 2005 2:34 pm

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)
Top
mamunata
Apprentice
Apprentice
Posts: 169
Joined: Tue Nov 30, 2004 6:23 pm

  • Quote

Post by mamunata » Sun Mar 27, 2005 6:20 am

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
Top
Ansur
Tux's lil' helper
Tux's lil' helper
Posts: 84
Joined: Thu Jul 08, 2004 9:34 am
Location: Ireland

  • Quote

Post by Ansur » Sun Mar 27, 2005 9:17 am

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.
Top
mamunata
Apprentice
Apprentice
Posts: 169
Joined: Tue Nov 30, 2004 6:23 pm

  • Quote

Post by mamunata » Mon Mar 28, 2005 5:49 am

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!
Top
Ansur
Tux's lil' helper
Tux's lil' helper
Posts: 84
Joined: Thu Jul 08, 2004 9:34 am
Location: Ireland

  • Quote

Post by Ansur » Mon Mar 28, 2005 1:57 pm

My pleasure. I hope everything works now!
Real programmers don't document. If it was hard to write, it should be hard to understand.
Top
Post Reply

9 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic