Results 1 to 6 of 6

Thread: repackaging an updated bt5

  1. #1
    Member
    Join Date
    Nov 2008
    Posts
    62

    Default repackaging an updated bt5

    There are a bunch of things i'd like to update to my bt5 usb stick. Thing is, it's a live install. So, I have to boot from the usb, do the updating, and then repackage the thing into squashfs, etc.

    Why update you ask, well, installing nvidia drivers for one and also the marvellous update script
    (http://www.backtrack-linux.org/forum...section/41766-[-]-update-script-backtrack-5-a-6.html)

    Instructions for repackaging ubuntu are here
    (https://help.ubuntu.com/community/LiveCDCustomization)

    But this is for repackaging a modified but not installed ubuntu liveCD
    Instructions for repackaging BT4 are here
    http://www.offensive-security.com/ba...e-tutorial.pdf
    but the link mentioned in there does not work. And the reference to remastersys is generic but not instructive.

    Is there any faq on repackaging bt5 that I may have missed in my searches?

  2. #2
    Senior Member
    Join Date
    May 2010
    Posts
    198

    Default Re: repackaging an updated bt5

    Remastersys isn't that complicated
    Code:
    root@postgres:~# remastersys --help
     
    Usage of remastersys 2.0.18-1 is as follows:
     
       sudo remastersys backup|clean|dist [cdfs|iso] [filename.iso]
     
     
    Examples:
     
       sudo remastersys backup   (to make a livecd/dvd backup of your system)
     
       sudo remastersys backup custom.iso
                                 (to make a livecd/dvd backup and call the iso custom.iso)
     
       sudo remastersys clean    (to clean up temporary files of remastersys)
     
       sudo remastersys dist     (to make a distributable livecd/dvd of your system)
     
       sudo remastersys dist cdfs
                                 (to make a distributable livecd/dvd filesystem only)
     
       sudo remastersys dist iso custom.iso
                                 (to make a distributable iso named custom.iso but only
                                  if the cdfs is already present)
     
       cdfs and iso options should only be used if you wish to modify something on the
       cd before the iso is created.  An example of this would be to modify the isolinux
       portion of the livecd/dvd
    Quote Originally Posted by bwana View Post
    There are a bunch of things i'd like to update to my bt5 usb stick. Thing is, it's a live install. So, I have to boot from the usb, do the updating, and then repackage the thing into squashfs, etc.

    Why update you ask, well, installing nvidia drivers for one and also the marvellous update script
    (http://www.backtrack-linux.org/forum...section/41766-[-]-update-script-backtrack-5-a-6.html)

    Instructions for repackaging ubuntu are here
    (https://help.ubuntu.com/community/LiveCDCustomization)

    But this is for repackaging a modified but not installed ubuntu liveCD
    Instructions for repackaging BT4 are here
    http://www.offensive-security.com/ba...e-tutorial.pdf
    but the link mentioned in there does not work. And the reference to remastersys is generic but not instructive.

    Is there any faq on repackaging bt5 that I may have missed in my searches?
    "Never do anything against conscience -- even if the state demands it."
    -- Albert Einstein

  3. #3
    Member
    Join Date
    Nov 2008
    Posts
    62

    Default Re: repackaging an updated bt5

    tnx for the pointer to remastersys. here are the details for any other linux noobs like me.

    remastersys is not included in bt5. I have to install it.
    I went to install it to my current bt5 install this way:

    nano /etc/apt/sources.list

    add the following line
    deb http://www.geekconnection.org/remastersys/repository karmic/

    (this particular repository for For Karmic, Lucid and Newer with grub2 - version 2.0.13-1 and up)
    then
    apt-get update

    then
    remastersys backup

    well, it starts out ok but there is a cryptic error

    cannot create regular file '/home/postgres/Desktop' : No such file or directory

    but it keeps going and seems like it's going to work but then i get these 2 lines over and over

    [number] aufs au_xino_do_write:381ostgres[1822]: I/O error write failed (4294967268)
    [number + ~.006] aufs au_xino_do_write:417ostgres[1822]: I/O error write failed (-5)

    Not even control -c or a soft reset will stop this runaway train. I have to power down to reboot.
    I am guessing that it's trying to backup the system to the usb stick but cannot-maybe because there is no real directory structure on the usb stick-just a squashfs file.

    So I rebooted, reinstalled remastersys,mounted my hard drive this way
    mkdir /mnt/win
    mount /dev/sdc1 /mnt/win

    and did
    remastersys backup /mnt/win/custom.iso

    SAME PROBLEM! I look on my hard drive and find
    custom.iso.md5 but obviously no iso
    now what?

  4. #4
    Senior Member
    Join Date
    May 2010
    Posts
    198

    Default Re: repackaging an updated bt5

    wait - you want to make an iso of your usb install?

    Quote Originally Posted by bwana View Post
    tnx for the pointer to remastersys. here are the details for any other linux noobs like me.

    remastersys is not included in bt5. I have to install it.
    I went to install it to my current bt5 install this way:

    nano /etc/apt/sources.list

    add the following line
    deb http://www.geekconnection.org/remastersys/repository karmic/

    (this particular repository for For Karmic, Lucid and Newer with grub2 - version 2.0.13-1 and up)
    then
    apt-get update

    then
    remastersys backup

    well, it starts out ok but there is a cryptic error

    cannot create regular file '/home/postgres/Desktop' : No such file or directory

    but it keeps going and seems like it's going to work but then i get these 2 lines over and over

    [number] aufs au_xino_do_write:381ostgres[1822]: I/O error write failed (4294967268)
    [number + ~.006] aufs au_xino_do_write:417ostgres[1822]: I/O error write failed (-5)

    Not even control -c or a soft reset will stop this runaway train. I have to power down to reboot.
    I am guessing that it's trying to backup the system to the usb stick but cannot-maybe because there is no real directory structure on the usb stick-just a squashfs file.

    So I rebooted, reinstalled remastersys,mounted my hard drive this way
    mkdir /mnt/win
    mount /dev/sdc1 /mnt/win

    and did
    remastersys backup /mnt/win/custom.iso

    SAME PROBLEM! I look on my hard drive and find
    custom.iso.md5 but obviously no iso
    now what?
    "Never do anything against conscience -- even if the state demands it."
    -- Albert Einstein

  5. #5
    Member
    Join Date
    Nov 2008
    Posts
    62

    Default Re: repackaging an updated bt5

    Yes.


    I am working o a friend's pc and do not want to install stuff to his HD. I boot into bt5 and want to make modifications (update the tools, update the distro,install nvidia drivers, install remastersys!) I can do all this but then want to save my changes so that they are persistent. However, a persistent live usb install still wont do the trick as it saves only certain data and not changes to the os.

    So i am trying to make a 'fresh' usb install with all the changes and then re-image that. remastersys can be installed to a live usb install but obviously it disappears at next boot, UNLESS i rebuild the iso. Can this be done booting from the usb?

  6. #6
    Member
    Join Date
    Nov 2008
    Posts
    62

    Default Re: repackaging an updated bt5

    fragadelic (author of remastersys) says:


    "The problem with trying to run it on a live running system is exactly what you are encountering. The installed one shouldn't have the issue though.
    The other issue is that it will require a lot of ram since the /home folder and any changes made to it are actually stored in ram while running the live.
    You should install this to a temp hard drive and remaster it from there."

Similar Threads

  1. [UPDATED] Owasp zap 1.1.0
    By psiinon in forum Tool Requests
    Replies: 4
    Last Post: 12-09-2010, 08:38 PM
  2. Dr_green ISO updated BT3 to 2.6.28
    By doctorman in forum OLD Newbie Area
    Replies: 9
    Last Post: 01-23-2009, 04:55 PM
  3. Updated GTK, Now issues
    By hightech in forum OLD Newbie Area
    Replies: 0
    Last Post: 10-21-2008, 10:30 PM
  4. Onesixtyone updated!
    By williamc in forum OLD BT3beta Software related issues
    Replies: 1
    Last Post: 05-06-2008, 12:09 PM
  5. Airoscript - Updated 12-12-07
    By holyiosef in forum OLD Wireless
    Replies: 3
    Last Post: 02-11-2008, 11:45 PM

Posting Permissions

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