Results 1 to 3 of 3

Thread: LZM Script/lzm2dir script

Hybrid View

  1. #1
    Just burned his ISO
    Join Date
    Nov 2007
    Posts
    1

    Default LZM Script/lzm2dir script

    1)
    Heres a small script I made to save all your settings the first time you run BT2 and do updates etc.

    Code:
    echo "building Boot.lzm"
    dir2lzm /mnt/live/memory/changes Boot.lzm 
    cd /root
    echo "moving /root/Boot.lzm to /mnt/sda1_removable/bt/modules/"
    mv Boot.lzm /mnt/sda1_removable/bt/modules
    echo "Completed!"
    Just make sure its executeable, then drag/drop it to Konsole hit paste then enter.

    2)
    I was trying to make a script that would merge the new settings with the old lmz, but I get an error.

    Script isnt because of the error but what I have so far:
    Code:
    cd /mnt/sda1_removable/bt/modules/
    lmz2dir Boot.lzm /mnt/sda1_removable/bt/modules/Boot
    mv /mnt/sda1_removable/bt/modules/Boot /mnt/live/memory/changes
    dir2lzm /mnt/live/memory/changes Boot.lzm 
    cd /root
    mv Boot.lzm /mnt/sda1_removable/bt/modules
    Theres so many errors it takes up several screens, but heres a few

    create_inode: failed to create hardlink, because Operation not permitted
    create_inode: failed to create hardlink, because Operation not permitted
    create_inode: failed to create hardlink, because Operation not permitted
    create_inode: failed to create hardlink, because Operation not permitted
    create_inode: socket //tmp/.ICE-unix/5379 ignored
    create_inode: socket //tmp/.ICE-unix/dcop5368-1196194038 ignored

  2. #2
    Senior Member shamanvirtuel's Avatar
    Join Date
    Mar 2010
    Location
    Somewhere in the "Ex" human right country
    Posts
    2,988

    Default

    have you try to merge your changes before you transfer all stuff on removable drive ? i think it's better to do it on the hd....
    Watch your back, your packetz will belong to me soon... xD

    BackTrack :
    Giving Machine Guns to Monkeys since 2006

  3. #3
    Developer balding_parrot's Avatar
    Join Date
    May 2007
    Posts
    3,399

    Default

    Quote Originally Posted by unseen View Post
    1
    Code:
    cd /mnt/sda1_removable/bt/modules/
     lmz2dir Boot.lzm /mnt/sda1_removable/bt/modules/Boot
    mv /mnt/sda1_removable/bt/modules/Boot /mnt/live/memory/changes
    dir2lzm /mnt/live/memory/changes Boot.lzm 
    cd /root
    mv Boot.lzm /mnt/sda1_removable/bt/modules
    It's lzm2dir

    I thought at first it may be a typo but you put it twice in the title and once in the script.

Posting Permissions

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