Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]2nd install attempt; GRUB still failing...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
HouseAtreides
n00b
n00b


Joined: 29 Apr 2010
Posts: 58
Location: NH

PostPosted: Tue May 11, 2010 3:16 am    Post subject: [solved]2nd install attempt; GRUB still failing... Reply with quote

As the title states, this is my second attempt at a Gentoo install (only via MS virtual PC thus far) and I have encountered the same obstacle as I did during my first install. I am not entirely a newcomer to Linux (used Arch prior to this), and was able to follow the install guide quite capably up till the final step involving the setting up of a boot-loader.

Unfortunately Virtual PC does not seem to want to let me copy and paste from its window, so I will have to illustrate what I see through pictures (my apologies for this).

http://img227.imageshack.us/img227/9849/gentoo1.png
-> Here is what I see within GRUB.

http://img132.imageshack.us/img132/3122/gentoo2.png
-> This is what I see when I try to boot.

Please inform me of any other information which I ought to provide; I am still very much so a student of the whole Linux 'procedure'.
_________________
~In a society that has abolished all adventure the only adventure left is to abolish that society.~


Last edited by HouseAtreides on Fri May 21, 2010 2:55 am; edited 1 time in total
Back to top
View user's profile Send private message
EatMeerkats
Apprentice
Apprentice


Joined: 15 Mar 2006
Posts: 234

PostPosted: Tue May 11, 2010 3:58 am    Post subject: Reply with quote

It looks like you've used hda3, when your drive is coming up as sda3. If I remember correctly, even PATA drives now appear as sda. You can either boot from a CD, mount your filesystems following the Gentoo Handbook directions, and edit /etc/fstab and /boot/grub/grub.conf to reflect this, or restart the install, being careful to use sda instead of hda (overkill, since you probably have a perfectly fine install minus this error).
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Tue May 11, 2010 5:44 am    Post subject: Reply with quote

change
Quote:
edit /etc/fstab and /boot/grub/grub.conf
to read
Code:
edit /mnt/gentoo/etc/fstab and mnt/gentoo/boot/grub/grub.conf
for the stated condition of cd booted and gentoo partitions mounted but not in the chroot.
Back to top
View user's profile Send private message
HouseAtreides
n00b
n00b


Joined: 29 Apr 2010
Posts: 58
Location: NH

PostPosted: Wed May 12, 2010 3:11 am    Post subject: Reply with quote

I went ahead and booted from the CD again, then mounted the partitions:

Code:
# mount /dev/hda3 /mnt/gentoo
# mount /dev/hda1 /mnt/gentoo/boot


I then edited /mnt/gentoo/etc/fstab and changed hda1-3 to be sda1-3 respectively.

And then I edited /mnt/gentoo/boot/grub/grub.conf to read "root=/dev/sda3".

Followed by a reboot to the HDD, then the starting of Gentoo through GRUB again. Something seems to have changed, but still no successful boot. Here is what I see now:

http://img541.imageshack.us/img541/5076/gentooerro.png
_________________
~In a society that has abolished all adventure the only adventure left is to abolish that society.~
Back to top
View user's profile Send private message
Gankfest
l33t
l33t


Joined: 01 Aug 2007
Posts: 946
Location: Miami Beach, FL

PostPosted: Wed May 12, 2010 3:38 am    Post subject: Reply with quote

