Page 7 of 9 FirstFirst ... 56789 LastLast
Results 61 to 70 of 89

Thread: Knoppix V6.7.0

  1. #61
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    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.

  2. #62
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    @ 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.

  3. #63
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    @ 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.

  4. #64
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    @ 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.

  5. #65
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by utu View Post
    @ 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.

  6. #66
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    @ kl522

    Incredible. My 15 Gb file takes 10 MINUTES to build as it is.
    Are we on the same page here?

  7. #67
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    @ 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

  8. #68
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by utu View Post
    @ 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.

  9. #69
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    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?

  10. #70
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    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.

Page 7 of 9 FirstFirst ... 56789 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS picture

Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS

$712.98



HP ProLiant DL360 G9 Server | 2 x E5-2660V3 2.6Ghz | 64GB | 2 x 900GB SAS HDD picture

HP ProLiant DL360 G9 Server | 2 x E5-2660V3 2.6Ghz | 64GB | 2 x 900GB SAS HDD

$339.00



Dell Poweredge R640 Server | 2x Xeon Gold 6132 | 128GB | H730P | 8x HDD Trays picture

Dell Poweredge R640 Server | 2x Xeon Gold 6132 | 128GB | H730P | 8x HDD Trays

$1849.00



Supermicro 4U 4x Nvidia GPU AI Server 2.1Ghz 16-Core 192GB 2x10G SFP+ 2x2200W picture

Supermicro 4U 4x Nvidia GPU AI Server 2.1Ghz 16-Core 192GB 2x10G SFP+ 2x2200W

$1250.00



Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD picture

Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD

$79.19



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD

$389.99



Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB picture

Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB

$510.00



Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox picture

Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox

$340.00



DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45

$274.00



1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$297.00