Results 1 to 7 of 7

Thread: Anyone do a remaster on 5.0.1 CD release yet?

  1. #1
    Junior Member registered user
    Join Date
    Jan 2005
    Posts
    12

    Anyone do a remaster on 5.0.1 CD release yet?

    I'm about to begin a remaster of the CD release of 5.0.1, was curious if anyone has remastered 5.0.1 yet and discovered any potential gotchas with this new release that differ from the remaster from menu based scripts howto.

    Thanks

  2. #2
    Member registered user
    Join Date
    Jun 2004
    Posts
    89
    You need to pay attention to the modules subdirectory, which is new. A script to get the source onto your HD follows. Run it as user knoppix, while you are running knoppix.

    Code:
    #!/bin/bash
    # 1-CopySourceForRemaster copy the CD to HD for remastering
    
    PATH="/bin:/sbin:/usr/bin:/usr/sbin"
    export PATH
    
    XDIALOG_HIGH_DIALOG_COMPAT=1
    export XDIALOG_HIGH_DIALOG_COMPAT
    
    # Get root
    [ "`id -u`" != "0" ] && exec sudo "$0" "$@"
    
    TMP="/tmp/saveconfig.tmp$$"
    
    bailout(){
    rm -f "$TMP" "$TMP.done" "$TMP.err"
    echo ""
    echo "Done"
    exit 0
    }
    
    DIALOG="dialog"
    [ -n "$DISPLAY" ] && [ -x /usr/bin/Xdialog ] && DIALOG="Xdialog"
    
    trap bailout 1 2 3 15
    
    # LANGUAGE etc.
    [ -f /etc/sysconfig/knoppix ] && . /etc/sysconfig/knoppix
    [ -z "$LANG" ] && export LANG
    [ -z "$LANGUAGE" ] && export LANGUAGE
    [ -z "$CHARSET" ] && export CHARSET
    
    DESKTOPKB="$(du -sk $HOME/Desktop 2>/dev/null | awk '{print $1}')"
    
    
    TITLE1="ParallelKnoppix: Copy source to HD for remastering"
    MESSAGE1="Select a hard disk partition on which the source should be copied.
    A directory called parallel_knoppix_remaster will be created at the root level
    of that partition. Which partition would you like to use? (about 2GB free space is needed)"
    ERROR="That didn't work!"
    
    
    # Directory selector
    PARTITIONS=""
    for i in `awk '/^\/dev\/[hs]d[a-z].*\/media\/[hs]d[a-z]/{if(!/ntfs/){print $2}}' /etc/fstab`; do
    PARTITIONS="$PARTITIONS ${i} [Disk/Partition] off"
    done
    
    
    rm -f "$TMP"
    Xdialog --clear --title "$TITLE1" --radiolist "$MESSAGE1" 18 75 9 $PARTITIONS 2>"$TMP" || bailout
    
    ParKnoppixPART="$(<$TMP)"
    [ -z "$ParKnoppixPART" -o ! -e "$ParKnoppixPART" ] && bailout
    
    
    # mount the partition requested
    rm -f "$TMP.err"
    mount | grep -q "$ParKnoppixPART" || mount -r "$ParKnoppixPART" >"$TMP.err"
    [ "$?" != "0" ] && { $DIALOG --title "$TITLE1" --msgbox "$ERROR `cat $TMP.err`" 10 75; bailout; }
    mount | grep -q "$ParKnoppixPART.*ntfs" && { $DIALOG --title "$TITLE1" --msgbox "$ERROR NTFS" 10 75; bailout; }
    mount -o remount,rw "$ParKnoppixPART"
    
    
    # create the ParKnoppixPART, etc
    mkdir $ParKnoppixPART/parallel_knoppix_remaster
    export ParKnoppixDIR=$ParKnoppixPART/parallel_knoppix_remaster
    
    # get rid of old, if it exists
    rm -R -f $ParKnoppixDIR
    
    # copy the new
    mkdir $ParKnoppixDIR
    mkdir $ParKnoppixDIR/source
    mkdir $ParKnoppixDIR/source/KNOPPIX
    mkdir $ParKnoppixDIR/master
    mkdir $ParKnoppixDIR/master/KNOPPIX
    mkdir $ParKnoppixDIR/master/boot
    cp -a /cdrom/boot/ $ParKnoppixDIR/master/
    cp -a /cdrom/KNOPPIX/modules $ParKnoppixDIR/master/KNOPPIX
    cp -Rp /KNOPPIX/* $ParKnoppixDIR/source/KNOPPIX
    
    echo "Finish configuring desktop, then reboot normal distro"
    echo "and proceed to chroot activities"
    
    
    # final report
    SUCCESS="OK, the Knoppix source is now on the HD, ready for remastering"
    $DIALOG --title "$TITLE1" --msgbox "$SUCCESS" 12 65
    
    bailout

  3. #3
    Junior Member registered user
    Join Date
    Jan 2005
    Posts
    12
    Thanks for the script.

    Can you elaborate a little more as to when to execute the script? Normally what I do is boot knoppix 2, then at the prompt, mount my HD partition, and wget the latest menu scripts from: debian.tu-bs.de "remaster 0.1-6.tar.gz" untar, and then execute the ./knoppix-remaster script.

    Is what you provided a replacement to that script? or something that needs to be done in addition to this step?

    Thanks.

  4. #4
    Member registered user
    Join Date
    Jun 2004
    Posts
    89
    This script is to be run while you are booted up in Knoppix. It's a replacement for the other script you mention, and it's not necessarily better. It does work with Knoppix 5.0.1, though. The only new thing is the modules directory, this will probably be taken care of in the scripts you usually use, if it hasn't been done already. You can see how I use my script at http://pareto.uab.es/mcreel/Parallel...dvanced_topics

  5. #5
    Junior Member
    Join Date
    Jan 2006
    Location
    Ocala, Fla
    Posts
    3

    More Info please

    mcree,
    I dropped in on your website and attempted to see how you use the script.
    The Script you attached appears to be only a small part of the RE-master process.
    I was unable to see the rest of the process. Can you elaberate?
    Your post says
    .. to be run while booted up in Knoppix
    Does that mean Live CD?

    kantana,
    I also looked at the remaster 0.1-6 script. I grabbed and installed the .deb version of the script. After working with it for awhile I was unable to generate an iso file.

    It may be that I am going at it the wrong way. I am trying to create a CD of a system that has been installed to HD. I have been able to remaster Knoppix 3.7 without any problems. I have been using and older version of the remaster script, which doesn't look anything like this latest one.

    Thanks.

  6. #6
    Member registered user
    Join Date
    Jun 2004
    Posts
    89
    That script above is meant to be used while running the live CD, not after a HD install. It only gets the source for the remaster onto your hard disk. You need to do chroot activities, etc., from your normal distro. The ParallelKnoppix CD uses this script and 2 others to do remastering. The second takes care of chroot, and the 3rd creates the ISO image. I guess that the more general purpose scripts take care of all of this now. M.

  7. #7
    Junior Member
    Join Date
    Jan 2006
    Location
    Ocala, Fla
    Posts
    3
    Thanks for your reply.

    I have been approching this from the other end, from the HD install.
    Out of curiosity, I dropped in @ OSS Watch and looked over their How-to use Knoppix-Remaster. http://www.oss-watch.ac.uk/resources...ixremaster.xml

    I think that I'll give the Remaster from Live CD a try.

Similar Threads

  1. New Release?
    By jefro in forum The Lounge
    Replies: 4
    Last Post: 03-06-2009, 04:43 PM
  2. New V3.3-2003-11-03 release
    By baldyeti in forum News
    Replies: 29
    Last Post: 12-03-2003, 03:20 AM
  3. NEW RELEASE???
    By Ritchie in forum The Lounge
    Replies: 0
    Last Post: 11-02-2003, 10:57 PM
  4. QTParted is on the 04-28 release
    By aay in forum The Lounge
    Replies: 0
    Last Post: 05-03-2003, 04:29 AM
  5. 2002-12-10 release is out
    By aay in forum News
    Replies: 1
    Last Post: 12-11-2002, 07:18 AM

Posting Permissions

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


Lenovo ThinkStation P520c Intel Xeon W-2133 6-Core 3.60GHz -NO RAM/ HDD/ GPU/ OS picture

Lenovo ThinkStation P520c Intel Xeon W-2133 6-Core 3.60GHz -NO RAM/ HDD/ GPU/ OS

$127.54



Intel Xeon Phi 5110P 60-Core 1.053GHz Coprocessor   picture

Intel Xeon Phi 5110P 60-Core 1.053GHz Coprocessor

$50.00



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS picture

Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS

$239.99



Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS picture

Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS

$179.98



Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS picture

Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS

$84.49



Intel Xeon E5-2680 V2 2.8GHz 10-Core 25MB 8GT/s SR1A6 LGA2011 B Grade Server CPU picture

Intel Xeon E5-2680 V2 2.8GHz 10-Core 25MB 8GT/s SR1A6 LGA2011 B Grade Server CPU

$7.95



HP ZBook Fury G8 15.6'' Intel Xeon W-11955M 2.6GHz 64GB RAM 1TB SSD RTX A2000 picture

HP ZBook Fury G8 15.6'' Intel Xeon W-11955M 2.6GHz 64GB RAM 1TB SSD RTX A2000

$599.99



HP Z440 Workstation TWR Xeon E5-1603 v3, 8GB RAM, NVS310, SB1570, NO SSD/OS #95 picture

HP Z440 Workstation TWR Xeon E5-1603 v3, 8GB RAM, NVS310, SB1570, NO SSD/OS #95

$89.99



Dell Precision T1700 Workstation Intel Xeon 16G Ram 256GG SSD Nvidia 600  Win 10 picture

Dell Precision T1700 Workstation Intel Xeon 16G Ram 256GG SSD Nvidia 600 Win 10

$109.99