You know when I started out in Gentoo like forever ago, I had to reinstall 3 times and it took me about 3-4 weeks. I've never used virtual PC to install Gentoo, but how would it read the partitions that aren't there when you reboot. It just seems that way, but I could be wrong. Why not just install it for real. But anyway fstab and your file-system /.config from your hard-drive might show the true problem, but like I said I don't know to much about virtual pc installs, but that would be your contributing factor in a real install. The grub.conf should be good since it wouldn't even boot to the kernel at all if it wasn't.
_________________
Gankfest™ (>")> ~*

Everyone has to start somewhere, it depends on where you end up that counts! (>")>
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed May 12, 2010 3:59 am    Post subject: Reply with quote

boot cd
Code:
fsck /dev/sda3
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
grep -i fs /mnt/gentoo/usr/src/linux/.config | wgetpaste
mount | wgetpaste

post url's returned by wgetpaste, if wgetpaste fails, run commands without | wgetpaste and check partition file systems are supported in the kernel
what cd are you using?
Back to top
View user's profile Send private message
HouseAtreides
n00b
n00b


Joined: 29 Apr 2010
Posts: 58
Location: NH

PostPosted: Sat May 15, 2010 6:41 pm    Post subject: Reply with quote

DONAHUE wrote:
boot cd
Code:
fsck /dev/sda3
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
grep -i fs /mnt/gentoo/usr/src/linux/.config | wgetpaste
mount | wgetpaste

post url's returned by wgetpaste, if wgetpaste fails, run commands without | wgetpaste and check partition file systems are supported in the kernel
what cd are you using?


I suspect something with the virtual machine software causes my HDD to be recognized as hda when I believe in actuality it would be sda. Whenever I try anything involving sda it says it doesn't exist, but will accept hda (this is the one change I had to make to my install when reading the guide). Nonetheless, I'll try these commands substituting hda for sda where applicable and post what I see.

Here is the wget from grep: http://dpaste.com/195022/

And from mount: http://dpaste.com/195023/

The .iso I am using reads as follows: "install-x86-minimal-20100126.iso"

Would the fact that hda3 is XFS have anything to do with this?

paradox- I may go ahead and actually follow through on your suggestion, just go ahead and try an actual Gentoo install on my laptop. I was having similar problems when I tried Arch via virtual pc, but the 'actual' install was pretty straightforward.



=>Provided I will be able to turn here for support, I may just go ahead and take all my files off my machine and begin a full Gentoo install; rather than continue fooling around with virtual PC.
_________________
~In a society that has abolished all adventure the only adventure left is to abolish that society.~
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sat May 15, 2010 6:56 pm    Post subject: Reply with quote

CONFIG_XFS_FS=m says you configured support for the root file system as a module. You need to configure the root file system as a builtin or have an initrd/initramfs that will load the xfs support module so the kernel can use it to load root.
hda naming is a result of using legacy drivers instead of the current libata drivers for the hard drive controller(s)
if the cd is using hda it is an older one or a current gentoo minimal cd that is not current for some controllers
if the installed system is using hda the kernel configuration you selected (or inherited) is using the older drivers.
if you want help getting the install to use the current drivers, boot the cd, mount the gentoo partitions, run:
Code:
lspci
post the make and model info for the hard drive controllers, normally near keywords ide, sata, or pata
Back to top
View user's profile Send private message
HouseAtreides
n00b
n00b


Joined: 29 Apr 2010
Posts: 58
Location: NH

PostPosted: Mon May 17, 2010 1:48 am    Post subject: Reply with quote

DONAHUE wrote:
CONFIG_XFS_FS=m says you configured support for the root file system as a module. You need to configure the root file system as a builtin or have an initrd/initramfs that will load the xfs support module so the kernel can use it to load root.
hda naming is a result of using legacy drivers instead of the current libata drivers for the hard drive controller(s)
if the cd is using hda it is an older one or a current gentoo minimal cd that is not current for some controllers
if the installed system is using hda the kernel configuration you selected (or inherited) is using the older drivers.
if you want help getting the install to use the current drivers, boot the cd, mount the gentoo partitions, run:
Code:
lspci
post the make and model info for the hard drive controllers, normally near keywords ide, sata, or pata


Hmmm interesting, I had never considered this possibility.

Here is what lspci reveals:

Code:
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)


Are drivers indeed the issue?
_________________
~In a society that has abolished all adventure the only adventure left is to abolish that society.~
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Mon May 17, 2010 2:17 am    Post subject: Reply with quote

boot cd and mount gentoo partitions and enter chroot
for nominal partitioning:
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
cd /usr/src/linux
make menuconfig

Change menuconfig to:
Quote:
Device Drivers --->
< > ATA/ATAPI/MFM/RLL support --->
SCSI device suppor t --->
*** SCSI support type (disk, tape, CD-ROM) ***
<*> SCSI disk support
< > SCSI tape support
< > SCSI OnStream SC-x0 tape support
<*> SCSI CDROM support
<*> Serial ATA (prod) and Parallel ATA (experimental) drivers --->
--- Serial ATA (prod) and Parallel ATA (experimental) drivers
[*] ATA ACPI Support
[ ] SATA Port Multiplier support
<*> AHCI SATA support
< > Silicon Image 3124/3132 SATA support
[*] ATA SFF support
< > ServerWorks Frodo / Apple K2 SATA support
<*> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
< > Marvell SATA support (HIGHLY EXPERIMENTAL)
< > NVIDIA SATA support
< > Pacific Digital ADMA support
< > Pacific Digital SATA QStor support
< > Promise SATA TX2/TX4 support
< > Promise SATA SX4 support
< > Silicon Image SATA support
< > SiS 964/965/966/180 SATA support
< > ULi Electronics SATA support
< > VIA SATA support
< > VITESSE VSC-7174 / INTEL 31244 SATA support
< > Initio 162x SATA support
< > ACPI firmware driver for PATA
< > ALi PATA support (Experimental)
< > AMD/NVidia PATA support
< > ARTOP 6210/6260 PATA support
< > ATI PATA support
< > CMD640 PCI PATA support (Very Experimental)
< > CMD64x PATA support
< > CS5510/5520 PATA support
< > CS5530 PATA support (Experimental)
< > Cypress CY82C693 PATA support (Very Experimental)
< > EFAR SLC90E66 support
< > Generic ATA support
< > HPT 366/368 PATA support
< > HPT 370/370A/371/372/374/302 PATA support (Experimental)
< > HPT 372N/302N PATA support (Very Experimental)
< > HPT 343/363 PATA support
< > IT8211/2 PATA support
< > IT8213 PATA support (Experimental)
< > JMicron PATA support
< > Compaq Triflex PATA support
< > Marvell PATA support via legacy mode
< > Intel PATA MPIIX support
< > Intel PATA old PIIX support
< > NETCELL Revolution RAID support
< > Ninja32/Delkin Cardbus ATA support (Experimental)
< > Nat Semi NS87415 PATA support (Experimental)
< > OPTI621/6215 PATA support (Very Experimental)
< > OPTI FireStar PATA support (Very Experimental)
< > Older Promise PATA controller support (Experimental)
< > RADISYS 82600 PATA support (Very Experimental)
< > PC Tech RZ1000 PATA support
< > SC1200 PATA support (Very Experimental)
< > SERVERWORKS OSB4/CSB5/CSB6/HT1000 PATA support
< > Promise PATA 2027x support
< > CMD / Silicon Image 680 PATA support
< > SiS PATA support (Experimental)
< > VIA PATA support
< > Winbond SL82C105 PATA support
< > Intel SCH PATA support
File systems --->
<*> XFS filesystem support
[ ] XFS Quota supportmake && make modules_install
[*] XFS POSIX ACL support
[*] XFS Realtime subvolume support
[*] XFS Debugging support (EXPERIMENTAL)

compile and copy kernel
Code:
make && make modules_install
cp arch/x86/boot/bzImage /boot/<your kernel name>
exit
reboot


the controller drivers are not the problem, just less than optimum
Back to top
View user's profile Send private message
HouseAtreides
n00b
n00b


Joined: 29 Apr 2010
Posts: 58
Location: NH

PostPosted: Mon May 17, 2010 3:26 am    Post subject: Reply with quote

This is slightly embarrassing, but I hit a different (and probably quite simple) road block trying to reconfigure the kernel.

I was going to attempt to explain what happened, but I think I picture will do a much better job. This was right after I had configured the kernel as per your suggestions.

http://img232.imageshack.us/img232/1713/gentoo4.png


I recall this being really the only issue I encountered the last two install attempts, but for the life of me I can't remember what I did to fix it. It clearly says bzImage exists in that directory, so why can't cp find it?
_________________
~In a society that has abolished all adventure the only adventure left is to abolish that society.~
Back to top
View user's profile Send private message
tgR10
Apprentice
Apprentice


Joined: 23 Oct 2007
Posts: 262
Location: caly ten ambaras

PostPosted: Mon May 17, 2010 3:34 am    Post subject: Reply with quote

you just made a very common mistake for beginers :)

