Difference between revisions of "FreeBSD CD and DVD's"
From Teknologisk videncenter
m |
m (→Mount a ISO image from a file) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
= Copy a CD or DVD to a ISO image = | = Copy a CD or DVD to a ISO image = | ||
+ | The media should not be mounted. | ||
<pre> | <pre> | ||
dd if=/dev/acd0 of=dvd.iso ibs=2048 | dd if=/dev/acd0 of=dvd.iso ibs=2048 | ||
</pre> | </pre> | ||
+ | |||
= Mount a ISO image from a file = | = Mount a ISO image from a file = | ||
If you have a [[ISO image]] in a file you cant make a memory disk and mount it | If you have a [[ISO image]] in a file you cant make a memory disk and mount it | ||
<pre> | <pre> | ||
− | |||
bsd# file * | bsd# file * | ||
heth.iso: ISO 9660 CD-ROM filesystem data 'THE_ATTIC ' | heth.iso: ISO 9660 CD-ROM filesystem data 'THE_ATTIC ' | ||
Line 28: | Line 29: | ||
bsd# mdconfig -d -u 1 | bsd# mdconfig -d -u 1 | ||
</pre> | </pre> | ||
+ | [[Category:FreeBSD]] |
Latest revision as of 04:57, 14 May 2009
Copy a CD or DVD to a ISO image
The media should not be mounted.
dd if=/dev/acd0 of=dvd.iso ibs=2048
Mount a ISO image from a file
If you have a ISO image in a file you cant make a memory disk and mount it
bsd# file * heth.iso: ISO 9660 CD-ROM filesystem data 'THE_ATTIC ' bsd# mdconfig -a -t vnode -f /home2/heth/dvd/heth.iso -u 1 bsd# mount -t cd9660 /dev/md1 /cdrom bsd# df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 507630 196094 270926 42% / devfs 1 1 0 100% /dev /dev/ad0s1e 507630 142602 324418 31% /tmp /dev/ad0s1f 34336612 25245812 6343872 80% /usr /dev/ad0s1d 1506190 970188 415508 70% /var /dev/ad1s1d 9680238 8456664 449156 95% /home2 /dev/ad1s1e 8230158 1836582 5735164 24% /usr2 devfs 1 1 0 100% /var/named/dev /dev/md1 4391040 4391040 0 100% /cdrom
Unmounting it again and removing the memory disk.
bsd# umount /cdrom bsd# mdconfig -d -u 1