LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-06-2004, 12:32 PM   #1
lajner
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Arch
Posts: 28

Rep: Reputation: 16
GRUB configuration for SATA


Hello,
I'm Linux newbie, so this question is probably stupid, but I can't figure out, where is the problem. I've got SATA disk from Seagate and motherboard ASUS A7V600 (maybe this is irrelevant). I installed Debian system on that SATA.
I created 3 partitions: 1) FAT32 - Windows 2) FAT32 for data and 3) Reiserfs with Linux. Then I wanted to recompile kernel (version 2.6.8.1) and the problems have started.
With this GRUB's config:
Code:
#there I want to boot
title           Debian, kernel 2.6.8.1
root            (hd0,5)
kernel          /boot/bzImage-2.6.8.1 root=/dev/hde6 ro
savedefault
boot
#this is default kernel, there I can boot
title           Debian GNU/Linux, kernel 2.6.6-1-386
root            (hd0,5)
kernel          /boot/vmlinuz-2.6.6-1-386 root=/dev/hde6 ro
initrd          /boot/initrd.img-2.6.6-1-386
savedefault
boot
It was kernel panic: Please append acorrect "root=" boot option Kernel panic:VFS:unable to mount root fs on hde6.

So I tried this:
Code:
title           Debian, kernel 2.6.8.1
root            (hd0,5)
kernel          /boot/bzImage-2.6.8.1 root=/dev/sda6 ro
savedefault
boot
And it wrote me only, that VFS:unable to mount root fs on hde6. (Without message about "root=" option).
I tried like root=/dev/sda6 another devices, like: sda, sdb, sda2, sda3,.., but it doesn't work.
So, can somebody advise me, how to configure GRUB?
Thanks!

Last edited by lajner; 10-06-2004 at 12:37 PM.
 
Old 10-06-2004, 12:47 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
Did you compile reiserfs built-in to the kernel,
or as a module?

Did you change your /etc/fstab file to reflect the
/dev/sda devices rather than /dev/hde?

I use LILO rather than GRUB, so I might not be
much help with GRUB, but I have the same mobo
and hard drive, and I know what works with 2.6.7

Last edited by Bruce Hill; 10-06-2004 at 12:48 PM.
 
Old 10-06-2004, 12:54 PM   #3
lajner
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Arch
Posts: 28

Original Poster
Rep: Reputation: 16
Quote:
Originally posted by Chinaman
Did you compile reiserfs built-in to the kernel,
or as a module?

Did you change your /etc/fstab file to reflect the
/dev/sda devices rather than /dev/hde?

I use LILO rather than GRUB, so I might not be
much help with GRUB, but I have the same mobo
and hard drive, and I know what works with 2.6.7
Hi,
thank you for reply. Yes, I have FS built in kernel. My /etc/fstab looks like:
Code:
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hde6       /               reiserfs defaults        0       1
/dev/hdd        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/sda6       /               reiserfs defaults       0       1
/dev/sda0       /               reiserfs defaults       0       1
Last two lines are from me.
 