cp arch/*** not /arch/**** or with the full path fe. cp /usr/src/linux/arch/***

i prefer to use
Code:
make && make modules_install install
which compile, install modules and kernel
_________________
"bo kto ma racje ? ten kto z bliska zobaczy"
"moge nie wiedziec,wchlaniam niewiedze z malych torebek"
http://i12.tinypic.com/4pow0mu.png
http://userbar.tgr.debil.eu/userbar.jpg


Last edited by tgR10 on Mon May 17, 2010 3:36 am; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Mon May 17, 2010 3:35 am    Post subject: Reply with quote

if in chroot and at /usr/src/linux, no / in front of arch; this uses relative file path; command: arch/x86/boot/bzImage /boot/<your kernel name>
if anywhere in chroot, the absolute file path is /usr/src/linux/arch/x86/boot/bzImage, command: /usr/src/linux/arch/x86/boot/bzImage /boot/<your kernel name>
if cd booted and gentoo partitions mounted, not in chroot, the absolute file path is /mnt/gentoo/usr/src/linux/arch/x86/boot/bzImage, command: /mnt/gentoo/usr/src/linux/arch/x86/boot/bzImage /boot/<your kernel name>
Back to top
View user's profile Send private message
HouseAtreides
n00b
n00b


Joined: 29 Apr 2010
Posts: 58
Location: NH

PostPosted: Tue May 18, 2010 11:23 pm    Post subject: Reply with quote

This sure is a fantastic forum; both a helpful response and an explanation within minutes of me posting my quandary (would have not gone to bed had I known it'd be so quick!).


I have some progress to report.

-Removing the '/' from /arch did just the trick, subconsciously I always just put the '/' there for completion, but now I see why it matters.
-Having crossed that bridge, I then followed through on the rest of your other post DONAHUE. Updated the kernel as you advised, and went ahead to reboot. This actually seemed to work (booted into Gentoo fine) but I'm not sure that it worked completely, perhaps someone will be able to better tell what happened from this image.

http://img29.imageshack.us/img29/2378/gentoofile.png

This is the only real error that comes up during the boot.

Is it an issue that I can still only mount the filesystems (hda1 and hda3, when I try sda it simply states that it does not exist) as just that, hda and not sda? In my fstab I changed all the "hda's" to sda, and the same in my grub.conf (root=/dev/sda3).

I thought this might be conflicting, so I went and changed them back to hda, but then Gentoo doesn't boot at all so clearly these files must remain as sda and not hda (again, why can I only mount hda then?).

Either way, is something actually wrong with the boot process?
_________________
~In a society that has abolished all adventure the only adventure left is to abolish that society.~
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Tue May 18, 2010 11:38 pm    Post subject: Reply with quote

The cd has a kernel that uses the legacy drivers that call your hard drive hda.
Your shiny new install has a kernel that uses the up to date, faster, more powerful libata driver that calls your hard drive sda.

To simply eliminate the error message comment the line in /etc/fstab that has /boot.
To get the ability to mount the /boot partition(recommend this):
Code:
cd /usr/src/linux;make menuconfig
edit the menuconfig to
Quote:
File systems --->
<*> Second extended fs support
[*] Ext2 extended attributes
[*] Ext2 POSIX Access Control Lists
[*] Ext2 Security Labels

recompile the kernel,
copy the kernel by booting the cd, mounting the gentoo partitions (hda3,hda1), running
Code:
cp /mnt/gentoo/usr/src/linux/arch/x86/boot/bzImage /boot/<your kernel name>
reboot


Last edited by DONAHUE on Wed May 19, 2010 12:06 am; edited 1 time in total
Back to top
View user's profile Send private message
HouseAtreides
n00b
n00b


Joined: 29 Apr 2010
Posts: 58
Location: NH

PostPosted: Wed May 19, 2010 12:01 am    Post subject: Reply with quote

DONAHUE, that seems to have done the trick :)! I have (as far as I can tell) a fully functional Gentoo install.

I'll see what I can accomplish on my own to get myself on the way to a functioning desktop environment, expect to see another post from me in the near future.

Until then, I'll let this thread die- thank you to all who helped me out! I now have full confidence in going forward with the 'actual' install sometime soon on my primary machine.
_________________
~In a society that has abolished all adventure the only adventure left is to abolish that society.~
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum