Disk Image Creator
Disk Image Creator
This is a simple disk image creator. It can be format to vfat, ntfs, ext2, ext3, and ext4
- Attachments
-
- disk-creator-gui.JPG
- (22.8 KiB) Downloaded 678 times
-
- image-file-creator-1.0.pet
- (1.35 KiB) Downloaded 358 times
Hello again, mistfire and baki.
You are giving me ideas...
Am I right to suppose that
-- you can have / modify any part of the Linux hierarchy of directories in a
mounted img file?
If so, that would be great for building / remastering / prototyping a Puppy in
real time.
Assuming that, once you have finished, you can write back this img file to
some directory and create an sfs file from that dir,
OR
convert this img file directly to an adrv_xyz.sfs, for example?
Can this be done? TIA.
BFN.
You are giving me ideas...
Am I right to suppose that
-- you can have / modify any part of the Linux hierarchy of directories in a
mounted img file?
If so, that would be great for building / remastering / prototyping a Puppy in
real time.
Assuming that, once you have finished, you can write back this img file to
some directory and create an sfs file from that dir,
OR
convert this img file directly to an adrv_xyz.sfs, for example?
Can this be done? TIA.
BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
@musher0 mounted img file is very usable on remastering puppy with this scenario:
* Remastering puppy by extracting and editing the contents of sfs file but you have no ext partition and you have a limited space on your save file. By creating ext img file on the mounted vfat or ntfs partition and mounting the img file, you can now extract the sfs file and modify it.
* You cannot convert disk image file to sfs file. Just mount the image file and issue mksquashfs command to the directory where the disk image is mounted
@slavvo image mounting can be done using filemnt
* Remastering puppy by extracting and editing the contents of sfs file but you have no ext partition and you have a limited space on your save file. By creating ext img file on the mounted vfat or ntfs partition and mounting the img file, you can now extract the sfs file and modify it.
* You cannot convert disk image file to sfs file. Just mount the image file and issue mksquashfs command to the directory where the disk image is mounted
@slavvo image mounting can be done using filemnt
I noticed that 2fs, 4fs, 3fs, and img are the same disk image. This tools will make a disk image and use it right away after its created.nic007 wrote:In the past I used a fake savefile to do remasters on a FAT partition. I created a "permanent" savefile of about 1GB which would then be mounted whenever a linux workspace was required. What benefits would there be using an img file instead?
I'm sorry but I'm a little confused. I know the img file is written in the root directory but how are you pointing to what the .img file should contain? Is it an .img of your current running system or do you need to run the program out of the directory where you want an .img to be created? If it's just creating a blank .img file, then we need to mount it and add things.
I read that mounting it is a bit more challenging as you need to determine the start and ending block.... Don't we have a pup utility that takes care of this?
Anyway, I find this nice and fast but I don't know how to use the final .img
I read that mounting it is a bit more challenging as you need to determine the start and ending block.... Don't we have a pup utility that takes care of this?
Anyway, I find this nice and fast but I don't know how to use the final .img
Okay, it looks like I'm answering my own questions.
The below mounts if it's fat or change msdos to ext2, 3, 4.
rw is for read/write
image.img is the image file name
/mnt/sdc1 is where you are mounting to or any /mnt/sd....
mount -t msdos -o loop,rw image.img /mnt/sdc1
Of course, need to unmount when done:
umount /mnt/sdc1
The below mounts if it's fat or change msdos to ext2, 3, 4.
rw is for read/write
image.img is the image file name
/mnt/sdc1 is where you are mounting to or any /mnt/sd....
mount -t msdos -o loop,rw image.img /mnt/sdc1
Of course, need to unmount when done:
umount /mnt/sdc1
A couple more comments and questions, if I may:
Let's say I create an .img file, mount it and fill it with .mp3 files. If burned to a cd, will it play like a regular music cd? I know there are utilities for this ----> Just curiousity...
Is there a way to password protect the .img file. Interesting locker idea....
Lastly, just a comment that the gui stays opened after creating an image. You may want to have it close or place a quit or exit button to exit the program.
Best,
Slavvo67
Let's say I create an .img file, mount it and fill it with .mp3 files. If burned to a cd, will it play like a regular music cd? I know there are utilities for this ----> Just curiousity...
Is there a way to password protect the .img file. Interesting locker idea....
Lastly, just a comment that the gui stays opened after creating an image. You may want to have it close or place a quit or exit button to exit the program.
Best,
Slavvo67
Sorry, mistfire -- I hope you don't think I'm taking over your thread. Just find this interesting so I'm doing light enhancing.
I threw in the cancel button, highlighted below.
<hbox>
<text><label>Create Image</label></text>
<button>
$(/usr/lib/gtkdialog/xml_button-icon execute)
<action>make_img</action>
</button>
<button cancel></button>
</hbox>
I threw in the cancel button, highlighted below.
<hbox>
<text><label>Create Image</label></text>
<button>
$(/usr/lib/gtkdialog/xml_button-icon execute)
<action>make_img</action>
</button>
<button cancel></button>
</hbox>
I think it will not work because audio cd is a different thing since audio cd has no filesystem at all. Its just raw binary dataslavvo67 wrote:A couple more comments and questions, if I may:
Let's say I create an .img file, mount it and fill it with .mp3 files. If burned to a cd, will it play like a regular music cd? I know there are utilities for this ----> Just curiousity...
I think losetup command can do the trickslavvo67 wrote: Is there a way to password protect the .img file. Interesting locker idea....
slavvo67 wrote: Lastly, just a comment that the gui stays opened after creating an image. You may want to have it close or place a quit or exit button to exit the program.
It will stays open unless you click the close button