Small auto-growing HDD image maker (Windows)

Discuss PearPC's Development and any bugs you find here

Small auto-growing HDD image maker (Windows)

Postby Cory » Tue Sep 07, 2004 12:02 pm

Hey guys, I made a very small (5.5kb) hdd image maker for Windows.

If you are on NTFS (win2k and up), it will take advantage of it and make the file auto-grow up to the size you give. So a 6gb image will only take up 4kb if it is empty, 1gb after an apple darwin install etc. If you aren't on NTFS it will create a normal file.

Very simple to use, "buildhdd darwin.img 6" will create a 6gb image file named darwin.img.

http://dev.int64.org/buildhdd.exe
http://dev.int64.org/buildhdd.c (for you code monkies)
Cory
 

Postby jedavis1 » Wed Sep 08, 2004 4:59 pm

I gotta say... Great utility! Very Happy

Now I can have the HD size I want (10 gb) and it only actually takes up the amount of space that is being used.

[img:86f3a4c390]http://www.davis-family.org/files/PCInfo.png[/img:86f3a4c390]

[img:86f3a4c390]http://www.davis-family.org/files/macinfo.png[/img:86f3a4c390]

I used this utility to make a 10GB hd file and then mounted it as slave in PearPC and then used Carbon Copy Cloner to clone my 6GB original image on to this, selected the new HD image as the startup disk in OSX and then made it the master IDE image in pearpc, booted and voila. New more efficient HD image.
"I don't know how to get the lead out!" Ethan (my son), age 13.
jedavis1
Avid Helper
Avid Helper
 
Posts: 134
Joined: Thu Jun 24, 2004 2:18 pm

Postby prasys » Thu Sep 09, 2004 7:54 am

Good , now I can upgrade my PowerMac G3...Haa with this tool, good job ,so that means I only will use up 4 GB instead of 6 GB...
Bastila Shan: The Jedi do not believe in killing their prisoners. No one deserves execution, no matter what their crimes.
prasys
PearPC.net staff
PearPC.net staff
 
Posts: 2357
Joined: Wed Jun 30, 2004 9:48 am
Location: Kuala Lumpur, Malaysia

Postby kesafloyd » Thu Sep 09, 2004 5:12 pm

Is the hard drive created with this tool formatted already? If not, how do I format a hard drive properly?
Alexandra

Win XP
PPC 0.4pre CD-Rom
OS X 10.3
kesafloyd
Regular
Regular
 
Posts: 64
Joined: Thu Jul 15, 2004 3:00 am
Location: Earth

Postby jedavis1 » Thu Sep 09, 2004 5:39 pm

[quote="kesafloyd":009a87bab4]
Is the hard drive created with this tool formatted already? If not, how do I format a hard drive properly?
[/quote:009a87bab4]

No, it isn't formated, it is just a blank image. You just boot from something (CD iso if you are doing a clean install) or your current HD image and use "Disk Utility" to partition/format your new image.

HTH,

Jon
"I don't know how to get the lead out!" Ethan (my son), age 13.
jedavis1
Avid Helper
Avid Helper
 
Posts: 134
Joined: Thu Jun 24, 2004 2:18 pm

Postby kesafloyd » Fri Sep 10, 2004 5:09 pm

Ok, I got all the way to copying the drives, but when I go to startup with the new drive, it tells me it can't find a bootable volume. I used Carbon Copy Cloner, and everything seemed to have transferred fine. In the startup disk panel, hitting the restart button didn't actually do anything. I selected the new drive as the startup disk and then shut down from the apple menu. Is this my problem?

Here's my config:

[i:521560e3c1]pci_ide0_master_installed = 1
pci_ide0_master_image = "osx10gb.img"
#pci_ide0_master_type = "hd"

pci_ide0_slave_installed = 0
pci_ide0_slave_image = "osx10gb.img"
pci_ide0_slave_type = "hd"

#pci_ide0_slave_image = "2,0,0"
#pci_ide0_slave_type = "aspi"[/i:521560e3c1]
Alexandra

Win XP
PPC 0.4pre CD-Rom
OS X 10.3
kesafloyd
Regular
Regular
 
Posts: 64
Joined: Thu Jul 15, 2004 3:00 am
Location: Earth

Postby Guru3 » Fri Sep 10, 2004 5:23 pm

wow, nice work. fantastic disk imaging utility, really great work with the sparse imaging Smile
Guru3
PearPC.net staff
PearPC.net staff
 
Posts: 2187
Joined: Tue Jun 29, 2004 1:37 pm

Postby jedavis1 » Fri Sep 10, 2004 5:43 pm

[quote="kesafloyd":5186a607f3]
Ok, I got all the way to copying the drives...
[/quote:5186a607f3]


What version of Pearpc are you using? I am not sure what you are asking about "is this my problem?" with the IDE settings. But they don't look out of place.

I have used both the 9/9 and 9/10 builds from Richard Goodwin's site for the P4 optimized build and they work fine. I have also used the "special" build by blknight hosted by prasys and it worked fine. It shows that it boots off partition 3 of the disk image, and I know pearpc used to use 2 (or had problem if it were anything other than 2) but the more recent builds of pearpc had a boot fix for this (but I think someone said that it wasn't in the SDL or Altivec branches yet).

HTH,

Jon
"I don't know how to get the lead out!" Ethan (my son), age 13.
jedavis1
Avid Helper
Avid Helper
 
Posts: 134
Joined: Thu Jun 24, 2004 2:18 pm

disk copy worked, but network card is gone now

Postby Christian St?ckel » Sun Sep 12, 2004 5:15 pm

Hi,

everything worked perfectly as described, the "Mac" boots from the new 10 gig drive without problems, but: no realtek network card any more, instead I have an "Ethernet (integrated)", which didn't work. I did the whole procedure twice. Same result.

Any clue ?

Regards,
Christian
Christian St?ckel
 

Next

Return to PearPC Development

Who is online

Users browsing this forum: No registered users and 2 guests