View previous topic :: View next topic |
Author |
Message |
madchaz l33t
Joined: 01 Jul 2003 Posts: 993 Location: Quebec, Canada
|
Posted: Sun May 24, 2009 6:30 pm Post subject: l 02 error on boot[Solved, kinda] |
|
|
Hello everyone
running into a bit of an issue on the new server I am building. Earlier, I had a lot of problems with one of my network cards. This led me to trying enough things to get it working that I felt it would be simpler to just trash the OS and build from scratch once I had found the problem (one of my network cards was suffering a slow and painful death)
Got the entire base gentoo system installed and now I installed my boot loader of choise, lilo. I reboot and get l 02
all I can find on google is that 02 means a media issue and to re-install lilo and try again. This leads me back to l 02 so ...
anyone as an idea? _________________ Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it.
www.madchaz.com A small candle of a website. As my lab specs on it.
Last edited by madchaz on Mon Jun 01, 2009 3:23 am; edited 1 time in total |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
|
Back to top |
|
|
madchaz l33t
Joined: 01 Jul 2003 Posts: 993 Location: Quebec, Canada
|
Posted: Mon May 25, 2009 2:03 pm Post subject: |
|
|
I don't get as far as he does. /boot is ext2 (compile in the kernel, not as a module)
His issue is he forgot to edit /etc/fstab
I don't get off the lilo loader, so I am not even at loading the kernel yet. _________________ Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it.
www.madchaz.com A small candle of a website. As my lab specs on it. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon May 25, 2009 6:04 pm Post subject: |
|
|
boot a cd, substitute your boot partition device name for /dev/sda1 if necessary, run:
Code: | tune2fs -l /dev/sda1 | grep -i "inode size" |
If the return is or any value not 128.
you will need either: a version of LILO that handles non 128 inode size
or: backup /boot, remake the /boot file system specifying Code: | mke2fs -I 128 /dev/sda1 | restore /boot backup |
|
Back to top |
|
|
madchaz l33t
Joined: 01 Jul 2003 Posts: 993 Location: Quebec, Canada
|
Posted: Tue May 26, 2009 7:23 pm Post subject: |
|
|
Code: | livecd ~ # tune2fs -l /dev/hdb1 | grep -i "inode size"
Inode size: |
guess it's 128. anyone else as an idea?
Edit: I am making a copy of the install to another drive and will try it there. Maybe the hd is defective
Edit2: Same issue after the copy _________________ Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it.
www.madchaz.com A small candle of a website. As my lab specs on it. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue May 26, 2009 10:26 pm Post subject: |
|
|
did you really receive a blank instead of a value for inode size?
Code: | tune2fs -l /dev/hdb1 |
the whole output should look like:
Quote: | oddman ~ # tune2fs -l /dev/hdb1
tune2fs 1.41.3 (12-Oct-2008)
Filesystem volume name: <none>
Last mounted on: <not available>
Filesystem UUID: 11d595be-99b0-405b-adbf-99cf896215e9
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super
Filesystem flags: signed_directory_hash
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 26104
Block count: 104388
Reserved block count: 5219
Free blocks: 83849
Free inodes: 26055
First block: 1
Block size: 1024
Fragment size: 1024
Reserved GDT blocks: 256
Blocks per group: 8192
Fragments per group: 8192
Inodes per group: 2008
Inode blocks per group: 251
Filesystem created: Thu Jan 8 14:57:13 2009
Last mount time: Tue May 26 00:51:12 2009
Last write time: Tue May 26 00:51:12 2009
Mount count: 8
Maximum mount count: 26
Last checked: Tue May 12 13:47:18 2009
Check interval: 15552000 (6 months)
Next check after: Sun Nov 8 12:47:18 2009
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Journal inode: 8
Default directory hash: half_md4
Directory Hash Seed: 7f6ef0ac-a93e-43cc-8472-6b23bd97c921
Journal backup: inode blocks |
Still no value for Inode size: ????
What is on the a drive??
Suggest either:
boot the cd,
Code: | mount /dev/hdb3 /mnt/gentoo
mount /dev/hdb1 /mnt/gentoo/boot
cat /mnt/gentoo/etc/lilo.conf
fdisk -l
mount
cat /mnt/gentoo/etc/fstab |
and post the results.
And/Or:
You appear to be using an old install cd as evidenced by the use of /dev/hd__ nomenclature. You likely installed a current kernel, which barring extraordinary effort by you will be using /dev/sd__ nomenclature for all hard drives and /dev/sr__ for cd/dvd. Whether this can screw up LILO's mapping or not I don't know. It might be worthwhile to get a system rescue cd http://www.sysresccd.org/Download , boot it (rescue64 at the boot prompt for a 64 bit install) to a gui, open firefox next to the terminal window, browse here, and use copy and paste from browser to terminal to run:
Code: |
mke2fs -I 128 /dev/sdb1
mount /dev/sdb3 /mnt/gentoo
mount /dev/sdb1 /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" |
If you used make menuconfig, continue:
Code: | cd /usr/src/linux
make menuconfig
|
Or, if you used genkernel, continue:
Code: | genkernel --menuconfig all |
Edit the config as follows; except in the section I red highlighted, select your hard drive controllers with y (yes, <*>).
Quote: | Device Drivers --->
< > ATA/ATAPI/MFM/RLL support --->
SCSI device support --->
*** 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
|
Then if using make menuconfig:
Code: | make && make modules_install
cp arch/<your arch>/boot/bzImage /boot/<your kernel name> # substitute your values for <your arch> and <your kernel name> |
check /etc/lilo.conf and /etc/fstab are using /dev/sd__ nomenclature and are correct.
Code: | dolilo # or lilo
exit
reboot |
Written from my first lilo boot in five years :-) . |
|
Back to top |
|
|
madchaz l33t
Joined: 01 Jul 2003 Posts: 993 Location: Quebec, Canada
|
Posted: Sat May 30, 2009 1:43 pm Post subject: |
|
|
It was 128, I guess it's a copy/paste error.
Yes, I am using the 2008 CD as NONE of the new weekly build will properly boot on the system (keyboard refuses to work).
I really wish they would make a proper 2009 CD, as the auto-build process appears to be having a lot of issues. I guess I'll have to find another liveCD to boot of to do the install. _________________ Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it.
www.madchaz.com A small candle of a website. As my lab specs on it. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sat May 30, 2009 2:01 pm Post subject: |
|
|
Use the system rescue cd http://www.sysresccd.org/Download (rescue64 at the boot prompt for 64 bit). Gentoo based, current, GUI, firefox, grub, gparted ... |
|
Back to top |
|
|
madchaz l33t
Joined: 01 Jul 2003 Posts: 993 Location: Quebec, Canada
|
Posted: Mon Jun 01, 2009 3:23 am Post subject: |
|
|
using the system rescue CD didn't fix it, but it did help. I used the HD testing tool on it and realised I had no active partition on any disk. Having put the HD with the system on it back in master (sda), I used fdisk to mark sda1 as active. I also deleted an extra partion I wasn't using on the disk.
However, wanting to try ext4, I decided to make a backup of the install on the second disk and re-format the partition. As the backup did not get writen, I ended up doing a fresh install and I used grub instead. Not 100% sure what in this fixed it, but it boots now, so I'm marking as solved. _________________ Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it.
www.madchaz.com A small candle of a website. As my lab specs on it. |
|
Back to top |
|
|
|