From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A35F5138A1F for ; Sat, 19 Apr 2014 05:09:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 19DD7E09EE; Sat, 19 Apr 2014 05:09:29 +0000 (UTC) Received: from ccs.covici.com (ccs.covici.com [70.109.53.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E3D14E09C5 for ; Sat, 19 Apr 2014 05:09:26 +0000 (UTC) Received: from ccs.covici.com (localhost [127.0.0.1]) by ccs.covici.com (8.14.8/8.14.7) with ESMTP id s3J59PtA025845 for ; Sat, 19 Apr 2014 01:09:25 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Strange behaviour with LILO on new install on old laptop In-reply-to: <20140419045237.GA31969@waltdnes.org> References: <20140419045237.GA31969@waltdnes.org> Comments: In-reply-to "Walter Dnes" message dated "Sat, 19 Apr 2014 00:52:37 -0400." X-Mailer: MH-E 8.2; nmh 1.3; GNU Emacs 23.4.1 Date: Sat, 19 Apr 2014 01:09:25 -0400 Message-ID: <25843.1397884165@ccs.covici.com> From: covici@ccs.covici.com Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Archives-Salt: 18216d11-9831-4e86-a64a-7ea34a994053 X-Archives-Hash: 9840f8618e9a8eeb0d34e8ccd6a895cb Walter Dnes wrote: > I just finished installing Gentoo on an older AMD laptop. There was > one major problem that I hacked around, and things appear to be working > OK, but I still get warnings when installing lilo. > > When I first did the install, I got the warning message... > "Could not determine root partition!". I ran lilo and rebooted, but got > a kernel panic, because the kernel couldn't find the boot device. I dug > into this. Apparently the lilo ebuild tries to outsmart the user, and > figure out the root partition itself, with the bash syntax... > > rootpart="$(mount | grep -v "tmpfs" | grep -v "rootfs" | grep "on / " | cut -f1 -d " ")" > > I don't know if I screwed up during the install, but *IN THE CHROOT*, > mount returns a null string. I remembered vaguely that "mount" returns > the contents of /etc/mtab. I looked at it, and /etc/mtab was also > empty. I applied the "rootpart=" stuff against another machine, and > found out which line it homed in on. I manually edited /etc/mtab in > the chroot, inserting the short line... > > 805 > > ...Then I emerged lilo again. This time I got... > > ##################################################################### > >>> Installing (1 of 1) sys-boot/lilo-23.2-r2 > > * Checking for LILO ... Yes, on /dev/sda > * Running DOLILO to complete the install ... > You can move /etc/conf.d/dolilo.example to /etc/conf.d/dolilo and edit it to set your preferences. > fdisk: cannot open 80: No such file or directory > fdisk: cannot open 80: No such file or directory > Bootsector updated succesfully. > ##################################################################### > > The important part is that the laptop now boots up OK. However, when I > re-install lilo, on the natively-booted laptop, I still get the above > messages. I'm using the same partitioning scheme and fstab that I've > been using for years without problems. Here they are... > > outfput from "fdisk -l" > ##################################################################### > Disk /dev/sda: 320.1 GB, 320072933376 bytes, 625142448 sectors > Units = sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > Disk identifier: 0x612cf108 > > Device Boot Start End Blocks Id System > /dev/sda1 2048 625142447 312570200 5 Extended > /dev/sda5 4096 618495 307200 83 Linux > /dev/sda6 620544 17397759 8388608 83 Linux > /dev/sda7 17399808 625142447 303871320 83 Linux > ##################################################################### > > /etc/fstab > ######################################################################### > /dev/sda5 / ext2 noatime,nodiratime,async 0 1 > /dev/sda7 /home ext3 noatime,nodiratime,async 0 1 > /home/bindmounts/opt /opt auto bind 0 0 > /home/bindmounts/var /var auto bind 0 0 > /home/bindmounts/usr /usr auto bind 0 0 > /home/bindmounts/tmp /tmp auto bind 0 0 > /dev/sda6 none swap sw 0 0 > /dev/cdrom /mnt/cdrom iso9660 noauto,users,ro 0 0 > /dev/sr0 /mnt/dvd auto noauto,users,ro 0 0 > > devpts /dev/pts devpts defaults 0 0 > ######################################################################### > > Any ideas? I don't let theebuild muck with lilo.conf,I edit it myself, so the root is no problem -- its an initrd anyway. -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com