tag:blogger.com,1999:blog-886443900063926782.post331760450575606629..comments2023-11-03T13:34:11.253+00:00Comments on UbuntuHak: How to create, format and mount .img filesUnknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-886443900063926782.post-19146250881725273842013-01-22T09:51:56.422+00:002013-01-22T09:51:56.422+00:00Hello Damon,
yes you could say that such a raw ima...Hello Damon,<br />yes you could say that such a raw image is just like a "fake storage". DD creates an image of all the input files that can be files, folders or enitre partitions (backup function), these are then "merged" into an image that is a single file, but contains the entire file strucure of the say folder you have put in it. The contents of this image cannot be accessed directly, but you have to mount it manuall first (like you would mount an external drive or USB drive, but the OS does it automatically for you upon connecting).<br />After mounting the img file, the contained file strucure appears where you mounted it and you can access files and documents in it.<br />You can read more about dd here for example: http://www.forensicfocus.com/linux-dd-basics<br /><br />And yes you though right, the whole idea behind this is that you could have an unlimited number of images on your PirateBox each having different web designs etc. in them. Swapping them out is just as easy as naming them, so for exampple:<br />The file that the PirateBox will use is USB/piratebox/pbIMG_ws.img. If you have 1 other image file you can just call it pbIMG_ws_alternative.img and leave it next to the other file. Swap the names around and you can use instantly the contents of the other image file.<br /><br />This is the next step I am going to implement in my design yo you can just download an *.img file and use that without having to touch the original one.<br /><br />I am happy you like my design. If you want to test it out, you don't even have to touch your box, only the pendrive! Simply make a backup of the USB/piratebox/pbIMG_ws.img file either on your hard drive or just in the same folder and call it say USB/piratebox/pbIMG_ws_backup.img. You can then mount the original pbIMG_ws.img file and put my Design files in the www folder (original img files is backed up). Dismount the file, plug in the USB to the router and its good to go. If you feel like changing back to the original site, just swap the names back.Nargrenhttps://www.blogger.com/profile/10515194555459900467noreply@blogger.comtag:blogger.com,1999:blog-886443900063926782.post-21870874156799192432013-01-22T01:05:25.256+00:002013-01-22T01:05:25.256+00:00I'm new to linux and openWRT, but I know enoug...I'm new to linux and openWRT, but I know enough to navigate directories from the command line, copy files and so on. What exactly is an image file good for? Are you "mounting" it so that you can, for instance, download an img file and put it on a PB, and thus have an entire directory structure, web pages and so forth already preconfigured? So it's sort of like a fake storage device or whatever that's actually an IMG file?<br /><br />By the way, I really like the look of your Pirate Box. I have another router on order and will try yours out when I get it. Right now I'm afraid of breaking the one I just built.Damonhttp://www.iwillhavetoldyouso.comnoreply@blogger.com