View previous topic :: View next topic |
Author |
Message |
snakeo2 Veteran
Joined: 01 Jan 2006 Posts: 1237
|
Posted: Sun May 20, 2007 5:32 pm Post subject: unable to boot /boot/sda3 not found |
|
|
I've had a working gentoo box for over a year now. I recently purchased a AMD Athlon dual core 4200 which I plan to install one of these days. a few days ago , I did genkernel --menuconfig all to make sure I had SMT ( not sure if this is the accronym ) for dual core support compiled in my kernel. I guess I compiled my kernel with SMT and didnt have to do anything, so I just exit without saving changes or at least I thought I did. This morning, I tried to boot into gentoo only to be greeted by the " unable to boot /boot/sda3 not found , please specify " . My guess is that probably there is something wrong with my grub.conf, my sata drivers are not being loaded. Im actually using my 2006 gentoo live cd right now and will be trying to chroot into my system and try to see if I can spot any changes that shouldnt be there. If you guys have any suggestion, please feel free to give me some suggestion. Also, can someone tell me what cflags I should use for my new CPU. _________________ Gigabyte MA790X-UD4P Motherboard
AMD Phenom II X4 940 Black Edition
MSI ATI R4650 PCIe2
250GB SATA Drive
4GB Corsair DDR2 |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sun May 20, 2007 5:40 pm Post subject: |
|
|
Well, you could try giving us some information. Most of us are not clairvoyant and thus lack the means to see your boot error and the contents of your grub.conf file. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
snakeo2 Veteran
Joined: 01 Jan 2006 Posts: 1237
|
Posted: Sun May 20, 2007 5:48 pm Post subject: |
|
|
I was trying to get some relevant info prior to posting, but I do appreciate sarcasm. Anyhow, I tried chrooting and is not working. Here is the error I'm getting.
livecd ~ # mount -t proc none /mnt/gentoo/proc
mount: mount point /mnt/gentoo/proc does not exist
livecd ~ # chroot /mnt/gentoo /bin/bash
chroot: cannot run command `/bin/bash': No such file or directory _________________ Gigabyte MA790X-UD4P Motherboard
AMD Phenom II X4 940 Black Edition
MSI ATI R4650 PCIe2
250GB SATA Drive
4GB Corsair DDR2 |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sun May 20, 2007 6:32 pm Post subject: |
|
|
You need to mount the partition where you installed gentoo on first. After that you can mount the proc filesystem and chroot in. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
snakeo2 Veteran
Joined: 01 Jan 2006 Posts: 1237
|
Posted: Sun May 20, 2007 7:42 pm Post subject: |
|
|
thanks for the advise. I was using the wrong live CD, it was for an x86 and I have an x86_64 and was getting all sorts of errors. I went out and got the 2006 x86_64 minimum install cd and was able to mount my /root & boot partitions. I recompiled my kernel using
genkernel --menuconfig all and still getting the same error. here is the exact error i get when i reboot
init:228: mdev : not found
- block device /dev/sda3 - is not a valid root device
- root block device is unspecified or nto detected. is there a live cd for x86_64?? I couldnt find one. I would prefer to use that cd because I can chroot into my system and use the internet at the same time and copy paste my grub.conf ; /etc/fstab ;etc without typos, not to mention that booting between windows and gentoo to post answers. If you know if there is a livecd for x86_64, please let me know. thanks. _________________ Gigabyte MA790X-UD4P Motherboard
AMD Phenom II X4 940 Black Edition
MSI ATI R4650 PCIe2
250GB SATA Drive
4GB Corsair DDR2 |
|
Back to top |
|
|
snakeo2 Veteran
Joined: 01 Jan 2006 Posts: 1237
|
Posted: Sun May 20, 2007 10:09 pm Post subject: |
|
|
Like I said, I recompiled and have support for sata compiled as module. Here is grub & fstab info.
/boot/grub/grub.conf
default 0
timeout 30
splashimage=(hd1,0)/boot/grub/splash.xpm.gz
title=Gentoo Server
root (hd1,0)
kernel /kernel-genkernel-x86_64-2.6.17-gentoo-r4 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 udev video=vesafg:mtrr:3,y wrap
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
/etc/fstab
/dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda3 / ext3 noatime 0 1
/dev/sda2 none swap sw 0 0
/dev/sda5 /home ext3 noatime 0 1
/dev/hda /mnt/cdrom iso9660 noauto,ro 0 0
/dev/hdb /mnt/dvd iso9660 noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0
Any advise, will be appreciated. Thanks _________________ Gigabyte MA790X-UD4P Motherboard
AMD Phenom II X4 940 Black Edition
MSI ATI R4650 PCIe2
250GB SATA Drive
4GB Corsair DDR2 |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Mon May 21, 2007 8:46 am Post subject: |
|
|
snakeo2 wrote: | is there a live cd for x86_64?? I couldnt find one. I would prefer to use that cd because I can chroot into my system and use the internet at the same time and copy paste my grub.conf ; /etc/fstab ;etc without typos, not to mention that booting between windows and gentoo to post answers. If you know if there is a livecd for x86_64, please let me know. thanks. |
http://bouncer.gentoo.org/fetch/gentoo-2007.0-livecd/amd64/
Guess you didn't know that amd64 is x86_64. |
|
Back to top |
|
|
Ehnvis Guru
Joined: 13 Jun 2006 Posts: 305 Location: /dev/random
|
Posted: Mon May 21, 2007 10:32 am Post subject: |
|
|
I would recommend you to recompile the kernel again and make sure SATA support goes INTO the kernel not as module. If it's a module you
cant boot from a SATA disk as the module isn't loaded at that part of boot. _________________ HP NC 4010, Pentium-M 725 1.6GHz w/ 1Gb RAM, 60Gb Hitachi Travelstar.
Running Gentoo-2.6.21-r4 (again as 2.6.22 kernels hogs CPU), all but SD reader works fine. |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Mon May 21, 2007 10:41 am Post subject: |
|
|
Ehnvis wrote: | I would recommend you to recompile the kernel again and make sure SATA support goes INTO the kernel not as module. If it's a module you cant boot from a SATA disk as the module isn't loaded at that part of boot. |
Indeed. Additionally you will need SCSI disk built-in (not as module) if the liveCD shows your disks as /dev/sdX - that one took hours to track down on a recent AMD64 install. |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Mon May 21, 2007 7:12 pm Post subject: |
|
|
steveL wrote: | Indeed. Additionally you will need SCSI disk built-in (not as module) if the liveCD shows your disks as /dev/sdX - that one took hours to track down on a recent AMD64 install. |
Only true if your disk is actually a SCSI disk. SATA drives come up as /dev/sdX. |
|
Back to top |
|
|
snakeo2 Veteran
Joined: 01 Jan 2006 Posts: 1237
|
Posted: Mon May 21, 2007 7:16 pm Post subject: |
|
|
I will follow up with your suggestiosn when i get home from work. I'm almost certain that all related to sata is compiled into the kernel. the odd thing is that i didnt make any changes. all i did was to open genkernel --menuconfig all to make sure it had smt compiled into the kernel before upgrading my CPU. and then it stopped working. nonetheless, i will try to recompile tonight. thanks. will let you know of progress _________________ Gigabyte MA790X-UD4P Motherboard
AMD Phenom II X4 940 Black Edition
MSI ATI R4650 PCIe2
250GB SATA Drive
4GB Corsair DDR2 |
|
Back to top |
|
|
snakeo2 Veteran
Joined: 01 Jan 2006 Posts: 1237
|
Posted: Mon May 21, 2007 8:06 pm Post subject: |
|
|
Come to think about it, I do remember emerging the new gentoo-sources, but I never did compile it. What are the odds that maybe something happened and is creating conflicts...... _________________ Gigabyte MA790X-UD4P Motherboard
AMD Phenom II X4 940 Black Edition
MSI ATI R4650 PCIe2
250GB SATA Drive
4GB Corsair DDR2 |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Mon May 21, 2007 8:21 pm Post subject: |
|
|
Not likely.
You're booting your old kernel which seems to not have been configured correctly to begin with. And you emerged a new gentoo-sources but never configured it at all or installed it. |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Mon May 21, 2007 8:36 pm Post subject: |
|
|
slycordinator wrote: | steveL wrote: | Indeed. Additionally you will need SCSI disk built-in (not as module) if the liveCD shows your disks as /dev/sdX - that one took hours to track down on a recent AMD64 install. |
Only true if your disk is actually a SCSI disk. SATA drives come up as /dev/sdX. |
Er that was my point; you need SCSI disk in-kernel for SATA drives. Or you did on the AMD64 we installed, and it's helped a few people in IRC too. YMMV, but compiling it in if you can't get your SATA drive to work isn't so hard. |
|
Back to top |
|
|
snakeo2 Veteran
Joined: 01 Jan 2006 Posts: 1237
|
Posted: Tue May 22, 2007 4:55 pm Post subject: |
|
|
slycordinator
Do you see anything that is misconfigured with my grub.conf and/or fstab? I have this box working for well over 13 months now with no problems. It all went down the drain last friday when I ran " genkernel menuconfi all " to see I had compiled support for dual core amds since I have one which I will be installing shortly. Since I had support compiled inthe kernel, I simply exit and booted into windows. When I try to boot into gentoo on sunday, it wouldnt boot, so not sure what happened. I will work on it tonight and hopefully get it fixed. Would hate to do a fresh re-install. _________________ Gigabyte MA790X-UD4P Motherboard
AMD Phenom II X4 940 Black Edition
MSI ATI R4650 PCIe2
250GB SATA Drive
4GB Corsair DDR2 |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Tue May 22, 2007 7:44 pm Post subject: |
|
|
Just because you have support for dual-core chips doesn't mean you have support built in for your hard disk controller. |
|
Back to top |
|
|
snakeo2 Veteran
Joined: 01 Jan 2006 Posts: 1237
|
Posted: Wed May 23, 2007 2:17 am Post subject: |
|
|
i was able to chroot into my sysstem using the livecd 2007 here is my lspci
lspci
00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3)
00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)
00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2)
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)
00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce 6600] (rev a2)
05:06.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
05:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
05:08.0 Ethernet controller: Atheros Communications, Inc. AR5005VL 802.11bg Wireless NIC (rev 01)
/etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/p$
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda3 / ext3 noatime 0 1
/dev/sda2 none swap sw 0 0
[ Read 32 lines ]
I just tried using genkernel and it doesnt work.
genkernel --menuconfig all
bash: genkernel: command not found
I will post more info tomorrow as it's already late. thanks for all the help. _________________ Gigabyte MA790X-UD4P Motherboard
AMD Phenom II X4 940 Black Edition
MSI ATI R4650 PCIe2
250GB SATA Drive
4GB Corsair DDR2 |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Wed May 23, 2007 3:34 am Post subject: |
|
|
You have to be root to run genkernel. |
|
Back to top |
|
|
|