SATA won't boot

SUSE 10.3, single SATA drive.

Grub starts then fails with "Could not find /dev/sda2. Very strange considering grub IS on /dev/sda2.

My grub/menu.lst reads…

title openSUSE 10.3 - 2.6.22.19-0.2
root (hd0,1)
kernel /boot/vmlinuz-2.6.22.19-0.2-default root=/dev/sda2 vga=0x31a resume=/dev/sda1 splash=silent showopts
initrd /boot/initrd-2.6.22.19-0.2-default

Booting from a live CD, fdisk confirms that sda2 is a valid bootable partition with a /boot/grub/menu.lst on it.

Any suggestions? Thanks.

Try to install Os 11.1.

I think the 10.x version does not support Sata hardware (natively)

Edit:
Look this archived message: http://forums.opensuse.org/archives/sls-archives/archives-suse-linux/archives-install-boot/384666-opensuse-10-3-sata-problem.html

I already tried 11.1 but was not happy with it, so I went back to 10.3. This is a new SATA drive that I cloned from the previous IDE drive. I followed the Bugzilla thread and I have an updated kernel as suggested, but still have the problem. If 10.3 does not support SATA then why does it find /boot/grub/menu.lst and start grub only to tell me that it can’t find the very same drive?

Try 11.1 with KDE 3.59, if your complaint was with KDE.

I have a similar issue, but in reverse: I have a 160GB PATA with an 80GB SATA, and 10.3 won’t read the PATA. It installed everything onto the 80GB drive. I basically have 160 GB sitting there doing nothing.

I tried 11.1 and it handled both drives just fine. I deleted it, though, because I didn’t like KDE 4. I just haven’t had time to reinstall and select KDE 3.5, but I agree with the other poster, that should solve your problem.

I just realized that my previous post, where I mentioned that I have a 160 GB drive that’s just consuming power and taking up space, needed some eyeballs.

Too late to edit the post, so I attach them hereto forthwith:

:open_mouth:

Thanks smpoole7 and RickMura. My objection to 11.1 was not just KDE4. I have two sounds cards and I could only get one of them to work. I also didn’t care for several newer versions of applications provided. I have four computers in two countries and like to keep the same OS and software on all of them for maintenance reasons. Hopefully the next SUSE version will work better for me. If not I am likely to move to Ubuntu which impressed me.

Did you just do a kernel update? Or any other upgrades or system or configuration changes? Reply back, including an fdisk -lu report and also the contents of /etc/boot/grub.conf.

About the link SATA and openSuSE 10.3 problem Opensuse 10.3 Sata Problem - openSUSE Forums, I had an opposite problem. I had difficulties with sata on suse 10.2 after I bought a new computer, so I moved on to 10.3 and everything was fine.

Your sound card problem, though, could maybe rather be an alsa than a suse version issue. I remember having such a problem with my soundcard once. Maybe you could try an older alsa version, shouldn’t be much of a dependency hassle I think.

Cheers

Kernel update - not for a while.
Upgrades - security patches. No configuration changes.

linux:/home/linux # fdisk -lu

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x000c77d7

Device Boot Start End Blocks Id System
/dev/sda1 63 4209029 2104483+ 82 Linux swap / Solaris
/dev/sda2 * 4209030 46154744 20972857+ 83 Linux
/dev/sda3 46154745 160826714 57335985 83 Linux
linux:/home/linux #

linux:/home/linux # mount /dev/sda2 /mnt
linux:/home/linux # cat /mnt/etc/boot/grub.conf
cat: /mnt/etc/boot/grub.conf: No such file or directory

However…

linux:/home/linux # cat /mnt/etc/grub.conf
setup --stage2=/boot/grub/stage2 (hd0,1) (hd0,1)
quit
linux:/home/linux #

Thanks for the help.

