Uploaded by LordHawke13 on Feb 17, 2010
This is merely a demonstration of a BASH script written by Jon Cowie to use the 'hfsplus' package to create HFS+ Disk Images on Linux. There are currently two limitations on this method:
1) The directory name cannot contain spaces. `$ dd of=${OUTPUT}` with spaces can't handle it.
2) The directory cannot have directories inside it. I don't know how to stat directories recursively, only the top level. In such a case, it won't stat the file size correctly. If anyone has any ideas as to how I can fix these problems, please let me know.
The original files and instructions can be found at http://www.trampolinesystems.com/blog/machines/2008/05/19/creating-dmg-files-...
The original gave you the option to specify the name, volume label, size in bytes, and content directory. I've tweaked it to automatically read the size of the files in the directory and set the size of the image, set the name and volume label as the directory and chown + chgrp + chmod the file for the owner.
A second script called 'makedmg' reads the username so that it can be used for chown and chgrp and then sudo's the mkdmg script where all the juicy stuff happens.
Since it involves mounting the image, only root can execute it. I used gksudo so that it prompts you all pretty-like. . . =P
-
1 likes, 2 dislikes
-
Artist: Dark Shift
-
-
Buy "We Came To Rock" on:
Google Play,
AmazonMP3, eMusic, iTunes -
-
4:26
Windows Prank 2 - The Batch Bombby LordHawke13426 views
1:36
Convert DMG image to ISO using dmg2img 1.6 on windows7by www112able608 views
1:49
How To Burn Disk Images In Disk Utility!by livetech1239,698 views
2:17
How to make a dmg file on a mac.by macman18542,278 views
1:07
dd if=/dev/zero of=/dev/hdaby leomanf970 views
8:55
Linux Gaming: The Sims 3by DaweyYT15,557 views
0:54
How to fix time machine error "the backup disk image could not be created"by thatguywithamac1,599 views
2:54
Snow Leopard 10A432 on PCby iceman23124,506 views
1:06
Squeeze - MacHeist nano Bundleby MightyFinderCom170 views
1:04
Snow Leopard restore DMG to USBby GiardiniBlog22,303 views
5:40
rEFIt tutorial pt 1by technotalkblog8,929 views
0:51
How to Mount/Burn Disk Image MAC!! HDby Windows7User71,623 views
9:57
Fog Project: Creating a snapin of Office 2007 using SFX Makerby SSX4life6,446 views
1:34
Mac - Easily convert a .DMG image to an .ISO imageby macwinexpert2,922 views
9:37
Come fare un triplo boot su MacBook Pro Snow Leopard Ubuntu Karmic Koala Windows 7 Part 1 di 2by testomatto22,189 views
5:46
Creating a New Image (MAC)by srz29,572 views
10:03
1-Disk Imaging Process Demo - Part 1.movby DHAtEnclaveForensics1,546 views
1:44
DMG to DVD Disc (Russian)by palanski1,740 views
1:24
Rip DVD as ISO imageby mwcjse927 views
2:13
Apple Core i5 iMac - PROBLEM!!!by GadgetAddicted23,671 views
- Loading more suggestions...
Link to this comment:
All Comments (0)