Difference between revisions of "Mounting Disk Images"
From Forensics Wiki
m |
Uwe Hermann (Talk | contribs) (Linux.) |
||
| Line 1: | Line 1: | ||
| − | =FreeBSD= | + | = FreeBSD = |
| − | + | ||
| − | First attach | + | To mount a disk image on [[FreeBSD]]: |
| + | |||
| + | First attach the image to unit #1: | ||
# mdconfig -a -t vnode -f /big3/project/images/img/67.img -u 1 | # mdconfig -a -t vnode -f /big3/project/images/img/67.img -u 1 | ||
| Line 20: | Line 21: | ||
# mdconfig -o readonly -a -t vnode -f /big3/project/images/img/67.img -u 1 | # mdconfig -o readonly -a -t vnode -f /big3/project/images/img/67.img -u 1 | ||
# mount -o ro -t msdos /dev/md1s1 /mnt | # mount -o ro -t msdos /dev/md1s1 /mnt | ||
| + | |||
| + | = Linux = | ||
| + | |||
| + | To mount a disk image on [[Linux]], use: | ||
| + | |||
| + | # mount -t vfat -o loop=/dev/loop0 img.dd /mnt | ||
| + | |||
| + | To unmount: | ||
| + | |||
| + | # umount /mnt | ||
| + | |||
| + | To mount the image read-only, use: | ||
| + | |||
| + | # mount -t vfat -o ro,loop=/dev/loop0 img.dd /mnt | ||
Revision as of 15:17, 2 May 2006
FreeBSD
To mount a disk image on FreeBSD:
First attach the image to unit #1:
# mdconfig -a -t vnode -f /big3/project/images/img/67.img -u 1
Then mount:
# mount -t msdos /dev/md1s1 /mnt
# ls /mnt BOOTLOG.PRV BOOTLOG.TXT COMMAND.COM IO.SYS MSDOS.SYS
To unmount:
# umount /mnt # mdconfig -d -u 1
To mount the image read-only, use:
# mdconfig -o readonly -a -t vnode -f /big3/project/images/img/67.img -u 1 # mount -o ro -t msdos /dev/md1s1 /mnt
Linux
To mount a disk image on Linux, use:
# mount -t vfat -o loop=/dev/loop0 img.dd /mnt
To unmount:
# umount /mnt
To mount the image read-only, use:
# mount -t vfat -o ro,loop=/dev/loop0 img.dd /mnt