Sorry about the /boot/grub/grub.conf error; yes, of course it is /etc/grub.conf. What is strange about that is it indicates that grub was installed in the sda2 boot sector, and given that sda2 has its boot flag set, that usually suggests that grub is not in the MBR. Having said that, the error message you got sounds like it’s coming from stage2, which would indicates that the code in the MBR is successfully finding stage2. So, let’s revisit a few points . . .

When precisely did this mis-behavior begin? There must have been something which changed something to induce the problem (hence the previous question about changes).

The grub error message you get, this happens exactly after selecting the default boot entry on the grub menu? And that is the exact error message?

Mount /dev/sda2 as you did, and post back this:

ls -l /mnt/boot
ls -l /mnt/boot/grub

Finally, let’s look at the MBR and the partition boot sector, too:


su -
dd if=/dev/sda of=mbr bs=512 count=1
xxd mbr

dd if=/dev/sda2 of=pbr bs=512 count=1
xxd pbr

First of all, thank you very much for taking the time to help me.

History - Computer was running fine with an IDE drive. I wanted to try a SATA drive. Since the IDE drive was identified as /dev/sda (/boot on sda2) I used “dd” from a live CD to copy the entire IDE drive to the SATA drive. I then disconnected the IDE drive and tried booting from the SATA which was now /dev/sda. This failed of course since /boot/grub/menu.lst identified the old IDE drive BY DRIVE NAME AND ID. I edited the file so that the SATA drive was identified as /dev/sda2. I have done this on other grub menus. The grub default entry now reads…

title openSUSE 10.3 - 2.6.22.19-0.2
root (hd0,1)
kernel /boot/vmlinuz-2.6.22.19-0.2-default root=/dev/sda2 vga=0x31a resume=/dev/sda1 splash=silent showopts
initrd /boot/initrd-2.6.22.19-0.2-default

The boot process starts normally. The grub menu displays. The default boot section starts. Then after some USB probing etc. it reports “Could not find /dev/sda2”.

Now on to your other questions…

linux:/home/linux # mount /dev/sda2 /mnt
linux:/home/linux # ls -l /mnt/boot
total 10220
-rw-r–r-- 1 root root 843681 Jan 14 02:36 System.map-2.6.22.19-0.2-default
-rw------- 1 root root 512 Oct 17 01:26 backup_mbr
lrwxrwxrwx 1 root root 1 Oct 17 01:23 boot → .
-rw-r–r-- 1 root root 80417 Jan 14 02:40 config-2.6.22.19-0.2-default
drwxr-xr-x 2 root root 4096 Feb 3 10:07 grub
lrwxrwxrwx 1 root root 28 Jan 24 16:10 initrd → initrd-2.6.22.19-0.2-default
-rw-r–r-- 1 root root 4615761 Jan 24 16:10 initrd-2.6.22.19-0.2-default
-rw-r–r-- 1 root root 103100 Sep 21 2007 memtest.bin
-rw-r–r-- 1 root root 389120 Dec 28 18:43 message
-rw-r–r-- 1 root root 100260 Jan 14 02:41 symsets-2.6.22.19-0.2-default.tar.gz
-rw-r–r-- 1 root root 400576 Jan 14 02:41 symtypes-2.6.22.19-0.2-default.gz
-rw-r–r-- 1 root root 116297 Jan 14 02:40 symvers-2.6.22.19-0.2-default.gz
-rwxr-xr-x 1 root root 2147432 Jan 14 02:40 vmlinux-2.6.22.19-0.2-default.gz
lrwxrwxrwx 1 root root 29 Jan 24 16:09 vmlinuz → vmlinuz-2.6.22.19-0.2-default
-rw-r–r-- 1 root root 1594380 Jan 14 02:36 vmlinuz-2.6.22.19-0.2-default
linux:/home/linux #

