View previous topic :: View next topic |
Author |
Message |
palu15 n00b
Joined: 27 Aug 2004 Posts: 22
|
Posted: Thu Sep 16, 2004 8:01 am Post subject: |
|
|
I re-checked my kernel configuration and my CPU type is K6/K6-2/K6-3, I tried booting with noapic noacpi noapm settings but my problem remains... I have ext3 partitions and I compiled the kernel with bult-in support for ext2 and ext3, maybe I have problems with file system?? _________________ From Slackware 2 Gentoo |
|
Back to top |
|
|
Galam n00b
Joined: 11 Dec 2003 Posts: 5
|
Posted: Thu Sep 16, 2004 2:40 pm Post subject: |
|
|
hmm i've got 0.94-r1 installed and it stills drops me to the grub commandline, symlink menu.lst -> grub.conf also there, i can boot the kernel by using the kernel command and than boot or selecting the config file by hand. kernel name is also correct
grub config
Code: |
default 0
timeout 15
title=Gentoo Linux-2.6.7-hardened-r8-p1
root (hd0,0)
kernel /kernel-2.6.7-hardened-r8-p1 root=/dev/hdc3
|
fstab
Code: |
/dev/hdc1 /boot ext2 noauto,noatime 1 1
/dev/hdc3 / ext3 noatime 0 0
/dev/hdc2 none swap sw 0 0
|
|
|
Back to top |
|
|
iLinux n00b
Joined: 18 Sep 2004 Posts: 41
|
Posted: Sat Sep 18, 2004 11:16 pm Post subject: |
|
|
i tried to install grub with hints from this thread. but error 21 occured by loading the bootmanager grub. i don't know what to do. i write this lines with the link app. so i don't know how to show you my fstab and grub.conf becaus i cant open these files and copy the text. so i give you some facts:
hdb1 ext2 /boot
hdb2 swap none
hdb3 ext3 /
on hda is a windows system
some important facts from grub.conf:
root (hd1,0)
kernel (hd1,0)/kernel-2.4.27 root=/dev/hda3
what do i wrong? i set the link to the menu.lst, used the CFLAGS="" emerge grub, wrote in a file an older versionnumber (don't exactly remember)
befor i forgt. i installed it so:
cp /proc/mounts /etc/mtab (this i did once)
rub-install --root-directory=/boot /dev/hda
plz help |
|
Back to top |
|
|
iLinux n00b
Joined: 18 Sep 2004 Posts: 41
|
Posted: Sun Sep 19, 2004 7:37 am Post subject: |
|
|
iLinux wrote: | i tried to install grub with hints from this thread. but error 21 occured by loading the bootmanager grub. i don't know what to do. i write this lines with the link app. so i don't know how to show you my fstab and grub.conf becaus i cant open these files and copy the text. so i give you some facts:
hdb1 ext2 /boot
hdb2 swap none
hdb3 ext3 /
on hda is a windows system
some important facts from grub.conf:
root (hd1,0)
kernel (hd1,0)/kernel-2.4.27 root=/dev/hda3
what do i wrong? i set the link to the menu.lst, used the CFLAGS="" emerge grub, wrote in a file an older versionnumber (don't exactly remember)
befor i forgt. i installed it so:
cp /proc/mounts /etc/mtab (this i did once)
rub-install --root-directory=/boot /dev/hda
plz help |
Now i can you proudly present my fstab and grub.conf
Code: | fstab:
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# 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 and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hdb1 /boot ext2 noauto,noatime 1 1
/dev/hdb2 none swap sw 0 0
/dev/hdb3 / ext3 noatime 0 1
/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
/dev/cdroms/cdrom1 /mnt/cdram auto noauto,user 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0
|
Code: | grub.conf:
default 0
timeout 30
# splashimage=(hd1,0)/grub/splash.xpm.gz
title=Gentoo
root (hd1,0)
kernel (hd1,0)/kernel-2.4.27 root=/dev/hdb3
# title=windows
# rootnoverify (hd0,0)
# makeactive
# chainloader +1
|
|
|
Back to top |
|
|
ck42 l33t
Joined: 31 Jul 2003 Posts: 789
|
Posted: Thu Sep 23, 2004 3:48 am Post subject: |
|
|
Having major headaches trying to figure out my GRUB setup after installing my sata drive. Once the sata drive is up and running, I'll be pulling out the PATA drive.
Right now, I'm having to boot to GRUB on the PATA drive. I then boot the Gentoo install on the SATA drive by modifying the entry in GRUB to point to the SATA drive.
I'm running the Gentoo copy on the SATA drive right now and am getting an weird error when trying to setup GRUB.
Code: | # grub-install /dev/sda
/dev/scsi/host0/bus0/target0/lun0/disc does not have any corresponding BIOS drive |
and
Code: | # grub-install --recheck /dev/sda
The file /boot/grub/stage2 not read correctly |
This seems to directly correspond with the error I get when trying to boot the box from the SATA drive:
system stops and says: GRUB HARD DISK ERROR.
The Grub error page says about this error:
Code: | Hard Disk Error
The stage2 or stage1.5 is being read from a hard disk, and the attempt to determine the size and geometry of the hard disk failed.
|
So this also seems to be saying there's a problem with stage2.
The SATA drive is running on sda....fstab is setup this way and everything is working with it.
Should I be trying to setup GRUB in in the MBR using something else?
I'm also unclear as to how things will need to be modified ANYWHERE once I pull the PATA drive...ie, do all the (hd1,0) references need to be changed to (hd0,0)?[/code][/code]
[EDIT]
Booted up with a Reiser4 LiveCD and did a GRUB install from there. Worked this time like it should have all along.
Last edited by ck42 on Thu Sep 30, 2004 2:49 pm; edited 1 time in total |
|
Back to top |
|
|
Shock The Dark Mage n00b
Joined: 01 Oct 2004 Posts: 8 Location: Sept-Iles, Québec, Canada
|
Posted: Sun Oct 03, 2004 9:49 pm Post subject: |
|
|
I have problem installing GRUB into the MBR. I haev started from a AMD64 stage3. I have a Maxtor SATA drive(one HD) on a Promise SATA RAID onboard controlled setted in IDE mode.
Here the partitions:
Code: |
/dev/sda1 ntfs WINDOWSXP
/dev/sda3 fat32 DONNEES
/dev/sda4 swap swap
/dev/sda5 ext3 /
/dev/sda6 ext3 /mnt/gentoo32
/dev/sda7 ext3 /home
|
I have done this in the grub shell:
Code: |
root (hd0,0)
setup (hd)
|
But GRUB says Error 17: Cannot mount partition of type 0x7
Here my grub.conf
Code: |
default 0
timeout 30
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
title=Gentoo Linux 2.6.8
root (hd0,4)
kernel /boot/kernel-2.6.8-gentoo root=/dev/sda5 vga=795
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
|
Yes I have compiled FAT32 and NTFS hard-coded into my kernel. |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Sun Oct 03, 2004 10:03 pm Post subject: |
|
|
grub can't write to NTFS partitions. In the grub shell, do
Code: |
root (hd0,4)
setup (hd0)
|
|
|
Back to top |
|
|
Abinadi n00b
Joined: 04 Sep 2004 Posts: 38 Location: Canton, Michigan
|
Posted: Sun Oct 03, 2004 10:29 pm Post subject: |
|
|
Alright after skimming these last 11 pages (because to be honest GRUB has ruined my patience level for the day) I must ask for help.
This is the second time I've installed Gentoo. the first time was fine until my dad erased the HD
So now I have to do it again. GRUB problem I get Error 15 like many other people but am not getting the right fix i think.
Heres my grub.conf:
Code: |
default 0
timeout 3
splashimage=(hd0,0)/grub/splash.xpm.gz
title Gentoo Linux 2.6.8-r3
root (hd0,0)
kernel /kernel-2.6.8-gentoo-r3 root=/dev/hda3
|
Heres my fstab:
Code: |
/dev/hda1 /boot ext2 defaults,noatime 1 2
/dev/hda2 none swap sw 0 0
/dev/hda3 / ext3 noatime 0 1
/dev/cdrom0 /mnt/cdrom auto noauto 0 0
/dev/dvd0 /mnt/dvd auto noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
|
Heres my ls boot:
Code: | System.map-2.6.8-gentoo-r3 config-2.6.8-gentoo-r3 kernel-2.6.8-gentoo-r3 |
Heres my ls /boot:
Code: | boot grub lost+found |
Heres my ls -l /boot:
Code: | lrwxrwxrwx 1 root root 15 oct 3 22:06 /boot -> mnt/livecd/boot |
I'll admit- I'm a new linux user, only about 5 or 6 months. I've seen people discussing something about a symbolic link but I'm not sure about it... maybe thats what i need? if so id appreciate the EXACT commands from start-up with the livecd to finishing and rebooting jsut so i dont fuddle them up
Well, I'd really appreciate the help. i cant remeber what i did last time to make it work haha... oh well. thanks guys! |
|
Back to top |
|
|
Shock The Dark Mage n00b
Joined: 01 Oct 2004 Posts: 8 Location: Sept-Iles, Québec, Canada
|
Posted: Mon Oct 04, 2004 12:46 pm Post subject: |
|
|
Earthwings wrote: | grub can't write to NTFS partitions. In the grub shell, do
Code: |
root (hd0,4)
setup (hd0)
|
|
Thanks, it worked |
|
Back to top |
|
|
Abinadi n00b
Joined: 04 Sep 2004 Posts: 38 Location: Canton, Michigan
|
Posted: Mon Oct 04, 2004 7:07 pm Post subject: |
|
|
ya turns out my kernel isnt on my boot partition where i thought i put it who knew, right?
well.. so i fixed that problem.. heh |
|
Back to top |
|
|
davecorder n00b
Joined: 03 Sep 2004 Posts: 10
|
Posted: Tue Oct 05, 2004 7:01 am Post subject: Re: After upgrading grub you only get a grub prompt: additio |
|
|
ibis wrote: | consider adding additional solution to:
After upgrading grub you only get a grub prompt section
as follows:
Try restoring the /boot/boot symlink
Code: | # cd /boot
# ln -s ./ boot |
And then run grub-install again
Code: | # grub-install --root-directory=/boot /dev/hda |
|
I was getting the grub prompt on boot as well. Checked the hint in the original post about the symlink form menu.lst to grub.conf and it was ok, but still no grub menu.
Followed this hint and it works now.
Thanks,
Dave |
|
Back to top |
|
|
aus9 n00b
Joined: 11 Oct 2004 Posts: 1
|
Posted: Mon Oct 11, 2004 3:45 am Post subject: |
|
|
Dear Moderator
I use linuxquestions.org and have made a modest howto at that site.
I boast you may wish to read my use of the pause command to boot llarge kernels.....I use 3 floppies .I have created a link to your great list of errors to save my selfish time.
Your link is under the heading of ERRORS....
If you object to this link in any way please post here and I will remove it. Give me a few days to do so as I am on dial up and have to work as well.
If you are flattered or have no misgivings about my link can you, when it is convenient to do so, post a reply saying its OK please.
http://www.linuxquestions.org/questions/showthread.php?s=&postid=1208786#post1208786 |
|
Back to top |
|
|
tofudealer n00b
Joined: 24 Dec 2003 Posts: 18
|
Posted: Mon Oct 11, 2004 8:55 am Post subject: |
|
|
ok....i cant figure this problem out
i have finished my gentoo install but on my boot loader has a problem.
root=(hd0,0)
file system type is ext2fs partitiontype 0x83
kernel (hd0,0) /kernel-2.4.20/bzImage root=/dev/hda3
Error 1: Filename must be an absolute pathname or blocklist
thats the message i get when i boot up.
help? |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Mon Oct 11, 2004 9:03 am Post subject: |
|
|
I think it might be because you've got a space between the (hd0,0) and the kernel name on your kernel line. Try changing it to this instead:
Code: | kernel (hd0,0)/kernel-2.4.20/bzImage root=/dev/hda3 |
_________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
tofudealer n00b
Joined: 24 Dec 2003 Posts: 18
|
Posted: Mon Oct 11, 2004 9:17 am Post subject: |
|
|
Maedhros wrote: | I think it might be because you've got a space between the (hd0,0) and the kernel name on your kernel line. Try changing it to this instead:
Code: | kernel (hd0,0)/kernel-2.4.20/bzImage root=/dev/hda3 |
|
thanks for the help.
i'll try it out and see what happens |
|
Back to top |
|
|
chrisduck Apprentice
Joined: 30 Jun 2004 Posts: 283 Location: California
|
Posted: Thu Oct 14, 2004 8:12 am Post subject: yet another error 15 problem |
|
|
hey everyone. I've read this entire thread and I can't seem to find an answer to my own error 15 problem.
I'll try to explain what I've done so far.
when I type "ls /boot"
command line responds
boot grub initrd-2.6.8-gentoo-r8 kernel-2.6.8-gentoo-r8 lost+found
here is my 'genkernel-based' grub.conf file
default 0
timeout 30
splashimage=(hd0,3)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.8-r8
root (hd0,3)
kernel /kernel-2.6.8-gentoo-r8 root=/dev/ram0 vga=795 init=/linuxrc ramdisk=8192 real_root=/dev/hda4
initrd /initrd-2.6.8-gentoo-r8
title=Windows XP
root (hd0,0)
makeactive
chainloader +1
I copied the name of the kernel correctly.
Grub will boot into windows...
Here is my partition information, in case perhaps I've done something wrong on that end of things
Device.....Boot.....Start.......End..........Blocks...........Id.. ..System
/dev/hda1...*.........1............3954........31760473+.......7.....HPFS/NTFS
/dev/hda2.............3955.......3961.........56227+..........83.. .Linux
/dev/hda3.............3962.......4032.........570307+........5.... .Extended
/dev/hda4.............4033.......7296.........26218080.......83.. .Linux
/dev/hda5.............3962.......4032.........570276..........82. ..Linux swap
Grub's fuzzy text boot screen will be giving me nightmares tonight.
Thanks to anyone who would help me...[/b] |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Thu Oct 14, 2004 8:20 am Post subject: |
|
|
Is your /boot partition hda2? If so, that will be (hd0,1) for grub. _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
chrisduck Apprentice
Joined: 30 Jun 2004 Posts: 283 Location: California
|
Posted: Thu Oct 14, 2004 3:34 pm Post subject: |
|
|
oh, ok I'll try that now.
I've got to go to school so I might not report back for a while though.
until then thanks!! |
|
Back to top |
|
|
tuxman n00b
Joined: 11 Oct 2004 Posts: 54 Location: Ottawa,Canada
|
Posted: Fri Oct 15, 2004 10:09 am Post subject: |
|
|
Ok.. I didn't see a solution to this one.. but I may have missed it..
My box is a Twin PII-450, with a DPT Raid card.
I have compiled EXT3 and EXT2 into the kernel.. .I have compiled
adaptec dpt_i2o into the kernel. as well as scsi disk support.
When I boot I get
VFS: cannot open root device "sda3" or unknown-block (0,0) please append a correct "root=" boot option
Kernel panic: VFS: unable to mount root fs on unknown-block
here's my grub config.
timeout 5
default 0
splashimage=(hd0,0)/grub/splash.xpm.gz
title Kernel 2.6.8-rc8
root (hd0,0)
kernel /kernel-2.6.8-r8 root=/dev/sda3
my fstab.
# <fs> <mountpoint> <type> <opts> <dump/pass>
/dev/sda1 /boot ext3 noauto,noatime 1 1
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext3 noatime 0 0
/dev/sda4 /var ext3 noatime 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
fdisk -l /dev/sda
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 136 987997+ 82 Linux swap
/dev/sda3 137 794 5285385 83 Linux
/dev/sda4 795 1106 2506140 83 Linux
IF I try hitting e at the grub menu and going to the kernel line and e again.
and I try to go to root=/dev.... and hit tab.. it gives me and
ERROR 11:Unrecconized Device String.
I've tried reinstalling twice, tried almost everything I can think of.. Can anyone shed some light on this..
Thanks for your replies.
Dave |
|
Back to top |
|
|
slam633 n00b
Joined: 01 Oct 2004 Posts: 40 Location: Fear me, for I am truly evil.
|
Posted: Sun Oct 17, 2004 2:05 am Post subject: I haven't seen anything about an "Error 2" |
|
|
I've tried to install 3 times, thinking I may be doing something wrong, but I get the same error message on rebooting "GRUB loading, please wait. (then a new line, and) Error 2"
Here are my settings:
Quote: |
System componets
Motherboard
ASUS P2B-D V 1.06, ACPI BIOS rev 1012
2X Intel PIII 550mhz S.E.C.C. 2, L2 256kb@275mhz W/ 64GB address range
512 mb RAM 2X PC-100, 256mb
Video
ASUS V-7100 Magic 32mb
Sound
Generic PCI W/ Yamaha XG YMF724F-Y chipset
LAN
Intel Pro 100+
Raid
Adaptec AAA-131U2 W/ 2mb (Would like to upgrade to 32mb, but have to get to the point where I can run a manager)
I do NOT boot from SCSI.
Drives
1X 3.5 floppy
1X CD-ROM IDE/ATAPI 52X
1X IDE
Seagate Barracude ATA III ST320414A 20GB (This is my boot disk)
3X SCSI
Ch A, SCSI ID #0 - Seagate ST150176LW Ultra2-LVD 50BG
Ch A, SCSI ID #1 - IBM DMVS09V Ultra2-LVD 9GB
Ch A, SCSI ID #2 - IBM DMVS09V Ultra2-LVD 9GB
Display on start up:
ASUS V7100MAGIC VGA BIOS Version 3.11.01.24.AS10
Copyright (C) 1996 - 2003 NVidia Corp.
32.0MB RAM
Award Modular BIOS v4.51PG, An Energy Star Ally
Copyright (C) 1984-98, Award Software, Inc.
ASUS P2B-D ACPI BIOS Revision 1012
Pentium III 550MHz Processor, 2 Processors Detected
Memory Test: 524288k OK
Press DEL to enter SETUP
10/21/99-i440BX-P2B-D-00
(The BIOS allows for SCSI or IDE boot first, it is set for IDE)
Award Plug and Play BIOS Extension v1.0A
Initialize Plug and Play Cards...
PNP Init Completed
Detecting HDD Secondary Master... IDE/ATAPI CD-ROM 52XS
Initializing Intel Boot Agent Version 2.2
Press Ctrl+S to enter the Setup Program..
(Ctrl+S brings up the program, these are the settings)
Intel Corporation
Intel Boot Agent Version 2.2 (0421) Setup Program
Boot Protocol: *RPL, PXE
PnP/BEV Boot: *Enable, Disable
Default Boot: *Local, Network
Local Boot: *Enable, Disable
Prompt Time: *2,3,5,8
Setup Message:*Enable, Disable
Power Mgmt: *ACPI, APM
(Back to POST)
Adaptec Array1000 Family BIOS v4.20.23
(c) 1999 Adaptec, Inc. All Rights Reserved.
<<< Press <F6> for SCSISelect(TM) Utility! >>>
(<F6> brings up the program, these are the settings)
Adaptec Array1000 Family < SCSISelect(TM) > Utility
Array1000 Family at Bus:Channel 02:A
Options:
Configure/View Host Adapter Settings:
SCSI Bus Interface Definitions
Host Adapter SCSI ID...........................7
SCSI Parity Checking.............................Enabled
Host Adapter Scsi Termination............Press Enter
Ultra2-LVD/SE Connector...................Auto
Fast/Ultra-SE Connector.....................Enabled
Additional Options
SCSI Device Configuration...................Press Enter
Displays the SCSI tables
Array1000 BIOS.......................................Enabled
BIOS Support for Bootable CD-ROM..Enabled
SCSI Disk Utilities
Select SCSI Disk and press <enter>
SCSI ID #0: SEAGATE ST150176LW ULTRA2-LVD
SCSI ID #1: IBM DMVS09V ULTRA2-LVD
SCSI ID #2: IBM DMVS09V ULTRA2-LVD
SCSI ID #7: Array1000 Family (SCSI Host Adapter)
Format Disk
Verify Disk Media
(Back to POST)
2MB Memory Detected
Checking DRAM >>>> 10 Seconds Wait Maximum...
AIC-789x/Sequencer Diagnostics passed
Ch A, SCSI ID #0 - SEAGATE ST150176LW ULTRA2-LVD
Ch A, SCSI ID #1 - IBM DMVS09V ULTRA2-LVD
Ch A, SCSI ID #2 - IBM DMVS09V ULTRA2-LVD
Diskette Drive A: 1.44M, 3.5 in.
Pri. Master Disk: CHS, UDMA2, 20021MB
Sec. Master Disk: CDROM, UDMA 2
Display Type: EGA/VGA
Serial Ports: 3F8, 2F8
Parallel Port: 378
DRAM Type: SDRAM
SPD On Modules: Yes
Data Integrity: Non-ECC
PCI device listing.....
Bus No. Device No. Func No. Vendor ID Device ID Device Class IRQ
0 4 1 8086 7111 IDE Controller 14/15
0 4 2 8086 7111 Serial bus controller 9
0 10 0 8086 1229 Network controller 5
0 11 0 1073 000D Multimedia device 10
1 0 0 10DE 0111 Display controller 11
2 0 0 9004 7815 Memory controller 11
2 4 0 9005 0013 Mass storage controller 11
Boot from ATAPI CD-ROM :
1. No Emulation System Type-(00)
ISOLINUX 2.08 2003-12-12 Copyright (C) 1994-2003 H. Peter Alvin
Gentoo Linux Installation Livecd http://www.gentoo.org/
Enter to Boot; F1 for kernels F2 for options.
boot: memtest86
Test completed: OK
boot: smp (Tried -acpi=on, system hung)
Livecd root# lspci
0000:00:00.0 Host bridge: Intel Corp. 440BX.ZX.DX - 82443BX/ZX/DX Host bridge (rev 03)
0000:00:01.0 PCI bridge: Intel Corp. 440BX.ZX.DX - 82443BX/ZX/DX AGP bridge (rev 03)
0000:00:04.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 04)
0000:00:04.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01)
0000:00:04.2 USB controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)
0000:00:04.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 02)
0000:00:0a.0 Ethernet controller: Intel Corp. 82557/8/9 [Eternet Pro 100] (rev 08)
0000:00:0b.0 Multimedia audio controller: Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03)
0000:00:0c.0 PCI bridge: Digital Equipment Corporation DECchip 21152 (rev 03)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV11DDR [GeForce2 MX 100DDR/200 DDR (rev b2)
0000:02:00.0 Memory controller:: Adaptec AIC-7815 RAID+Memory Controller IC (rev 02)
0000:02:04.0 SCSI storage controller: Adaptec 78902
livecd root# passwd
passwd: password updated successfully
livecd root# useradd
livecd root# passwd
passwd: password updated successfully
livecd root# fdisk /dev/hda (IDE boot disk)
Went through routine, drives set thus :
Drive Boot Start End Blocks Id System
/dev/hda1 * 1 5 40131 83 Linux
/dev/hda2 6 68 506047+ 82 Linux Swap
/dev/hda3 69 2434 19004895 83 Linux
livecd root# fdisk /dev/sda
/dev/sda1 1 6081 48845601 83 Linux
livecd root# fdisk /dev/sdb
/dev/sdb1 1 1115 8956206 83 Linux
livecd root# fdisk /dev/sdc
/dev/sdc1 1 1115 8956206 83 Linux
livecd root# mke2fs /dev/hda1
livecd root# mke2fs -j /dev/hda3
livecd root# mkreiserfs /dev/sda1
livecd root# mkreiserfs /dev/sdb1
livecd root# mkreiserfs /dev/sdc1
All changes came back as successful
livecd root# /sbin/ifconfig
Ethernet connected
livecd root# mkswap /dev/hda2
Setting up swapspace version 1, size = 518184 kB
livecd root# swapon /dev/hda2
livecd root# mount /dev/hda3 /mnt/gentoo
livecd root# mkdir /mnt/gentoo/boot
livecd root# mount /dev/hda1 /mnt/gentoo/boot
livecd root# date
(Date is correct)
livecd root# ls /mnt/cdrom/stages
(Stages displayed)
livecd root# cd /mnt/gentoo
livecd gentoo# tar -xvjpf /mnt/cdrom/stages/stage2-i686-2004.2.tar.bz2
livecd gentoo# ls /mnt/cdrom/snapshots
livecd gentoo# tar -xvjf /mnt/cdrom/snapshots/portage-20040710.tar.bz2 -C /mnt/gentoo/usr
livecd gentoo# mkdir /mnt/gentoo/usr/portage/distfiles
livecd gentoo# cp /mnt/cdrom/distfiles/* /mnt/gentoo/usr/portage/distfiles/
livecd gentoo# mirrorselect -a -s4 -o | grep 'GENTOO_MIRRORS=' >> /mnt/gentoo/etc/make.conf
livecd gentoo# nano -w /mnt/gentoo/etc/make.conf
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
GENTOO_MIRRORS="several mirrors appear here"
MAKEOPTS="-j3"
livecd gentoo# cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
livecd gentoo# mount -t proc none /mnt/gentoo/proc
livecd gentoo# chroot /mnt/gentoo /bin/bash
livecd / # env-update
* Caching service dependencies
livecd / # source /etc/profile
livecd / # less /usr/portage/profiles/use.desc
livecd / # emerge system
livecd / # ls /usr/share/zoneinfo
livecd / # ln -sf /usr/share/zoneinfo/PST8PDT /etc/localtime
livecd / # emerge gentoo-sources
livecd / # ls -l /usr/src/linux
lrwxrwxrwx 1 root root 31 Oct 16 04:12 /usr/src/linux-2.4.26-gentoo-r6
livecd / # cd /usr/scr/linux
livecd linux # make menuconfig
main menu
Code maturity level options --->
[*] Prompt for development and/or incomplete code/drivers
Processor type and features--->
(Pentium-III/Celleron(Coppermine)) Processor family
[*] Machine Check Exception
(off) High Memory Support
(3GB) User address space size
[*] Preemptible Kernel
General setup --->
ACPI Support --->
[*] ACPI Support
Parallel port support --->
<*> Parallel port suport
<*> PC-style hardware (NEW)
[*] Use FIFO/DMA if available (EXPERIMENTAL) (NEW)
[*] IEEE 1284 transfer modes (NEW)
Block devices --->
<*> Parallel port IDE device support
ATA/IDE/MFM/RLL support --->
IDE, ATA and ATAPI Block devices --->
[*] PCI IDE chipset support
<*> RZ1000 chipset bugfix/support (Is this needed on this board? The chipset is an i440BX)
SCSI support --->
SCSI low-level drivers --->
<*> Adaptec AIC7xxx support (Is this the right setting for the Memory controller:: Adaptec AIC-7815 RAID+Memory Controller IC (rev 02), and what would I use for the SCSI storage controller: Adaptec 78902 ? I want to access/edit/modify the memory controller to add more memory (I have a 32mb I'd like to use).)
Character devices --->
<*> /dev/agpart (AGP Support)
[*] Intel 440LX/BX/GX and I815/I820/I830M/1830MP/I840/I845/I850/I860 suport
[ ] Intel I810/I815/I830M (on-board) support (I don't have these features)
[ ] VIA chipset support
[ ] AMD Irongate, 761, and 762 support
[ ] Generic SIS support
[ ] ALI chipset support
Direct Rendering Manager (XFree86 DRI support) --->
[*] Direct Rendering Manager (XFree86 DRI support)
< > 3dfx Banshee/Voodoo3+
< > ATI Radeon
< > Intel I810
File systems --->
<*> Kernel automounter version 4 support (also supportsv3)
<*> Reiserfs support
<*> Ext3 journalling file system support
<*> DOS FAT fs support (I'm including these to migrate over from a DOS/Windows based life)
<*> MSDOS fs support
<*> VFAT (Window-95) fs support
[*] Virtual memory file system support (former shm fs)
<*> ISO 9660 CDROM file system support (The system had this pre-selected)
[*] Microsoft Joliet CDROM extensions
[*] Transparent decompression extension
[*] /proc file system support
[*] /dev file system support (EXPERIMENTAL)
[*] Automatically mount at boot
<*> Second extended fs support
Network File Systems --->
<*> NFS file system support
<*> NFS server support
<*> SMB file system support (to mount Windows shares etc.) (I need this to talk to the rest of my network.)
Native Language Support --->
<*> Codepage 437 (United States, Canada) (NEW)
<*> NLS ISO 8859-1 (Latin 1; Western European Languages) (NEW)
<*> NLS UTF8 (NEW)
Sound --->
<*> Sound card support
<*> OSS sound modules
<*> Yamaha YMF7xx PCI audio (native mode) (NEW)
[*] Yamaha PCI legacy ports support
livecd linux # make dep && make bzImage modules modules_install
livecd linux # cp arch/i386/boot/bzImage /boot/kernel-2.4.26-gentoo-r6
livecd linux # cp System.map /boot/System.map-2.4.26-gentoo-r6
livecd linux # cp .config /boot/config-2.4.26-gentoo-r6
7.e. Installing Separate Kernel Modules
Any recommedations?
livecd linux # find /lib/modules/2.4.26-gentoo-r6/ -type f -iname '*.o' -or -iname '*.ko'
/lib/modules/2.4.26-gentoo-r6/kernel/drivers/isdn/isdn.o
/lib/modules/2.4.26-gentoo-r6/kernel/drivers/net/dummy.o
livecd linux # nano -w /etc/modules.autoload.d/kernel-2.4
(won't the options I selected in menuconfig autoload? Do I need isdn.o, or dummy.o?)
livecd linux # nano -w /etc/fstab
/fstab
# <fs> <mountpoint> <type> <opts> <dump/pass>
/dev/hda1 /boot ext2 defaults,noatime 1 2
/dev/hda3 / ext3 noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 auto,ro,user 0 0
#/dev/fd0 /mnt/floppy auto auto,ro,user 0 0
/dev/sda1 /scsi1 reiserfs noatime 0 0
/dev/sdb1 /scsi2 resierfs noatime 0 0
/dev/sdc1 /scsi3 resierfs noatime 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
livecd linux # echo linuxbox >/etc/hostname
livecd linux # echo workgroup > /etc/dnsdomainname
livecd linux # rc-update add domainname default
* domainname added to runlevel default
* Caching service dependecies...
* rc-update complete.
livecd linux # nano -w /etc/conf.d/net
/net
iface_eth0="dhcp"
dhcpcd_eth0="-HD" (My router assigns IPs)
#gateway="eth0/192.168.1.1"
livecd linux # rc-update add net.eth0 default
* net.eth0 added to runlevel default
* Caching service dependecies...
* rc-update complete.
livecd linux # nano -w /etc/hosts
/hosts
127.0.0.1 linuxbox.workgroup linuxbox localhost
livecd linux # nano -w /etc/rc.conf
/rc.conf
KEYMAP="us"
SET_WINDOWKEYS="yes"
CLOCK="local" (Shouldn't this be "localtime"?)
DISPLAYMANAGER="gdm"
XSESSION="Gnome"
livecd linux # emerge metalog
livecd linux # rc-update add metalog default
* metalog added to runlevel default
* Caching service dependecies...
* rc-update complete.
livecd linux # emerge vixie-cron
livecd linux # rc-update add vixie-cron default
* vixie-cron added to runlevel default
* Caching service dependecies...
* rc-update complete.
livecd linux # emerge reiserfsprogs
livecd linux # emerge grub
livecd linux # nano -w /boot/grub/grub.conf
/grub.conf
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.4.26-r6
root (hd0,0)
kernel /kernel-2.4.26-gentoo-r6 root=dev/hda3 vga=788
livecd linux # cp /proc/mounts /etc/mtab
livecd linux # grub
probing devices to guess BIOS drives. This may take a long time.
end_request: I/O error, dev fd0, sector 0 (Is this because I don't have an floppy in the drive?)
grub> root (hd0,0)
File system type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 22 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+22 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... suceeded
Done.
grub> quit
livecd linux # exit
exit
livecd gentoo # cd
livecd root # umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo
livecd root # reboot
Broadcast message from root (vc/1) (Sat Oct 16 16:18:50 2004):
The system is going down for reboot NOW!
INIT: Switching to runlevel: 6
INIT: Sending processes the TERM signal
INIT: Sending processes the KILL signal
* Setting Console frame buffer images...
* Stopping local...
* Stopping metalog...
* Syncing hardware clock to system clock [UTC]...
* Saving random seed...
* Stopping input hotplugging...
* Stopping pci hotplugging...
* Stopoing usb hotplugging... (System hangs at this point. Pressing <enter> takes me back to..)
livecd root # reboot
(System reboots, goes through POST)
Boot from ATAPI CD-ROM : Failure ...
GRUB Loading stage1.5.
GRUB loading, please wait...
Error 2 (This is as far as I have been able to get)
Boot from disk:
livecd root # ls /boot
boot initrd-2.4.26-gentoo-r6 initrd-2.6.7-gentoo-r11 kernel-2.4.26-gentoo-r6 kernel-2.6.7-gentoo-r11 |
Anyone got any ideas? _________________ "Beer is proof God loves us, and wants us to be happy. Ben Franklin" |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Sun Oct 17, 2004 7:05 am Post subject: Re: I haven't seen anything about an "Error 2" |
|
|
@tuxman: you're missing something in your kernel config regarding SCSI/SATA.
slam633 wrote: |
GRUB loading, please wait...
Error 2 (This is as far as I have been able to get)
|
info grub troubleshooting stage2 wrote: |
2 : Bad file or directory type
This error is returned if a file requested is not a regular file,
but something like a symbolic link, directory, or FIFO.
|
Quote: |
livecd root # ls /boot
boot initrd-2.4.26-gentoo-r6 initrd-2.6.7-gentoo-r11 kernel-2.4.26-gentoo-r6 kernel-2.6.7-gentoo-r11 |
Can I have a instead? |
|
Back to top |
|
|
tuxman n00b
Joined: 11 Oct 2004 Posts: 54 Location: Ottawa,Canada
|
Posted: Sun Oct 17, 2004 11:51 am Post subject: |
|
|
Actually I fixed it...
All I had to do was add noapic at the end of the kernel line in grub.
after close inspection what was happening was the driver was loading but the drives weren't comming up till much later.. wasn't a problem with the live cd becuase it didnt' need them but off the kernel on the drive it would
panic becuase it couldn't see the /dev/sda3 becuase it wasn't actually there yet..
add the noapic and everything works like a charm.. thanks to all that helped out.. |
|
Back to top |
|
|
slam633 n00b
Joined: 01 Oct 2004 Posts: 40 Location: Fear me, for I am truly evil.
|
Posted: Mon Oct 18, 2004 12:00 am Post subject: |
|
|
Earthwings,
Thanks for your reply.
Quote: | livecd root# swapon /dev/hda2
livecd root# mount /dev/hda3 /mnt/gentoo
livecd root# mount /dev/hda1 /mnt/gentoo/boot
livecd root# ls -lR /boot
lrwxrwxrwx 1 root root 15 Oct 17 16:21 /boot -> mnt/live cd/boot |
Since /livecd is listed in there, I don't think that is right.
Quote: | livecd root# cd /mnt/gentoo
livecd root# ls -lR /boot
lrwxrwxrwx 1 root root 15 Oct 17 16:21 /boot -> mnt/live cd/boot |
Still has /livecd.
Quote: | livecd gentoo# mount -t proc none /mnt/gentoo/proc
livecd gentoo# chroot /mnt/gentoo /bin/bash
livecd / # ls -lR /boot
/boot:
total 2269
-rw-r--r-- 1 root root 707291 Oct 16 14:08 System.map-2.4.26-gentoo-r6
lrwxrwxrwx 1 root root 1 Oct 15 10:21 boot -> .
-rw-r--r-- 1 root root 27190 Oct 16 14:09 config-2.4.26-gentoo-r6
drwxr-xr-x 2 root root 1024 Oct 16 08:49 grub
-rw-r--r-- 1 root root 1562012 Oct 16 14:08 kernel-2.4.26-gentoo-r6
drwx------ 2 root root 12288 Oct 15 10:03 lost+found
/boot/grub:
total 845
-rw-r--r-- 1 root root 11264 Oct 16 08:40 e2fs_stage1_5
-rw-r--r-- 1 root root 10256 Oct 16 08:40 fat_stage1_5
-rw-r--r-- 1 root root 9216 Oct 16 08:40 ffs_stage1_5
-rw-r--r-- 1 root root 157 Oct 16 08:49 grub.conf
-rw-r--r-- 1 root root 1495 Oct 16 08:40 grub.conf.sample
-rw-r--r-- 1 root root 11456 Oct 16 08:40 jfs_stage1_5
lrwxrwxrwx 1 root root 9 Oct 16 08:40 menu.lst -> grub.conf
-rw-r--r-- 1 root root 9600 Oct 16 08:40 minix_stage1_5
-rwxr-xr-x 1 root root 196836 Oct 16 08:40 nbgrub
-rwxr-xr-x 1 root root 197860 Oct 16 08:40 pxegrub
-rw-r--r-- 1 root root 12864 Oct 16 08:40 reiserfs_stage1_5
-rw-r--r-- 1 root root 33856 Oct 16 08:40 splash.xpm.gz
-rw-r--r-- 1 root root 512 Oct 16 08:40 stage1
-rw-r--r-- 1 root root 135148 Oct 16 08:40 stage2
-rwxr-xr-x 1 root root 196900 Oct 16 08:40 stage2.netboot
-rw-r--r-- 1 root root 8896 Oct 16 08:40 vstafs_stage1_5
-rw-r--r-- 1 root root 12840 Oct 16 08:40 xfs_stage1_5
/boot/lost+found:
total 0 |
Now this looks like what you may want.
Got any ideas?
Thanks. _________________ "Beer is proof God loves us, and wants us to be happy. Ben Franklin" |
|
Back to top |
|
|
vpupkind n00b
Joined: 18 Oct 2004 Posts: 2
|
Posted: Mon Oct 18, 2004 4:26 am Post subject: Grub Error 21 |
|
|
I have an x86_64 system (Athlon 3000+, Gigabyte K8NSPro MB, 160G WD harddisk on primary IDE).
I tried installing with 2004.2, but /dev/hda was not detected there.
I am using the 2004.1 livecd, and downloading stages off the net. I am perfectlyable to reach the reboot point this way (i.e. after installing Grub),
however whatever I do it stops with error 21
my fstab is a standard one with 128MB /dev/hda1 as ext2, 768MB /dev/hda2 as swap, and everything else (i.e. ~159G) in /dev/hda3 as / (ext3)
Thanks in advance! |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Mon Oct 18, 2004 9:55 am Post subject: |
|
|
Error 21 being: Disk does not exist? Can you post your grub.conf? _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
|
|
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
|
|