Results 1 to 10 of 19

Thread: resizing knoppix-data.img

Hybrid View

  1. #1
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    There are two issues with respect to your script :-

    1. You make a copy of it. That will require a huge space somewhere.
    2. Do you propose to replace it while it is in active use, or you put it offline first ?

    The ideal place to have a script written for it is in minirt.gz, when one can specify a cheat code to increase the persistent file size. The script shall determine if there is enough room for the size increase. If yes, it shall expand it without making a copy, while it has not been mounted yet.

    But this very risky without making a copy of it. The script has to be absolutely robust to handle all possible errors.

  2. #2
    Junior Member registered user
    Join Date
    Aug 2007
    Posts
    16
    Yes, true. The last two commands are the critical part. Probably should ensure there's enough space on the destination(s) before uncommenting the last two lines. This script is non-destructive otherwise. Either way you will have a backup in $BUIMG (assuming you follow the directions and use a 2nd form of media for $MYDATA with enough space there).

    I now boot my HD like a USB drive using grub4dos so I can still boot WinXP in a pinch (even tho I have a Win7 and XP VirtualBox) so there''s plenty of space. Note the following wont work for grub2....
    Code:
     Installing a USB compatible install non-invasively(sp?) to the HD
    - Do all this from usb booted knoppix
    - get grub4dos and extract the zip somewhere, then cd to that extraction area
      unzip grub4dos-0.*
      cd grub4dos-0.*
    - mkdir /mnt-system/boot/grub
    - ensure the /mnt-system/boot/grub dir has grub's menu.lst:
      cp menu.lst /mnt-system/boot/grub
    - create the MBR if and ONLY if it doesnt exist:
      sudo bootlace.com  /dev/sda # trashes existing MBR careful!
    - copy grub.exe to the /mnt-system/boot/grub area for DOS/98/XP/NT/W7/VISTA
      cp grub.exe /mnt-system/boot/grub
    - cp the grldr to the root of the hard drive:
      cp grldr /mnt/sda1
    - add the following lines from the boot/syslinux/syslinux.cfg:
      Note: the kernel line contains everything from the syslinux.cfg append statement except the initrd=stuff (even tho it can be left in place)
    # this is a long cmd so be careful!
    # this will /insert lines before the first title in menu.lst - and the kernel line will ignore the initrd=...
       sed -p '/title/i\ 
    title knoppix # any name to describe this boot
    root (hd0,0)  # /dev/sda1 - note the kernel line is from a knoppix 6.23 cfg
    kernel /boot/syslinux/linux ramdisk_size=100000 lang=en vt.default_utf8=0 apm=power-off vga=0x311 initrd=minirt.gz nomce quiet loglevel=0 tz=localtime
    initrd /boot/syslinux/minirt.gz 
    /' /mnt-sytem/boot/grub/menu.lst
    
    - now the boot/ and KNOPPIX/ dirs need to be copied to the /mnt/sda1 destination
    - copy /mnt-system/{KNOPPIX,boot} to the hd partition:
      cd /mnt-system; for dir in KNOPPIX boot; do cp -av $dir /mnt/sda1; done

Posting Permissions

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


10 PCS Cisco GLC-LH-SMD 10-2625-01 1310nm SFP Transceiver Module picture

10 PCS Cisco GLC-LH-SMD 10-2625-01 1310nm SFP Transceiver Module

$85.00



New Cisco w/ Green Hologram SFP-25G-SR-S 25G SFP28 SR 850nm 300m LC MMF Module picture

New Cisco w/ Green Hologram SFP-25G-SR-S 25G SFP28 SR 850nm 300m LC MMF Module

$69.99



NEW Open Box Dell PowerConnect M8024-SFP+ Quad Port 10GbE SFP Module 0N805D (BH) picture

NEW Open Box Dell PowerConnect M8024-SFP+ Quad Port 10GbE SFP Module 0N805D (BH)

$29.99



HP Aruba JL083A HP 3-port 10GbE SFP+ 3910M/2910M Expansion Module picture

HP Aruba JL083A HP 3-port 10GbE SFP+ 3910M/2910M Expansion Module

$150.00



Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03  picture

Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03

$8.00



GENUINE Cisco SFP-10G-SR V03 SFP+ GBIC Transceiver Module 10-2415-03 picture

GENUINE Cisco SFP-10G-SR V03 SFP+ GBIC Transceiver Module 10-2415-03

$6.80



Lot of 10 - HP 10Gb SR SFP+ Transceiver 455883-B21 455885-001 456096-001 850nm picture

Lot of 10 - HP 10Gb SR SFP+ Transceiver 455883-B21 455885-001 456096-001 850nm

$23.99



(Lot of 10) Cisco SFP-10G-SR SFP+ Transceiver Module 10-2415-03 picture

(Lot of 10) Cisco SFP-10G-SR SFP+ Transceiver Module 10-2415-03

$40.00



Brand New Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Module 1310nm 10km SMF LC picture

Brand New Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Module 1310nm 10km SMF LC

$10.99



New Cisco w/ Green Hologram GLC-LH-SMD 1G SFP LX 1310nm 10km SMF LC Module picture

New Cisco w/ Green Hologram GLC-LH-SMD 1G SFP LX 1310nm 10km SMF LC Module

$16.99