linux:/home/linux # ls -l /mnt/boot/grub
total 220
-rw------- 1 root root 10 Oct 17 01:26 default
-rw------- 1 root root 30 Oct 17 01:26 device.map
-rw-r–r-- 1 root root 7576 Sep 21 2007 e2fs_stage1_5
-rw-r–r-- 1 root root 7424 Sep 21 2007 fat_stage1_5
-rw-r–r-- 1 root root 6664 Sep 21 2007 ffs_stage1_5
-rw-r–r-- 1 root root 6656 Sep 21 2007 iso9660_stage1_5
-rw-r–r-- 1 root root 8128 Sep 21 2007 jfs_stage1_5
-rw------- 1 root root 973 Feb 3 10:07 menu.lst
-rw------- 1 root root 3294 Jan 24 16:10 menu.lst.old
-rw------- 1 root root 973 Feb 3 15:21 menu.lst~
-rw-r–r-- 1 root root 6844 Sep 21 2007 minix_stage1_5
-rw-r–r-- 1 root root 9160 Sep 21 2007 reiserfs_stage1_5
-rw-r–r-- 1 root root 512 Sep 21 2007 stage1
-rw-r–r-- 1 root root 103162 Oct 17 01:26 stage2
-rw-r–r-- 1 root root 7004 Sep 21 2007 ufs2_stage1_5
-rw-r–r-- 1 root root 6228 Sep 21 2007 vstafs_stage1_5
-rw-r–r-- 1 root root 8820 Sep 21 2007 xfs_stage1_5
linux:/home/linux #

