NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

newfs_msdos says vnconfiged device read-only, newfs doesn't say so



On NetBSD 9.2 amd64, a vnconfig'ed device:

(/dev/vnd0 is configured using vnconfig on a raw format 2G image created
using qemu-img.)


    # disklabel /dev/vnd0
    # /dev/vnd0:
    type: vnd
    disk: vnd
    label: fictitious
    flags:
    bytes/sector: 512
    sectors/track: 32
    tracks/cylinder: 64
    sectors/cylinder: 2048
    cylinders: 2048
    total sectors: 4194304
    rpm: 3600
    interleave: 1
    trackskew: 0
    cylinderskew: 0
    headswitch: 0           # microseconds
    track-to-track seek: 0  # microseconds
    drivedata: 0 
    
    4 partitions:
    #        size    offset     fstype [fsize bsize cpg/sgs]
     a:   4194304         0     4.2BSD      0     0     0  # (Cyl.      0 -   2047)
     d:   4194304         0     unused      0     0        # (Cyl.      0 -   2047)
    disklabel: boot block size 0
    disklabel: super block size 0

newfs_msdos says it's read-only:

    # newfs_msdos -F 32 /dev/rvnd0a
    /dev/rvnd0a: 4186096 sectors in 523262 FAT32 clusters (4096 bytes/cluster)
    MBR type: 11
    bps=512 spc=8 res=32 nft=2 mid=0xf0 spt=32 hds=64 hid=0 bsec=4194304 bspf=4088 rdcl=2 infs=1 bkbs=2
    newfs_msdos: /dev/rvnd0a: Read-only file system

However newfs did not seem to complain:

    # newfs /dev/rvnd0a
    /dev/rvnd0a: 2048.0MB (4194304 sectors) block size 16384, fragment size 2048
            using 12 cylinder groups of 170.67MB, 10923 blks, 21504 inodes.
    super-block backups (for fsck_ffs -b #) at:
    32, 349568, 699104, 1048640, 1398176, 1747712, 2097248, 2446784, 2796320, 3145856, 3495392, 3844928,


I need a virtual msdos file system. Please advise.

-- 
Mayuresh


Home | Main Index | Thread Index | Old Index