From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 111c93,2b9ca1a5577d2a3 X-Google-Attributes: gid111c93,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!feed.news.tiscali.de!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!proxad.net!easynet-monga!easynet.net!news-peer-lilac.gradwell.net!not-for-mail Message-ID: Date: Wed, 19 Jan 2005 01:19:58 +0000 From: John Beardmore Newsgroups: comp.os.linux.alpha Subject: Re: Getting aboot to boot without panic mounting root References: <+6K2$EDAMG3BFwiP@wookie.demon.co.uk> <2sKU6sIx+C7BFwCZ@wookie.demon.co.uk> <+LMmTVNqoU7BFwhK@wookie.demon.co.uk> Organization: the Saab graveyard ! MIME-Version: 1.0 Content-Type: text/plain;charset=us-ascii;format=flowed User-Agent: Turnpike/6.04-U () NNTP-Posting-Date: 19 Jan 2005 01:26:31 GMT NNTP-Posting-Host: 81.187.247.166 X-Trace: 1106097991 news.aaisp.net.uk 23051 81.187.247.166 X-Complaints-To: aaispnews-abuse@gradwell.net Xref: g2news1.google.com comp.os.linux.alpha:543 In message , Michal Jaegermann writes >John Beardmore wrote: >> >> Maybe a dd too far... > >Or maybe not enough. One would have to dig through various >sources to check what is really tried and where. > >> It looks as if that dd splats over the disk >> label. > >Well, yes. That is why I wrote "before you install anything". >Disklabel sits on a sector zero, after that you have some gap >followed by a bootstrap loader you add there with swriteboot. >Partitioned part of a disk with file systems comes further down. >You may skip sector zero in dd if you are doing such things >on a "live" system but here we are coming into "don't do that >at home" area. It's not live - only being built... >It goes without saying that for booting of that sort your boot >disk needs "BSD type" partitioning or your firmware, i.e. SRM, >will have no idea where to look for various bits and pieces >on that device. Yes. >> No matter - that was trivially fixed. None the less, the >> original problem remains. Curious ! > >Now you are trying to mount your root file system based on what >is found in what _looks like_ a superblock of your root file >system. Quite far beyond what you zeroed out. Either there is >something funny there or your partition table information is not >really correct. Partition tables and Disklabel were both written by fdisk from current Gentoo. > At least some variants of fdisk, IIRC, and >maybe mkdisklabel too, were spooked and confused by old >leftovers and that is why I suggested to clobber a disklabel >location too. OK. > With "recycled" disks a prudent course of action >is to "dd if=/dev/zero ..." all over before trying to install >and reuse as a boot device. Not that this would necessarily >solve your trouble but at least would eliminate some >possibilities. Yes. >If you insist on trying to recover your current installation >than possibly booting into initrd and mounting a root file >system from there could turn out easier as you have a better >control over what you are executing from there. That would be a largely academic exercise. I've kept the disk 'just in case', but have now put in a spare, zapped the first gig to zeros and installed Debian off the net. That seems to be going OK with a few reservations about video drivers which may take some sorting. > If you have a >bootable CD which gives you a ramdisk with some workable system >you can try to mount your intended root file system from there. mount /dev/sda1 /mnt/gentoo has always worked fine oddly enough. It only seems to be a problem when booting off the HD. >Does it work? Do you have to pass something like '-t ext3' to >mount before that is possible? No, it sorts it automatically and perfectly. > If you managed to mount then >does a file system structure looks healthy? This is just a >"sanity check". Perfect. Fsck of the unmounted /dev/sda1 is happy too. Many thanks for all your help with this. Now that Deb has installed, it is as I say all a bit academic, but I'm still curious to identify the problem, especially if it's related to the kernel config. If it is, I don't want to repeat it when messing with Debian as I'll no doubt be building it a kernel to bring all the CPUs on line. Cheers, J/. -- John Beardmore