Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Mar 2001 20:20:10 -0800 (PST)
From:      "Mark J. Miller" <mjmiller@uclink4.berkeley.edu>
To:        Otter <otterr@telocity.com>
Cc:        <freebsd-questions@freebsd.org>
Subject:   RE: formatting a slice for msdos 
Message-ID:  <Pine.BSF.4.33.0103241951170.84683-100000@soda.csua.berkeley.edu>
In-Reply-To: <000501c0b4d9$e2616330$1401a8c0@zoso>

next in thread | previous in thread | raw e-mail | index | archive | help


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     <none>        1498MB DOS
ad0s2a    <none>          50MB *
ad0s2b    swap           260MB SWAP
ad0s2e    <none>          20MB *
ad0s2f    <none>        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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0103241951170.84683-100000>