From owner-freebsd-questions Sat Mar 24 20:20:13 2001 Delivered-To: freebsd-questions@freebsd.org Received: from soda.csua.berkeley.edu (soda.CSUA.Berkeley.EDU [128.32.43.52]) by hub.freebsd.org (Postfix) with ESMTP id 750C337B71A for ; Sat, 24 Mar 2001 20:20:10 -0800 (PST) (envelope-from mjmiller@uclink4.berkeley.edu) Received: from localhost (mjm@localhost) by soda.csua.berkeley.edu (8.11.1/8.11.1) with ESMTP id f2P4KA087131; Sat, 24 Mar 2001 20:20:10 -0800 (PST) (envelope-from mjmiller@uclink4.berkeley.edu) X-Authentication-Warning: soda.csua.berkeley.edu: mjm owned process doing -bs Date: Sat, 24 Mar 2001 20:20:10 -0800 (PST) From: "Mark J. Miller" X-X-Sender: To: Otter Cc: Subject: RE: formatting a slice for msdos In-Reply-To: <000501c0b4d9$e2616330$1401a8c0@zoso> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 24 Mar 2001, Otter wrote: >> >> What I'd like is to have a FAT slice here, with only 1 partition, >> primarily for storing MP3s and such. I tried "newfs_msdos >> /dev/ad0s1", >> but that gave me: >> >> /dev/ad0s1: 3062336 sectors in 382792 FAT32 clusters (4096 >> bytes/cluster) >> bps=512 spc=8 res=32 nft=2 mid=0xf8 spt=63 hds=255 hid=63 >bsec=3068352 >> bspf=2991 rdcl=2 infs=1 bkbs=2 >> newfs_msdos: /dev/ad0s1: Read-only file system >> >> Any advice appreciated. >> >Go fire up /stand/sysinstall. Let the menu guide you until you learn >the command line tools. sysinstall doesn't help, and doesn't tell me what it's doing. Here's what the fdisk tool in it reports: DISK Geometry: 784 cyls/255 heads/63 sectors = 12594960 sectors Offset Size End Name PType Desc Subtype Flags 0 63 62 - 6 unused 0 63 3068352 3068414 ad0s1 2 fat 6 3068415 9526545 12594959 ad0s2 3 freebsd 165 C The disk label tool reports this: Disk: ad0 Partition name: ad0s2 Free: 0 blocks (0MB) Part Mount Size Newfs Part ---- ----- ---- ----- ---- ad0s1 1498MB DOS ad0s2a 50MB * ad0s2b swap 260MB SWAP ad0s2e 20MB * ad0s2f 4320MB * Using the commands 'n' (newfs options) or 't' are forbidden for slice 1. Mounting /dev/ad0s1 reveals that the partition size is only 50M, rather than 1.5 Gigs: % df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s2a 49583 35117 10500 77% / /dev/ad0s2f 4287581 3103516 841059 79% /usr /dev/ad0s2e 19815 6844 11386 38% /var procfs 4 4 0 100% /proc /dev/ad0s1 49583 28265 17352 62% /msdos I should note that I'm doing this from the default run level; I'm not sure how to get to singe user mode. Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message