LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GRUB configuration for SATA (https://www.linuxquestions.org/questions/linux-newbie-8/grub-configuration-for-sata-239453/)

lajner 10-06-2004 12:32 PM

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!

Bruce Hill 10-06-2004 12:47 PM

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

lajner 10-06-2004 12:54 PM

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.

Bruce Hill 10-06-2004 01:15 PM

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.

lajner 10-06-2004 01:38 PM

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.

Bruce Hill 10-06-2004 02:11 PM

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...

lajner 10-06-2004 04:04 PM

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...

Bruce Hill 10-06-2004 08:16 PM

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?

Bruce Hill 10-06-2004 08:21 PM

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.

lajner 10-07-2004 09:31 AM

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

lajner 10-09-2004 03:42 PM

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


All times are GMT -5. The time now is 03:16 PM.