Old 10-06-2004, 01:15 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
First try to comment out (put a # in front of) the line that reads
/dev/hde6 / reiserfs defaults 0 1
because it's going to read those in order, and you have / mounting
on three devices now.
Second, there is no 0 partition in a device listing such as /dev/sda0
so you can probably take that line out.

Could you also post the output of "mount" as a normal user, and
"/sbin/fdisk -l" (lower case L) as root user?

Once you make those changes to /etc/fstab it might boot, but there
may be other partitions that need a little help, also.
 
Old 10-06-2004, 01:38 PM   #5
lajner
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Arch
Posts: 28

Original Poster
Rep: Reputation: 16
Quote:
Originally posted by Chinaman
First try to comment out (put a # in front of) the line that reads
/dev/hde6 / reiserfs defaults 0 1
because it's going to read those in order, and you have / mounting
on three devices now.
Second, there is no 0 partition in a device listing such as /dev/sda0
so you can probably take that line out.

Could you also post the output of "mount" as a normal user, and
"/sbin/fdisk -l" (lower case L) as root user?

Once you make those changes to /etc/fstab it might boot, but there
may be other partitions that need a little help, also.
Ou, thank you very much! Really, I edit /etc/fstab and boot in 2.6.8.1 kernel! You're really boss
But, here are outputs:
Code:
$ mount
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)


# /sbin/fdisk -l

Disk /dev/hde: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hde1   *           1        1275    10241406    c  W95 FAT32 (LBA)
/dev/hde2            1276        9732    67930852+   f  W95 Ext'd (LBA)
/dev/hde5            1276        8457    57689383+   e  W95 FAT16 (LBA)
/dev/hde6   *        8458        9732    10241406   83  Linux

Disk /dev/hdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1        3649    29310561    c  W95 FAT32 (LBA)
/dev/hdb2            3650        4865     9767520    f  W95 Ext'd (LBA)
/dev/hdb5            3650        4865     9767488+   b  W95 FAT32
... you can see I added another HDD.
 
Old 10-06-2004, 02:11 PM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
Welcome to LQ!

Sorry I forgot that earlier.


Now I'm totally confused, or as Tink said "up too early."

Well, I gotta ask you. Did you post that "mount" output after you
fixed /etc/fstab and 2.6.8.1 booted? Because unless I'm mistaken,
it's physically impossible for a system to run without having a /
partition mounted. Okay, I'll live and learn...

Also, we changed your / device from /dev/hde6 to /dev/sda6 but
now your "fdsik -l" says the sata drive is /dev/hde rather than
/dev/sda - oh, help me, I'm confused.

What have you got in your grub .conf and /etc/fstab now?

And this other drive, does it have an operating system that you want
to boot, or just data? Looks like /dev/hdb1 is a Windoze OS...
 
Old 10-06-2004, 04:04 PM   #7
lajner
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Arch
Posts: 28

Original Poster
Rep: Reputation: 16
I'm sorry. So what happened:
I booted in new kernel and was very happy But mouse and networkcard didn't function in new kernel, so I rebooted back in old kernel and wrote command, which you send me (my english is bad, i know). I'll have to recompile modules in 2.6.8.1 kernel and play with it. I've .config file from my friend and he has got different hw.
The second disk is only for data. Why do you want know informations about my disks? What else could happen?
Thanks very much again. I hope I can get everything else...
 
Old 10-06-2004, 08:16 PM   #8
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
Quote:
Originally posted by lajner
I'm sorry. So what happened:
I booted in new kernel and was very happy But mouse and networkcard didn't function in new kernel, so I rebooted back in old kernel and wrote command, which you send me (my english is bad, i know). I'll have to recompile modules in 2.6.8.1 kernel and play with it. I've .config file from my friend and he has got different hw.
The second disk is only for data. Why do you want know informations about my disks? What else could happen?
Thanks very much again. I hope I can get everything else...
Mei wenti!

Dude, where are you living? I live in China and I'm from America, so
I know about language problems.

I want to know about your disk information so I can write a proper
/etc/fstab file for you. If you don't want me to do that, or don't need
that help, please tell me. If you do want it, then tell me that.

I have a 2.6.7 kernel with an Asus A7V600-X motherboard with a
Seagate 80GB 7200.7 SATA drive - same hard drive as yours, they
only make one sata drive that size. Would you like to see my kernel
config file, for what you need for that hard drive?
 
Old 10-06-2004, 08:21 PM   #9
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
Hey, lajner.

If you will post the output of, as root:

"/sbin/lspci" and "/sbin/lsusb" we can also
tell you which modules you need for mouse
and nic.
 
Old 10-07-2004, 09:31 AM   #10
lajner
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Arch
Posts: 28

Original Poster
Rep: Reputation: 16
Hi,
thank you very very much for all help. So can you send me your config to my mail (lajner@seznam.cz)?
But I'll try to do modules myself and if will be some problem, I'll ask.
Bye
 
Old 10-09-2004, 03:42 PM   #11
lajner
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Arch
Posts: 28

Original Poster
Rep: Reputation: 16
Hi again,
everything is running quite well. But now I'm little disappointed, because I install last driver (modul) for my graphic card ATI Radeon 9200 and this driver isn't as good as I expect. When I changing terminals and the screen must be completely redraw it isn't fast like vesa. It's little bit crazy I think.
But this is only problem, so I'm happy
Bye
 
  


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
Yet Another SATA Grub issue TowedJumper SUSE / openSUSE 5 11-11-2005 01:26 PM
GRUB problem with SATA adamski2000 Linux - Software 2 07-06-2005 04:52 AM
FC2 on SATA no GRUB! obiwanshinobi Fedora - Installation 6 07-30-2004 09:59 AM
grub tutorials and grub with sata dARkHunTEr Linux - Software 0 07-16-2004 12:07 PM
GRUB splashimage configuration / update GRUB rudL Linux - Software 1 05-10-2004 07:16 AM


All times are GMT -5. The time now is 08:39 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration