{"id":582,"date":"2014-04-08T22:14:38","date_gmt":"2014-04-08T20:14:38","guid":{"rendered":"http:\/\/schulenwegg.ch\/cms\/?page_id=582"},"modified":"2018-01-18T20:09:56","modified_gmt":"2018-01-18T19:09:56","slug":"explorer-with-archivistavm","status":"publish","type":"page","link":"https:\/\/archivista.ch\/cms\/en\/news\/2008-2019\/year-2014\/explorer-with-archivistavm\/","title":{"rendered":"Explorer with ArchivistaVM"},"content":{"rendered":"<h1>Explorer with ArchivistaVM: Restoring files<\/h1>\n<p style=\"margin-bottom: 0in;\"><em><strong>Egg, 10th March 2014:<\/strong> As already announced in the <strong>last blog entry,<\/strong> we are hoping to provide guests backed up with Archivista with an Explorer, so as to be able to extract individual files directly into ArchivistaVM from backed-up data. This blog entry is firstly intended to impart the basic knowledge (as to how it can be done on the root console) and then to briefly introduce the solution in ArchivistaVM.<\/em><\/p>\n<p style=\"margin-bottom: 0in;\"><img loading=\"lazy\" decoding=\"async\" src=\"\/de\/media\/backup\/egg2.png\" alt=\"\" width=\"600\" height=\"337\" align=\"bottom\" \/><\/p>\n<h2>ArchivistaVM: Opening RAW files on the console<\/h2>\n<p style=\"margin-bottom: 0in;\">The following remarks are addressed to those wishing to process RAW files under Linux on the console and are intended to aid technical understanding; the second part contains information on how these files can be reviewed in ArchivistaVM.<\/p>\n<p style=\"margin-bottom: 0in;\">What do virtualised guests in ArchivistaVM consist of? A minimum of two files: a conf file containing the virtualised \u201chardware basic data\u201d and a file for the data of each emulated hard drive. The conf file is very simple (around 10 to 20 lines in ANSI-Format); the following concerns the hard drive files and, in particular, those in the RAW format. The RAW format is mostly used because it allows a hard drive to be replicated 1:1 for virtualisation purposes.<\/p>\n<p style=\"margin-bottom: 0in;\">The first step is to consider the hard drive layout as the root user. \u201csfdisk -d\u201d can be used:<\/p>\n<p style=\"margin-bottom: 0in;\"><strong><span style=\"color: #ff0000;\"><span style=\"font-family: Courier New;\">sfdisk -d vm-101.raw<\/span><\/span><\/strong><span style=\"font-family: Courier New;\"><br \/>\n# partition table of vm-101-disk.raw<br \/>\nunit: sectors<\/p>\n<p>vm-101-disk.raw1 : start= 1, size= 8380415, Id=83, bootable<br \/>\nvm-101-disk.raw2 : start= 8380416, size= 8380416, Id=83<br \/>\nvm-101-disk.raw3 : start= 16760832, size= 16760832, Id=82<br \/>\nvm-101-disk.raw4 : start= <span style=\"color: #ff0000;\">33521664<\/span>, size= 33581840, Id=83<br \/>\n<\/span><\/p>\n<p style=\"margin-bottom: 0in;\">The start position in the blocks is located immediately behind &#8222;start&#8220;. So, assuming the fourth partition in the hard drive file is to be opened, the start position is located at Block 33521664. There are 512 bytes per block, so the product to be calculated is <span style=\"color: #ff0000;\">33521664*512.<\/span> This gives a start position in bytes of <span style=\"color: #ff0000;\">17163091968<\/span>. The file can now be opened directly using <strong>\u201cmount -o loop,offset=xy\u201d.<\/strong><\/p>\n<p style=\"margin-bottom: 0in;\"><span style=\"font-family: Courier New;\">mount -o loop,offset=17163091968 vm-101-disk.raw \/tmp\/disk<\/span><\/p>\n<p style=\"margin-bottom: 0in;\">This allows the fourth partition after \/tmp\/disk to be mounted. At this point, the files can now be viewed.<\/p>\n<h2>Explorer in ArchivistaVM<\/h2>\n<p style=\"margin-bottom: 0in;\">Should the above information be too console-intensive, click on the \u201cfiles\u201d tab under \u201cdata backup\u201d in ArchivistaVM. This should list all the available backed-up RAW files.<\/p>\n<p style=\"margin-bottom: 0in;\"><img loading=\"lazy\" decoding=\"async\" src=\"\/en\/media\/backup\/files.png\" alt=\"\" width=\"477\" height=\"237\" align=\"bottom\" \/><\/p>\n<p style=\"margin-bottom: 0in;\">Clicking on a file should now allow the available partitions to be viewed.<\/p>\n<p style=\"margin-bottom: 0in;\"><img loading=\"lazy\" decoding=\"async\" src=\"\/en\/media\/backup\/files2.png\" alt=\"\" width=\"598\" height=\"167\" align=\"bottom\" \/><\/p>\n<p style=\"margin-bottom: 0in;\">Any partition can now be opened directly. An example is given below.<\/p>\n<p style=\"margin-bottom: 0in;\"><img loading=\"lazy\" decoding=\"async\" src=\"\/en\/media\/backup\/files3.png\" alt=\"\" width=\"600\" height=\"481\" \/><\/p>\n<p style=\"margin-bottom: 0in;\">Entries that have a <strong>number in brackets following the file name [e.g. zerofree (7336)] are files.<\/strong><strong> All the remaining entries are folders.<\/strong> Clicking on a folder allows the associated sub-folders to be opened. <strong>Clicking on a file prepares the file for download.<\/strong><\/p>\n<p style=\"margin-bottom: 0in;\"><strong>Note:<\/strong> Clicking on the <strong>&#8222;Files\u201d<\/strong> tab immediately displays the top level (i.e. all the RAW files).<\/p>\n<p style=\"margin-bottom: 0in;\">\u00a0<\/p>\n\n\n\n\t<div class=\"dkpdf-button-container\" style=\"            text-align:right \">\n\n\t\t<a class=\"dkpdf-button\" href=\"\/cms\/wp-json\/wp\/v2\/pages\/582?pdf=582\" target=\"_blank\"><span class=\"dkpdf-button-icon\"><i class=\"fa fa-file-pdf-o\"><\/i><\/span> PDF Button<\/a>\n\n\t<\/div>\n\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>Explorer with ArchivistaVM: Restoring files Egg, 10th March 2014: As already announced in the last blog entry, we are hoping to provide guests backed up with Archivista with an Explorer, so as to be able to extract individual files directly into ArchivistaVM from backed-up data. This blog entry is firstly intended to impart the basic [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":540,"menu_order":274,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-582","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/archivista.ch\/cms\/wp-json\/wp\/v2\/pages\/582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/archivista.ch\/cms\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/archivista.ch\/cms\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/archivista.ch\/cms\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/archivista.ch\/cms\/wp-json\/wp\/v2\/comments?post=582"}],"version-history":[{"count":2,"href":"https:\/\/archivista.ch\/cms\/wp-json\/wp\/v2\/pages\/582\/revisions"}],"predecessor-version":[{"id":5236,"href":"https:\/\/archivista.ch\/cms\/wp-json\/wp\/v2\/pages\/582\/revisions\/5236"}],"up":[{"embeddable":true,"href":"https:\/\/archivista.ch\/cms\/wp-json\/wp\/v2\/pages\/540"}],"wp:attachment":[{"href":"https:\/\/archivista.ch\/cms\/wp-json\/wp\/v2\/media?parent=582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}