linux:/home/linux # dd if=/dev/sda of=mbr bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.0137609 s, 37.2 kB/s
linux:/home/linux # xxd mbr
0000000: 31c0 8ed0 bc00 7c8e c08e d8bf 1e06 be1e 1…|…
0000010: 7c50 57b9 e201 f3a4 b900 02f3 abcb 80fa |PW…
0000020: 8f7e 02b2 8052 52bb 9407 8daf 2a00 8a46 .~…RR…*…F
0000030: 0466 8b7e 0866 033e b306 84c0 740b 807e .f.~.f.>…t…~
0000040: 0080 7505 6689 3e84 0b83 c510 83c3 0980 …u.f.>…
0000050: fbb8 75da b8e1 00c1 e002 89c6 668b ac00 …u…f…
0000060: 0866 85ed 7519 b8c5 06be bb06 e8a5 0089 .f…u…
0000070: c6e8 9a00 5a31 c0cd 13cd 18fb f4eb fc66 …Z1…f
0000080: 892e b306 beab 06b4 425a 52cd 13b8 d906 …BZR…
0000090: 72d7 a000 7c84 c074 03a1 fe7d 3d55 aab8 r…|…t…}=U…
00000a0: e906 75c5 6689 ee5a e955 7510 0001 0000 …u.f…Z.Uu…
00000b0: 7c00 0000 0000 0000 0000 0045 7272 6f72 |…Error
00000c0: 2000 0d0a 004e 6f20 6163 7469 7665 2070 …No active p
00000d0: 6172 7469 7469 6f6e 0044 6973 6b20 7265 artition.Disk re
00000e0: 6164 2065 7272 6f72 004e 6f20 6f70 6572 ad error.No oper
00000f0: 6174 696e 6720 7379 7374 656d 0049 6e76 ating system.Inv
0000100: 616c 6964 2043 4853 2072 6561 6400 e803 alid CHS read…
0000110: 00be c206 60ac b40e bb01 00cd 10ac 84c0 …`…
0000120: 75f4 61c3 0000 0000 0000 0000 0000 0000 u.a…
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 …
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 …
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 …
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 …
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 …
0000180: 0000 0000 0000 0000 0000 0000 0000 0000 …
0000190: 1c80 b600 0000 0000 0000 0000 0000 0000 …
00001a0: 0000 0000 0000 0000 0000 0000 0000 0000 …
00001b0: 0000 0000 0000 0000 d777 0c00 e1b5 0001 …w…
00001c0: 0100 82fe 7f05 3f00 0000 4739 4000 8000 …?..G9@…
00001d0: 4106 83fe ffff 8639 4000 730a 8002 00fe A…9@.s…
00001e0: ffff 83fe ffff f943 c002 62c1 d506 0000 …C…b…
00001f0: 0000 0000 0000 0000 0000 0000 0000 55aa …U.
linux:/home/linux #

linux:/home/linux # dd if=/dev/sda2 of=pbr bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.000144909 s, 3.5 MB/s
linux:/home/linux # xxd pbr
0000000: eb48 9000 0000 0000 0000 0000 0000 0000 .H…
0000010: 0000 0000 0000 0000 0000 0000 0000 0000 …
0000020: 0000 0000 0000 0000 0000 0000 0000 0000 …
0000030: 0000 0000 0000 0000 0000 0000 0000 0302 …
0000040: ff00 0080 3681 a501 0008 fa90 90f6 c280 …6…
0000050: 7502 b280 ea59 7c00 0031 c08e d88e d0bc u…Y|…1…
0000060: 0020 fba0 407c 3cff 7402 88c2 52be 817d . …@|<.t…R…}
0000070: e836 01f6 c280 7456 b441 bbaa 55cd 135a .6…tV.A…U…Z
0000080: 5272 4b81 fb55 aa75 45a0 417c 84c0 783e RrK…U.uE.A|…x>
0000090: 7505 83e1 0174 3766 8b4c 10be 057c c644 u…t7f.L…|.D
00000a0: ff01 668b 1e44 7cc7 0410 00c7 4402 0100 …f…D|…D…
00000b0: 6689 5c08 c744 0600 7066 31c0 8944 0466 f...D…pf1…D.f
00000c0: 8944 0cb4 42cd 1372 05bb 0070 eb7d b408 .D…B…r…p.}…
00000d0: cd13 730a f6c2 800f 84e8 00e9 8d00 be05 …s…
00000e0: 7cc6 44ff 0066 31c0 88f0 4066 8944 0431 |.D…f1…@f.D.1
00000f0: d288 cac1 e202 88e8 88f4 4089 4408 31c0 …@.D.1.
0000100: 88d0 c0e8 0266 8904 66a1 447c 6631 d266 …f…f.D|f1.f
0000110: f734 8854 0a66 31d2 66f7 7404 8854 0b89 .4.T.f1.f.t…T…
0000120: 440c 3b44 087d 3c8a 540d c0e2 068a 4c0a D.;D.}<.T…L.
0000130: fec1 08d1 8a6c 0c5a 8a74 0bbb 0070 8ec3 …l.Z.t…p…
0000140: 31db b801 02cd 1372 2a8c c38e 0648 7c60 1…r*…H|`
0000150: 1eb9 0001 8edb 31f6 31ff fcf3 a51f 61ff …1.1…a.
0000160: 2642 7cbe 877d e840 00eb 0ebe 8c7d e838 &B|…}.@…}.8
0000170: 00eb 06be 967d e830 00be 9b7d e82a 00eb …}.0…}.*…
0000180: fe47 5255 4220 0047 656f 6d00 4861 7264 .GRUB .Geom.Hard
0000190: 2044 6973 6b00 5265 6164 0020 4572 726f Disk.Read. Erro
00001a0: 7200 bb01 00b4 0ecd 10ac 3c00 75f4 c300 r…<.u…
00001b0: 0000 0000 0000 0000 0000 0000 0000 0000 …
00001c0: 0000 0000 0000 0000 0000 0000 0000 0000 …
00001d0: 0000 0000 0000 0000 0000 0000 0000 0000 …
00001e0: 0000 0000 0000 0000 0000 0000 0000 0000 …
00001f0: 0000 0000 0000 0000 0000 0000 0000 55aa …U.
linux:/home/linux #

And, yes I normally install grub on the boot partition not in the MBR.

Thanks again.