Loopback Device: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
mNo edit summary |
m Device names changed. |
||
Line 341: | Line 341: | ||
dd if=/dev/zero of=/path/to/floppy.img bs=512 count=2880 |
dd if=/dev/zero of=/path/to/floppy.img bs=512 count=2880 |
||
Configuring the |
Configuring the vnd0 device: |
||
vnconfig svnd0 /path/to/floppy.img |
vnconfig svnd0 /path/to/floppy.img |
||
Listing configured |
Listing configured devices: |
||
vnconfig -l |
vnconfig -l |
||
Line 354: | Line 354: | ||
Creating a FAT12 file system and then mounting the device: |
Creating a FAT12 file system and then mounting the device: |
||
newfs_msdos -F 12 -f 1440 /dev/ |
newfs_msdos -F 12 -f 1440 /dev/rvnd0c |
||
mount -t msdos /dev/svnd0i /mnt/floppy |
mount -t msdos /dev/svnd0i /mnt/floppy |
||
Removing the device mount and removing the svnd0 device: |
Removing the device mount and removing the svnd0 device: |
||
umount /mnt/floppy |
umount /mnt/floppy |
||
vnconfig -u |
vnconfig -u vnd0 |
||
More Information: [http://www.openbsd.org/cgi-bin/man.cgi?query=vnd&apropos=0&sektion=4&manpath=OpenBSD+Current&arch=i386&format=html vnd(4)] / [http://www.openbsd.org/cgi-bin/man.cgi?query=vnconfig&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html vnconfig(8)] |
More Information: [http://www.openbsd.org/cgi-bin/man.cgi?query=vnd&apropos=0&sektion=4&manpath=OpenBSD+Current&arch=i386&format=html vnd(4)] / [http://www.openbsd.org/cgi-bin/man.cgi?query=vnconfig&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html vnconfig(8)] |