On Mon, 22 Oct 2001 14:23:17 -0400 (EDT), Robert Watson wrote:
> 
> For small devices (unclear definition of small), the following (changed
> from swap to vnode from the mdconfig man page example) is broken:
> 
> sproing# dd if=/dev/zero of=foo bs=1024000 count=1
> 1+0 records in
> 1+0 records out
> 1024000 bytes transferred in 0.234674 secs (4363498 bytes/sec)
> sproing# mdconfig -a -t vnode -f foo
> md0
> sproing# disklabel -r -w md0 auto
> sproing# newfs /dev/md0c
> cylinder groups must have at least 2 cylinders
> [...]
> "large" devices (such as 128mb) work fine.  It's not clear to me what the
> actual breakage is here, since my knowledge of the FFS/device stuff is
> weak; however, it would be nice to be able to do what I'm trying to do.
> :-)

On my -current system rebuilt from the sources cvsup'ed 12 hours
ago:

root@notebook# dd if=/dev/zero of=foo bs=1024000 count=1
1+0 records in
1+0 records out
1024000 bytes transferred in 0.356797 secs (2869979 bytes/sec)
root@notebook# mdconfig -a -f foo
md0
root@notebook# disklabel -r -w md0 auto
root@notebook# newfs /dev/md0c
Warning: Block size restricts cylinders per group to 26.
Warning: 2096 sector(s) in last cylinder unallocated
/dev/md0c:      2000 sectors in 1 cylinders of 1 tracks, 4096 sectors
        1.0MB in 1 cyl groups (26 c/g, 52.00MB/g, 256 i/g)
super-block backups (for fsck -b #) at:
 32
root@notebook# mount /dev/md0c /mnt
root@notebook# ls /mnt
root@notebook# df
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/ad0s1a    845199   809207   -31623   104%    /
devfs               1        1        0   100%    /dev
procfs              4        4        0   100%    /proc
/dev/md0c         935        1      860     0%    /mnt
root@notebook#

Perhaps it is a good time to update your system. :-P

-Maxim

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to