-
Senior Member
registered user
It is not surprising that when people re-master, expecially the very first one, they end up having an image bigger than the original. There can be many reasons to it, one of them is due to the commands used, 'create_compressed_fs'. The command has additional switches which selects better compression scheme ( at the expense of MUCH slower compression time ).
If one really wants to remaster for the last time, like what K Klaus does when he releases his liveCD, he probably selects '-L -1' or '-L -2', which incorporates 7zip compression. 7zip compression is famous for able to produce higher compression ratio but at the expense of MUCH longer compression time. Squashfs has its equivalent, and does it with EVEN higher compression ratio.
-
Senior Member
registered user
@ kl522
Thanks. I'll give that a try.
My initial try is just to re-do my cd.
More than half the time is spent in 'preparing the workspace'.
only about one-quarter spent in sub-optimum compression.
One quarter spent in copious, unused print-out, I haven't found
out how to cut down on yet. This in the rsync area and what follows.
Thanks for your hints.
-
Senior Member
registered user
@ kl522
ps
I now have the gigabyte wherewithal and enough background to delve into your 'Remaster your flash installation'.
I hope to be able to report some success with your approach sometime in the near future.
Cheers.
-
Senior Member
registered user
@ Capricorny
Regarding your script as shown in post #54:
Are your case descriptors missing a left paren on purpose?
Missing relative to Forester's script, that is.
Thanks.
-
Senior Member
registered user
![Quote](images/misc/quote_icon.png)
Originally Posted by
utu
@ kl522
More than half the time is spent in 'preparing the workspace'.
Something I haven't tried it myself but I think it might be possible to shorten the time by changing the 'dd' command to a 'sparse file'. It allows the time to be shortened to almost nothing, at the expense of risking into having not enough disk space in the subsequent use. This can be mitigated by doing disk space calculation prior to starting.
Example of sparse file :-
Code:
$ dd of=sparse_file bs=1024 count=0 seek=1000K
This will create a 1G file in below 1 second.
-
Senior Member
registered user
@ kl522
Incredible. My 15 Gb file takes 10 MINUTES to build as it is.
Are we on the same page here?
-
Senior Member
registered user
@ kl522
Is this the replacement you are suggesting?
# sudo dd if=/dev/zero of=${workdir}/knoppix-remaster-data.img bs=1M count=$psize
$dd of=sparse_file bs=1024 count=0 seek=1000K
-
Senior Member
registered user
![Quote](images/misc/quote_icon.png)
Originally Posted by
utu
@ kl522
Is this the replacement you are suggesting?
# sudo dd if=/dev/zero of=${workdir}/knoppix-remaster-data.img bs=1M count=$psize
$dd of=sparse_file bs=1024 count=0 seek=1000K
Change it to :-
dd of=${workdir}/knoppix-remaster-data.img bs=1M count=0 seek=$psize
That will use back the same arithmatic, creating the required workspace in a couple of seconds.
Cheers.
Last edited by kl522; 08-17-2011 at 03:55 AM.
-
Senior Member
registered user
Using the following input,
./rem_05.sh /media/sdc1 15M /media/sdc1/KNOPPIX670&
and the single line of modification, shown here:
"create workspace") # Setup workspace as loop image
workdir=$1; shift;
psize=$1; shift;
# sudo dd if=/dev/zero of=${workdir}/knoppix-remaster-data.img bs=1M count=$psize
$dd of=sparse_file bs=1024 count=0 seek=${wrkspc_sz} # replace line above per kl522
sudo losetup /dev/loop7 ${workdir}/knoppix-remaster-data.img
sudo mkfs.ext3 /dev/loop7
sudo losetup -d /dev/loop7
purge_or_create /tmp/knx-remaster-data;
sudo mount ${workdir}/knoppix-remaster-data.img /tmp/knx-remaster-data -o loop=/dev/loop7 ;
;;
We get a 'command not found' error for the new line, and nothing produced
except an empty KNOPPIX file at the end.
1. Also, I don't see how sparse_file and {workdir} ever get together; and
2. Shouldn't the case descriptors have a left-parenthesis?
-
Senior Member
registered user
It also looks to me like sparse_files or sparse-files are elements
that require ntfs-3g driver(s). Having started with a cd version
of Knoppix, my synaptic doesn't show ntfs-3g as an option.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Vintage DEC Digital Rainbow Drive Controller PC100 RD51 CNTLR picture](/store/img/NdYAAOSwhMxlDXxn/s-l225//Vintage-DEC-Digital-Rainbow-Drive-Controller-PC100.jpg)
Vintage DEC Digital Rainbow Drive Controller PC100 RD51 CNTLR
$69.99
![VINTAGE DIGITAL EQUIPMENT CORPORATION DEC VT131 TERMINAL AS-IS picture](/store/img/YQwAAOSwNWRmhaev/s-l225//VINTAGE-DIGITAL-EQUIPMENT-CORPORATION-DEC-VT131-TE.jpg)
VINTAGE DIGITAL EQUIPMENT CORPORATION DEC VT131 TERMINAL AS-IS
$339.99
![Vintage DEC Digital M8048 5013995C PDP-11 LSI 11 ROM (B3) picture](/store/img/Sl4AAOSwsuNljyNm/s-l225//Vintage-DEC-Digital-M8048-5013995C-PDP-11-LSI-11-R.jpg)
Vintage DEC Digital M8048 5013995C PDP-11 LSI 11 ROM (B3)
$79.99
![Vintage Digital DEC PCXAL-AA US Standard Keyboard NEW picture](/store/img/2coAAOSwtEFkowPy/s-l225//Vintage-Digital-DEC-PCXAL-AA-US-Standard-Keyboard-.jpg)
Vintage Digital DEC PCXAL-AA US Standard Keyboard NEW
$89.99
![3 Vintage Digital Equipment DEC Storageworks DECUS 1980 1990 ceramic coffee mugs picture](/store/img/~fsAAOSwf49mnBl0/s-l225//3-Vintage-Digital-Equipment-DEC-Storageworks-DECUS.jpg)
3 Vintage Digital Equipment DEC Storageworks DECUS 1980 1990 ceramic coffee mugs
$49.99
![VINTAGE Digital Terminal Monitor Model DEC VT320 Powers On Black & White Screen picture](/store/img/79cAAOSwb69mZ0gO/s-l225//VINTAGE-Digital-Terminal-Monitor-Model-DEC-VT320-P.jpg)
VINTAGE Digital Terminal Monitor Model DEC VT320 Powers On Black & White Screen
$99.00
![DEC DIGITAL VINTAGE M9060-YA picture](/store/img/knIAAOSwXflkuwX-/s-l225//DEC-DIGITAL-VINTAGE-M9060-YA.jpg)
DEC DIGITAL VINTAGE M9060-YA
$45.00
![DEC PDP 8/M PDP 8M / 4 avail / Vintage Digital Equipment Corp /Also DEC PDP 12 picture](/store/img/0gMAAOSwtb5mHj1~/s-l225//DEC-PDP-8-M-PDP-8M-4-avail-Vintage-Digital-Equipme.jpg)
DEC PDP 8/M PDP 8M / 4 avail / Vintage Digital Equipment Corp /Also DEC PDP 12
$5775.00
![Vintage DEC/The Redac mini cabinet front panel Digital Equipment Corp. 19](/store/img/Dg8AAOSwIsZkuslG/s-l225//Vintage-DEC-The-Redac-mini-cabinet-front-panel-Dig.jpg)
Vintage DEC/The Redac mini cabinet front panel Digital Equipment Corp. 19"
$269.99
![Vintage DEC Digital M8153 RH70 UNIBUS CONTROL-BCT (B15) picture](/store/img/zg8AAOSwzg1mi-OO/s-l225//Vintage-DEC-Digital-M8153-RH70-UNIBUS-CONTROL-BCT-.jpg)
Vintage DEC Digital M8153 RH70 UNIBUS CONTROL-BCT (B15)
$139.99