-
Junior Member
registered user
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
-
Forum Rules
1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports
$149.00
Supermicro 2U Server 12 Caddy Bay 3.5 LFF E ATX Storage Chassis SAS2 6GBPS Rail
$199.00
FOR PARTS - HPE ProLiant MicroServer Gen10 Plus Server
$199.95
SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount
$202.49
HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon
$846.48
Supermicro 505-2 Mini-1U Server 5018A-FTN4 16GB 2.4ghz Atom + Rack Ears
$183.08
Supermicro CSE 823-6 2U 6 Bay Chassis ,1xPWS 653-2H 650Wsold as in the photo,
$119.75
CEOhack 1U X9DRW-3TF+ 4 Bay Server 64GB DDR3 1x E5-2667 V2 3.30GHz 8C 1x 1TB HDD
$119.00
1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE
$273.00
Supermicro 1U SuperServer Intel Xeon E3-1230 V2 CPU 16GB DDR3 ECC 240GB SSD 350W
$299.00