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!news2.google.com!news.glorb.com!cyclone.bc.net!tabloid.srv.ualberta.ca!not-for-mail From: Michal Jaegermann Newsgroups: comp.os.linux.alpha Subject: Re: Getting aboot to boot without panic mounting root Date: Tue, 18 Jan 2005 19:24:53 +0000 (UTC) Organization: Disorganized Bits Message-ID: References: <+6K2$EDAMG3BFwiP@wookie.demon.co.uk> <2sKU6sIx+C7BFwCZ@wookie.demon.co.uk> <+LMmTVNqoU7BFwhK@wookie.demon.co.uk> NNTP-Posting-Host: gortel.phys.ualberta.ca X-Trace: tabloid.srv.ualberta.ca 1106076293 16763 129.128.7.128 (18 Jan 2005 19:24:53 GMT) X-Complaints-To: abuse@ualberta.ca NNTP-Posting-Date: Tue, 18 Jan 2005 19:24:53 +0000 (UTC) User-Agent: tin/1.5.13-20020614 ("Sugar") (UNIX) (Linux/2.4.20-35a.7.legacy (i686)) Xref: g2news1.google.com comp.os.linux.alpha:542 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 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. > 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. 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. 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. 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. 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. Does it work? Do you have to pass something like '-t ext3' to mount before that is possible? If you managed to mount then does a file system structure looks healthy? This is just a "sanity check". Michal