From owner-freebsd-questions Sat Jan 13 10:21:58 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA06325 for questions-outgoing; Sat, 13 Jan 1996 10:21:58 -0800 (PST) Received: from chemserv.umd.edu (chemserv.umd.edu [129.2.64.40]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id KAA06320 for ; Sat, 13 Jan 1996 10:21:54 -0800 (PST) Received: from cappuccino.eng.umd.edu (cappuccino.eng.umd.edu [129.2.98.14]) by chemserv.umd.edu (8.7.3/8.7) with ESMTP id NAA05798; Sat, 13 Jan 1996 13:21:42 -0500 (EST) Received: (chuckr@localhost) by cappuccino.eng.umd.edu (8.7.3/8.6.4) id NAA02248; Sat, 13 Jan 1996 13:21:42 -0500 (EST) Date: Sat, 13 Jan 1996 13:21:41 -0500 (EST) From: Chuck Robey X-Sender: chuckr@cappuccino.eng.umd.edu To: Dave Thaler cc: questions@freebsd.org Subject: Re: mount_msdos problems under 2.1 In-Reply-To: <199601131704.MAA20480@armidale.ann-arbor.mi.us> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk On Sat, 13 Jan 1996, Dave Thaler wrote: > I recently upgraded the kernel from 2.0.5 to 2.1. /etc/fstab looks like this: > > /dev/sd0a / ufs rw 1 1 > /dev/sd0f /dos msdos rw 1 1 > /dev/sd0e /usr ufs rw 1 1 > /dev/sd0b none swap sw 0 0 > proc /proc procfs rw 0 0 > > Now under a 2.0.5 kernel, the dos partition is mounted correctly. I did > upgrade the mount utilities as well, but the 2.1 kernel fails to mount the > dos partition. Manually invoking mount_msdos reports: > > # mount_msdos /dev/sd0f /dos > mount_msdos: mount: Invalid argument [bunch of error lists deleted] Use the newer 'slice' semantics. On my machine n3lxx, my FreeBSD installation is the first partition on the disk, and I mount the dos partition with: mount -t msdos /dev/sd0s1 /dos On my other (older) machine, dos is in the third of 4 partitions, so to do the same mount, I issue: mount -t msdos /dev/sd0s3 /dos When I want to refer to one of the BSD partitions, say what you name sd0a above, and on n3lxx its on the 2nd slot of the partition, I refer to /dev/sd0s2a. This means first (zeroth) disk, second partition slot (this number isn't 0 based, to better confuse you), and the 'a' BSD partition. Just to make things real clear, the machine's partition table holds only 4 partitions, so if you go looking in /dev, you'll only see entries for sd0s1, sd0s2, sd0s3, and sd0s4. Probably only your FreeBSD partition will have the BSD devices like sd0s2a. ============================================================================ Chuck Robey chuckr@eng.umd.edu -- I run FreeBSD on n3lxx and Journey2 --------------------------------------------------------------------------- The Dilbert Zone is Dilbert's new WWW home! The area features never-before-seen original sketches of Dilbert, a photo tour of Scott Adams' studio, Dilbert Trivia and memorabilia, high school photos and much more!: