Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 [2] 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: DSL size, Embeded< Next Oldest | Next Newest >
friedgold Offline





Group: Members
Posts: 122
Joined: Mar. 2005
Posted: Sep. 11 2005,16:04 QUOTE

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.
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Sep. 12 2005,16:49 QUOTE

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.
Back to top
Profile PM 
Borderpatrol Offline





Group: Members
Posts: 45
Joined: May 2005
Posted: Sep. 12 2005,23:16 QUOTE

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

--------------
2.0 AMD 64 Athlon Dual Core
60 GB HDD
DVD+RW
NVIDA 256 5200

XP
VISTA
DSL
BLACKBERRY 4.5
Back to top
Profile PM 
friedgold Offline





Group: Members
Posts: 122
Joined: Mar. 2005
Posted: Sep. 13 2005,16:38 QUOTE

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.
Back to top
Profile PM 
Borderpatrol Offline





Group: Members
Posts: 45
Joined: May 2005
Posted: Sep. 14 2005,14:59 QUOTE

can you break that down a little simpler please. Im still learning this.

--------------
2.0 AMD 64 Athlon Dual Core
60 GB HDD
DVD+RW
NVIDA 256 5200

XP
VISTA
DSL
BLACKBERRY 4.5
Back to top
Profile PM 
12 replies since Sep. 07 2005,20:46 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 [2] 3 >/
reply to topic new topic new poll
Quick Reply: DSL size

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code