DSL Embedded :: DSL size



Eh? Who said anything about deleting the hard disk image. I only suggested that if embedded gets too large for a given USB key then the obvious way of dealing with this is by reducing the size of the hard disk image (not deleting it altogether).

If embedded gets 1Mb too large the size of the hard disk image could be reduced from 60Mb to 59Mb. Losing 1Mb of storage out of 60Mbs isn't going to make much difference to most users, especially as it starts out practically empty.

DSL embedded isn't too large for Borderpatrol's 128Mb key at the moment. But the original question was what could be done if it did get too large in future. I only offered a suggestion as to how this could be delt with.

It may sound crude, but one quick way to solve the problem is to delete the image.

Then you suddenly have a ~50MB embedded system instead of a ~128MB system.

There are more sophisticated ways to save space, but this one is easy and can be performed by novice users without even booting into linux or formatting a new loop filesystem.

Perhaps a "make a new image file" script would be nice for someone who can boot into native DSL.

The script would create a new hard disk image file, format it, and then copy the backup.tar.gz file (or any other files) from the old image file into the new one.

Then rename the new image file and you are good to go.

Anyone have a way for me to make a harddisk file smaller say 25 MB. I dont use embedded all the time, so I dont need it to be terribly big, I simply use it at school where I cant reboot into DSL
In Linux

Code Sample
# make new 25MB image
dd if=/dev/zero of=/path/to/new/image bs=1024k count=25
# Format image with ext2
mkfs.ext2 /path/to/new/image
# Mount old image
mount -o loop /path/to/old/image /old/image/mountpoint
# Mount new image
mount -o loop /path/to/new/image /new/image/mountpoint
# Copy files from old image to new image
cp -a /old/image/mountpoint/* /new/image/mountpoint
# Unmount
umount /old/image/mountpoint
umount /new/image/mountpoint


You could also do it in Windows by downloading qemu from the qemu homepage, using qemu-img to create a new image. Then to copy the files boot dsl embedded with both the old image as hdc and new image as hdd, format hdd with mkfs.ext and copy the files from hdc to hdd.

can you break that down a little simpler please. Im still learning this.
Next Page...
original here.