Loopback Device: Difference between revisions

Jump to navigation Jump to search
Adding OpenBSD information (And fixing the FreeBSD..)
[unchecked revision][unchecked revision]
m (changed category)
(Adding OpenBSD information (And fixing the FreeBSD..))
Line 305:
To shut and image down, unmount and unconfigure it.
 
umount /tmpmnt/myfloppy
vnconfig -c /dev/vn0
Line 318:
 
To unmount:
umount /tmpmnt/myfloppy
mdconfig -d -u md0
 
== Loopback Device under OpenBSD ==
 
OpenBSD has used vnconfig(8) since OpenBSD 2.2 (or earlier..) to OpenBSD 4.0-CURRENT.
 
Under root or using su/sudo, Here are example steps for configuring a vnode pseudo disk device.
 
Creating the floppy.img file using dd:
dd if=/dev/zero of=/path/to/floppy.img bs=512 count=2880
 
Configuring the svnd0 device:
vnconfig svnd0 /path/to/floppy.img
 
Listing configured vnd/svnd devices:
vnconfig -l
Output:
vnd0: covering floppy.img on wd0a, inode 270473
vnd1: not in use
vnd2: not in use
vnd3: not in use
 
Creating a FAT12 file system and then mounting the device:
newfs_msdos -f 1440 /dev/svnd0c
mount -t msdos /dev/svnd0c /mnt/floppy
 
Removing the device mount and removing the svnd0 device:
umount /mnt/floppy
vnconfig -u /dev/svnd0c
 
[[Category:Disk Image Utilities]]
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu