From owner-freebsd-hackers Thu Nov 13 16:06:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA05650 for hackers-outgoing; Thu, 13 Nov 1997 16:06:26 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from fission (fission.dt.wdc.com [129.253.40.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA05635 for ; Thu, 13 Nov 1997 16:06:15 -0800 (PST) (envelope-from kehlet@dt.wdc.com) Received: from cygnus.dt.wdc.com (root@[172.31.1.2]) by fission (8.7.1/8.7.1) with ESMTP id QAA15666; Thu, 13 Nov 1997 16:06:11 -0800 (PST) Received: from mockingbird.dt.wdc.com (mockingbird [172.31.10.16]) by cygnus.dt.wdc.com (8.7.1/8.7.1) with ESMTP id QAA26313; Thu, 13 Nov 1997 16:06:07 -0800 (PST) Received: from localhost (kehlet@localhost) by mockingbird.dt.wdc.com (8.8.5/8.8.5) with SMTP id QAA04483; Thu, 13 Nov 1997 16:04:31 -0800 (PST) X-Authentication-Warning: mockingbird.dt.wdc.com: kehlet owned process doing -bs Date: Thu, 13 Nov 1997 16:04:31 -0800 (PST) From: Steven Kehlet To: Julian Elischer cc: hackers@freebsd.org Subject: Re: diskless freebsd, can't mount local msdos disk In-Reply-To: <346B9081.15FB7483@whistle.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hmm, "mount -t msdos" doesn't work. I thought "mount" was just a wrapper for "mount_" anyway.. # mount -t msdos /dev/wd0s1 /mnt msdos: /dev/wd0s1: Invalid argument Oops, yeah, I forgot about fdisk being weird (I suppose this definitely shows there's a problem... ;-)): # fdisk fdisk: Can't get disk parameters on /dev/rwd0; supplying dummy ones ******* Working on device /dev/rwd0 ******* parameters extracted from in-core disklabel are: cylinders=1 heads=1 sectors/track=1 (1 blks/cyl) parameters to be used for BIOS calculations are: cylinders=1 heads=1 sectors/track=1 (1 blks/cyl) fdisk: Invalid fdisk partition table found Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 0 is: The data for partition 1 is: The data for partition 2 is: The data for partition 3 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 1, size 0 (0 Meg), flag 80 beg: cyl 1/ sector 1/ head 0; end: cyl 0/ sector 0/ head 0 Hmm, now why wouldn't it be able to get the disk parameters? (these are wrong, of course--there is one DOS partition on this disk). Steve On Thu, 13 Nov 1997, Julian Elischer wrote: > Date: Thu, 13 Nov 1997 15:42:57 -0800 > From: Julian Elischer > To: Steven Kehlet > Cc: hackers@freebsd.org > Subject: Re: diskless freebsd, can't mount local msdos disk > > Steven Kehlet wrote: > > > > I'm booting FreeBSD 2.2.5 diskless with the kernel's BOOTP features. > > It detects the local hardware just fine (e.g. ethernet (obviously), > > hard drive, floppy, etc), but if I try to mount the local msdos disk > > like I would on a non-diskless station, it doesn't work. Floppy > > operations (mounting, hexdumping, fdwriting) seem to work, however. > > Anyone know what's wrong, or have any suggestions what I could do? If > > I can give any more information, please let me know. > > > > wdc0 at 0x1f0-0x1f7 irq 14 on isa > > wdc0: unit 0 (wd0): > > wd0: 3098MB (6346368 sectors), 6296 cyls, 16 heads, 63 S/T, 512 B/S > > > > # foreach i (1 2 3 4) > > ? mount_msdos /dev/wd0s$i /mnt > > use mount -t msdos > > does wd0 have 4 DOS slices on it? > what does '/sbin/fdisk' have to say about it? > do those partitions appear in /dev? > > > > ? end > > mount_msdos: /dev/wd0s1: Invalid argument > > mount_msdos: /dev/wd0s2: Invalid argument > > mount_msdos: /dev/wd0s3: Invalid argument > > mount_msdos: /dev/wd0s4: Invalid argument > > # > > > > The msdos module loaded okay: > > > > mockingbird:/home/kehlet-> modstat > > Type Id Off Loadaddr Size Info Rev Module Name > > MISC 0 0 f43ea000 0008 f43eb000 1 blank_saver_mod > > VFS 1 4 f442f000 001c f4435090 1 msdos > > > > Weird, too, if I try to hexdump the raw disk, nothing comes up: > > > > # hd -v /dev/rwd0 |more > > # > > > > Thanks a ton, > > > > Steve Kehlet > > >