*** sfr (^sfr) has joined channel #ozlabs sfr! groggy: get grub sorted out? sfr: No. strange sfr: Take a look at http://www.lemis.com/grog/diary.html and tell me what I'm doing wrong. sfr: It panics trying to mount the root file system. I am not sure I would know. sfr: But the specs are the same as for the 2.4 kernel, which boots fine. I was inspired to change from lilo to grub yesterday and it just worked ... * groggy wonders if there's code in Debian to detect BSD hackers. groggy: but there is Debian/BSD ... sfr: Are you taking me seriously again? never! :-) groggy: what does " [Format recovered--see http://www.lemis.com/email/email-format.html]" at the top of your diary page mean? sfr: Means I've stuffed up my diary :-( * groggy recovers his diary format. sfr: OK, fixed. :-) sfr: dkaiser thinks that the problem mounting root might be related to devfs. What do you think? sfr: I built the kernel with the standard parameters; make oldconfig; make. from a bare kernel tree, "make oldconfig" gives you a default config, not an all encompassing one it use to be Linus' config, but he mainly uses his g5 these days ... Yes, exactly what I was looking for. So it shouldn't do anything funny. I'm really puzzled by why this is so difficult. groggy: did you try the devfs=nomount argument for the kernel boot? also. since you can't boot the stock 2.4 kernel that came with the distribution, i don't really think devfs is an issue at this moment dkaiser: No, still wondering whether that would be the case. You see what I was saying to sfr? dkaiser: And I was wrong: I can boot the 2.4 kernel. oh, ok http://www.lemis.com/grog/diary.html i hadn't read the url yet VFS: Cannot open root device "hda1" or unknown-block(0,0) *** tpot (^tpot) has joined channel #ozlabs groggy: what is listed as the root in menu.lst? dkaiser: Not sure what you're referring to. oh, it's in the diary, nevermind. kernel /boot/vmlinuz-2.6.12.3 root=/dev/hda1 ro groggy: well, if 2.4 boots, you'd best figure out why 2.6 cannot find /dev/hda1 i may think again that devfs is built-in and enabled by default groggy: what is your disk controller? dkaiser: I hope it isn't on 2.6 ... devfs has been deprecated on 2.6 ... * groggy digs through unfamiliar dmesg output. What should I be looking for? devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au) devfs: boot_options: 0x0 That's 2.4. NFORCE2: IDE controller at PCI slot 00:09.0 NFORCE2: chipset revision 162 NFORCE2: not 100% native mode: will probe irqs later NFORCE2: BIOS didn't set cable bits correctly. Enabling workaround. NFORCE2: BIOS didn't set cable bits correctly. Enabling workaround. ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx NFORCE2: 00:09.0 (rev a2) UDMA133 controller ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA hda: WDC WD2000JB-00GVC0, ATA DISK drive blk: queue f8829720, I/O limit 4095Mb (mask 0xffffffff) hdc: PIONEER DVD-RW DVR-108, ATAPI CD/DVD-ROM drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 ide1 at 0x170-0x177,0x376 on irq 15 hda: attached ide-disk driver. hda: 390721968 sectors (200050 MB) w/8192KiB Cache, CHS=24321/255/63, UDMA(100) so did you get anything similar when you booted the 2.6 kernel i.e. I wonder if that driver is in your 2.6 kernel at all ... (the NFORCE2 bit, I mean) ah... /me thinks sfr is onto something here Well, it got quite a way through the boot. I'll go and check. thanks But wouldn't it make more sense to check the kernel config file first? also you should install module-ini-tools and udev before you boot 2.6 ... # CONFIG_I2C_NFORCE2 is not set But that's I2C. if you can, yes, check the config right And the only mention of NFORCE2. Nothing in the section # IDE chipset support/bugfixes reaches out and grabs me. groggy: is this x86_64? No, Athlon XP+. Normal ia32. groggy: I have a config, but it's for x86_64 I deliberately avoided amd64 for this sort of reason :-) === root@deeveear (/dev/pts/1) /usr/src/linux/linux-2.6.12.3 4 -> make xconfig * * Unable to find the QT installation. Please make sure that the * QT development package is correctly installed and the QTDIR *sigh* try make menuconfig .. === root@deeveear (/dev/pts/1) /usr/src/linux/linux-2.6.12.3 5 -> make menuconfig >> You must install ncurses-devel in order >> to use 'make menuconfig' apt-get install ncurses-devel Why is there *nothing* of use in these 2 GB of installed stuff/ Just GNOME and other useless stuff. make gconfig good luck :-) * Unable to find the GTK+ installation. Please make sure that * the GTK+ 2.0 development package is correctly installed... * You need gtk+-2.0, glib-2.0 and libglade-2.0. * bje hands groggy a FreeBSD CD bje: Thanks. bje: you are on holidays - no enjoying yourself :-) why do you need a graphical config anyway? groggy: want a copy of my config? === root@deeveear (/dev/pts/1) /usr/src/linux/linux-2.6.12.3 9 -> apt-get install ncurses-devel Reading Package Lists... Done Building Dependency Tree... Done E: Couldn't find package ncurses-devel Rasmus: Because I hate hitting "Return" so often. just edit the file and then run make oldconfig, or bad things will happen ... Rasmus: There's nothing to edit. groggy: what was sfr thinking. libncurses5-dev is the one you need delete the lines you want to re-visit and then run "make oldconfig" again dwg: thanks You don't have a .config? groggy, CONFIG_BLK_DEV_AMD74XX=y ? mpe: Thanks. But that wasn't sfr's fault, that was the error message telling me to install the wrong name. CONFIG_BLK_DEV_AMD74XX=m tee hee mpe: How did you choose that particular entry? Media Change: Please insert the disc labelled 'Debian GNU/Linux 3.1 r0a _Sarge_ - Official i386 Binary-1 (20050607)' in the drive '/cdrom/' and press enter Grrr! It's in there! cause the help say it provides support for the nvidia nforce2 so you do have a .config you can edit mpe: Ah. That's why I was looking for the menu-based config. or zcat /proc/config.gz Assuming your kernel has kconfig support So why do I have to mount the DVD manually before I can install anything? You don't setuid: I do. Then you broke something ;) groggy: just sent a config file setuid: I installed Debian. Linux version 2.6.12.3 (root@angst) (gcc version 4.0.1 (Debian 4.0.1-2)) #3 Tue Jul 19 16:56:57 EDT 2005 I downloaded the kernel from kernel.org. groggy, you can just grep in drivers/ide/Kconfig Ran make oldconfig, make config, make install. I've never built a kernel like that mpe: Anyway, there's a module there. Won't it load it on demand? setuid: I have. setuid: And it's what sfr recommended. * groggy wonders why everybody has a different way to build and install a kernel. How does it back up your old kernel and re-edit menu.lst? Which kernel does it make the default? Where does it put System.map? setuid: Read http://www.lemis.com/grog/diary.html. setuid: This is the third day of trying just to *install* the bloody system. I've installed Debian at least 50 times this year alone Millions of kids around the world has managed to figure it out And I've never had trouble, except when I burned the cd/dvd incorrectloy groggy, make && sudo make modules_install && sudo make install && sudo update-grub dwg: Thanks. Rasmus: Maybe you need to be a kid. perhaps Seriously, I've never had anything like this much trouble before. So: * setuid notes that Debian works fine So you're doing something non-standard How many of you have installed Debian Sarge from the DVD? * sfr remembers that his recommendation was tongue-in-cheek ... groggy: we all install using rsync :-) I usually just download a boot image and do a network install sfr: FWIW, I really have done this several times before. groggy: I know - after all you are older than I am :-) *** Signoff: setuid (Quit: other job) OK, if I use aptitude to install packages, how do I find the 2.6 kernel? base? Yup. OK, installing a kernel from the DVD. * Rasmus wonders what the heck aptitude is aptitude is some reverse video interface to apt*. Rasmus: dselect with attitude :-) * groggy squints at the illegible display. sfr: Should I be using dselect instead? groggy: my son thinks syanptic is OK apt-cache search kernel-image-2.6 groggy: I would not remmoend that to anyone - but I use it ... s/remmoend/recommend/ (or some such spelling :-)) Rasmus: I've found it. But I still need to decide what the difference is between kernel-image-2.6-k7 and kernel-image-2.6.8.11-k7 kernel-image-2.6-k7 is probably a "wrapper" package that probably depends on kernel-image-2.6.8.11-k7 hmmm, Depends: kernel-image-2.6.8-2-k7 Grr. I can't mark the text. in Debian unstable ... Why does it tell me to install kernel-package and then not offer it? " This package will always depend on the latest 2.6 kernel image available for AMD Duron/Athlon." * mpe thinks we should all chip in to buy groggy a free ubuntu cd mpe: I have one. not for a server surely ... chris suggested that I install Debian, not Ubuntu. Anyway, this should work. groggy: which text can't you mark? The best I can guess is that the Sarge installation process is broken. sfr: Anything in aptitude. ahhh sfr: It's an ncurses app, it seems, but it's grabbed the mouse. Grrr. Now I have the DVD in the drive, it's mounted on the correct mount point, and it keeps reprompting me to install it. groggy: unmount it ? :-) Ah, no, it did so last time. Why do I have to mount it manually? groggy: we don't know You already have a LILO configuration in /etc/lilo.conf Install a boot block using the existing /etc/lilo.conf? [Yes] *sigh* I'm booting with GRUB. * sfr wonders if he will hear back from theplanet.com after reporting one of their users trying to break into ozlabs.org ... sfr: Unlikely. sfr: How were they trying to do it? And of course it hasn't updated the grub files :-( one of the ssh password guessing scripts ... sfr: Yes, I'm getting them all the time. We should write a script that firewalls IP addresses after n attempts so do we, these irritated me though because there revers DNS gives bad names so I got thousands of entries in the logs ... groggy: I think there is a netilter module that does just that ,,, OK, how do I tell grub to update its bootstrap? s/til/tfil/ ? I've installed a new kernel. grub doesn't know about it. update-grub Thanks. yoo know that from the grub prompt (when booting), you can boot any file you can fine ... s/fine/find/ * groggy wonders why his box still thinks it's in localhost.localdomain after it knows bloody well it's in lemis.com. ... as long as you know the incantation. Good to know, though. groggy: of course :-) OK, let's try to boot the new kernel. * groggy crosses his fingers. *** hughhalf (^hugh) has joined channel #ozlabs groggy: at some point you probably should remove lilo the kernel install scripts may be confused by the fact that you have both lilo and grub installed I don't know, sorry - I will have a look keith is pretty sure we don't ... Grrr! It's gone and overwritten my GRUB bootstrap without asking me. You already have a LILO configuration in /etc/lilo.conf Install a boot block using the existing /etc/lilo.conf? [Yes] did you answer no? sfr: Sure, but it was lying. sfr: Ah, OK. nto if you have /etc/lilo.conf did it boot> ? Yes, but it didn't give me a choice of kernel. but did it boot your new kernel? * groggy has spent 3 days trying to do something that shouldn't even require manual intervention. sfr: It booted the kernel I just installed. 2.6.8. I have a 2.6.11 kernel there, and I have no idea how to boot it. well? :-) ahh Because the 'make install foomagic' incantations don't seem to work. what does /vmlinuz point at> ? The new kernel. oh you mean 2.6.8 or 2.6.11? 2.6. OK, I'll read the LILO man page and see if I can get something going there. So what kernel make target updates these symlinks? maybe make install which should run /sbin/installkernel OK, running. GRUB is installed. To automatically switch to new kernels, point your default entry in menu.lst to /boot/arch/i386/boot/bzImage-2.6.12.3 *sigh* *** jk (^jk) has joined channel #ozlabs :-) No change to the symlink. grub doesn't use the symlinks But can't I just change lilo.conf? One point to grub. yes you can The thing is, the message is wrong. At the moment I have LILO again. but that is hard to guess if you have both installed After I spent 90 minutes installing GRUB, working around the floppy breakage. you would have to find the boot block signature ... So it shouldn't try to guess. so, why did you move from lilo? dkaiser recommended to do so. aahhh, I would as well - if it will work for you ... * groggy decides that grub is a can of worms. it has advantages not a can fo grubs :-) groggy: Yes, I stuck with Lilo myself for similar reasons hughhalf: Thanks for the info. *** Signoff: Rasmus (Quit: Rasmus) groggy: I'm afraid it was one of these things where I could see it was more flexible, but I just needed something simple to boot my kernel with :) ah bsd - 14 lines of copyright notices when logging in to a HPUX box *** Geo (^keith) has joined channel #ozlabs tpot: BSD? groggy: I found grub was a bitch to install, though it's been trouble free thereafter. ok, BSD licenced code then dwg: I only got to the first stage. groggy: these days I just make sure I have a backup copy of the whole mbr - if something clobbers grub, I just dd that back. hughhalf: OK Thanks tpot: Right, lawyers. dwg: Been there, done that. But you still need to get the machine up and stumbling.