Difference between pages "User talk:Simsong" and "Mounting Disk Images"

From ForensicsWiki
(Difference between pages)
Jump to: navigation, search
(Bot issues)
 
m
 
Line 1: Line 1:
== Categories ==
+
= FreeBSD =
  
As a Wikipedia user, I have noticed that none of your articles have categories. Did you know that categories exist in MediaWiki? If yes, is there a reason? I would like to start work on it. [[Special:Categories]], http://meta.wikimedia.org/wiki/Help:Category --[[User:Midnightcomm|Midnightcomm]] 01:09, 23 April 2006 (EDT)
+
To mount a disk image on [[FreeBSD]]:
  
:Woah, I don't know much about Categories. How would I add them? What are they for?
+
First attach the image to unit #1:
 +
  # mdconfig -a -t vnode -f /big3/project/images/img/67.img -u 1
  
::[http://en.wikipedia.org/wiki/Wikipedia:Categorization Categories] are used to help organize pages. I also see that there are no help articles, in the absance if them, I will be using the Wikipedia [http://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style style guides]. --[[User:Midnightcomm|Midnightcomm]] 01:09, 23 April 2006 (EDT)
+
Then mount:
::<nowiki>[[Category:File Systems]]</nowiki>
+
  # mount -t msdos /dev/md1s1 /mnt
  
:::Sounds good to me. We welcome your contributions.
+
  # ls /mnt
 +
  BOOTLOG.PRV    BOOTLOG.TXT    COMMAND.COM    IO.SYS          MSDOS.SYS
  
:::Yay! I'm all for categories. I've started adding some (tools, licenses, OSes, ...), feel free to add more and categorize the articles. --[[User:Uwe Hermann|Uwe Hermann]] 15:03, 23 April 2006 (EDT)
+
To unmount:
  
::::How do you add categories? --SImson
+
  # umount /mnt
 +
  # mdconfig -d -u 1
  
::::: Usually you just add <nowiki>[[Category:Foobar]]</nowiki> somewhere at the bottom of the page, more info [http://meta.wikimedia.org/wiki/Help:Category here]. For the tools, I have incorporated the category into the Infobox, see [[dd]] for an example. It looks a bit stupid in the wiki source, but keeps the wiki category and the "Genre:" classification in one place, which is important IMHO. Btw, you can sign your "posts" with "<nowiki>--~~~~</nowiki>" which will expand to username and date, just like on this post. --[[User:Uwe Hermann|Uwe Hermann]] 21:45, 2 May 2006 (EDT)
+
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
  
Hi. We have some spambots advertising "Chinese antique furniture" on the wiki. Could also be real people, since they've gotten over the captcha, but I doubt they understand plain English. How do you generally deal with such people here? Or better said, is there someone we're supposed to notify when something like this happens like flag the article as spam or something?
+
= Linux =
  
Well, I guess you'll see it when you log in anyway, just thought I'd give you a heads up before it gets indexed and all that.
+
==To mount a disk image on [[Linux]]==
--[[User:Cmihai|cmihai]] 00:12, 8 January 2008 (PST)
+
 
 +
# mount -t vfat -o loop=/dev/loop0,ro,noexec img.dd /mnt
 +
-or-
 +
# mount -t vfat -o loop=/dev/loop/0,ro,noexec img.dd /mnt
 +
 
 +
The '''''ro''''' is for read-only (loop device is required since some file systems can alter the data even with '''''ro''''' option).
 +
 
 +
This will mount NSRL ISOs:
 +
 
 +
  # mount /home/simsong/RDS_218_A.iso /mnt/nsrl -t iso9660 -o loop=/dev/loop3,ro,noexec
 +
 
 +
 
 +
Some raw images contains multiple partitions (full HD image). In this case, it's necessary to specify a starting offset for each partition.
 +
 
 +
# mount -t vfat -o loop=/dev/loop0,offset=32256,ro,noexec img.dd /mnt/tmp_1
 +
# mount -t vfat -o loop=/dev/loop1,offset=20974464000,ro,noexec img.dd /mnt/tmp_2
 +
 
 +
 
 +
'''Note: You may need to say /dev/loop/0 instead of /dev/loop0 on some systems'''
 +
 
 +
==To unmount==
 +
 
 +
# umount /mnt
 +
 
 +
== Mounting Images Using Alternate Superblocks ==
 +
 
 +
* [http://sansforensics.wordpress.com/2008/12/18/mounting-images-using-alternate-superblocks/ Mounting Images Using Alternate Superblocks]
 +
 
 +
[[Category:Howtos]]

Revision as of 13:09, 26 July 2009

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

# mount -t vfat -o loop=/dev/loop0,ro,noexec img.dd /mnt

-or-

# mount -t vfat -o loop=/dev/loop/0,ro,noexec img.dd /mnt

The ro is for read-only (loop device is required since some file systems can alter the data even with ro option).

This will mount NSRL ISOs:

 # mount /home/simsong/RDS_218_A.iso /mnt/nsrl -t iso9660 -o loop=/dev/loop3,ro,noexec 


Some raw images contains multiple partitions (full HD image). In this case, it's necessary to specify a starting offset for each partition.

# mount -t vfat -o loop=/dev/loop0,offset=32256,ro,noexec img.dd /mnt/tmp_1
# mount -t vfat -o loop=/dev/loop1,offset=20974464000,ro,noexec img.dd /mnt/tmp_2


Note: You may need to say /dev/loop/0 instead of /dev/loop0 on some systems

To unmount

# umount /mnt

Mounting Images Using Alternate Superblocks