sobota, 16 lutego 2013

bootowalny pendrive ratunkowy


bootowalny pendrive USB -- jak utworzyć bootowalny PenDrive -- jak zrobić bootowalny pendrive -- jak stworzyć bootowalny pendrive -- tworzenie bootowalnego pendrive

Najciekawszym darmowym zestawem narzędzi do tworzenia pendrive'a jest RMPrepUSB - http://www.rmprepusb.com/. Na podanej stronie poza instalatorem można znaleźć  dużo poradników związanych z grub4dos.




Instrukcja użycia RMPrepUSB
  1. Rozmiar: MAX
  2. Nazwa woluminu: dowolna
  3. Opcje uruchamiania: MS-DOS bootable [IO.SYS]
  4. System plików i obejścia: FAT32
  5. Twórz dysk USB
  6. Zainstaluj Grub4dos (czekaj aż wyskoczy zapytanie o kopiowanie grldr - zaakceptuj)
  7. Skopiuj na pendrive menu.lst i obrazy płyt
  8. Upewnij się, że wszystkie pliki są nie są pofragmentowane:
    w RMPrepUSB skrót ctrl+F2 lub  drive>make all files contigous
  9. Przetestuj działanie emulatorem QEMU:
    w RMPrepUSB skrót F11

Za pomocą Grub4dos można uruchomić m.in. następujące pakiety:

Zazwyczaj wystarczy jedynie skopiować plik iso na pendrive i użyć odpowiedniego wpisu menu. Jeśli użycie programu jest bardziej skomplikowane została dołączona do niego dodatkowa instrukcja.

  • Hiren's Boot CD (dodatkowa instrukcja poniżej) - ostatnia wersja z płatnymi programami to 10.6 - http://www.hiren.info/pages/bootcd
  • Ubuntu - http://www.ubuntu.com/
  • XBMCbuntu (dodatkowa instrukcja poniżej) - http://xbmc.org/
  • OpenELEC (dodatkowa instrukcja poniżej) - http://openelec.tv/
  • Norton Ghost
  • Acronis True Image
  • EASEUS Partition Master
  • Acronis Disk Director
  • Wondershare Live Boot
  • Paragon Rescue Kit - http://www.paragon-software.pl/products/free/id,255
  • Tiny Core Linux - http://distro.ibiblio.org/tinycorelinux/
  • Active Password Changer
  • Trinity Rescue Kit (dodatkowa instrukcja poniżej) - Trinity Rescue Kit

Instalacja syslinux

Syslinux jest prostym programem rozruchowym, który można zainstalować opcjonalnie. W klasycznym rozwiązaniu nie jest wymagany.
  1. w programie RMPrepUSB zainstaluj syslinux (w trakcie operacji wybierz opcję 3)
  2. skopiuj do pendrive plik grub.exe ze stronyhttp://www.icpug.org.uk/national/linnwin/step1-9x.htm
  3. utwórz na pendrive plik syslinux.cfg zawierający następujący tekst
    default /grub.exe

Plop - bootmanager

Plop jest managerem rozruchu. Za jego pomocą można wybrać dowolną partycję dysku, a program spróbuje uruchomić istniejący na niej system.
Manager można wypalić na płycie i uruchamiać z niej pendrive w przypadku komputerów które nie obsługoją bootownaia z pendrive'a.


Hiren's Boot CD - przygotowanie plików
  1. Zamontować obraz iso.
  2. Na pendrive skopiować folder HBCD
  3. Wywołanie menu HBCD jest podane w pliku menu.lst który jest poniżej

XBMCbuntu - przygotowanie plików
  1. Zamontować obraz iso
  2. Na penrive'ie utworzyć folder xbmcbuntu i przegrać do niego zawartość folderu casper
  3. Bezpośrednio na pendrive przegrać folder .disk (wymagany jest plik casper-uuid-xxxx)
  4. Aby zmiany w ubuntu były zachowywane (persistent) należy za pomocą programu RMPrepUSB utworzyć plik ext2 FS. Należy nadać mu nazwę casper-rw i po utworzeniu przenieść do folderu xbmcbuntu. Wielkość pliku zależna od potrzeb - testowo 100MB, czasami 2GB. Uwaga: gdyby plik już istniał na pamięci można utworzyć plik o innej nazwie i zmienić ją po przeniesieniu do podfolderu.
  5. Menu potrzebne do uruchomienia XBMCbuntu znajduje się poniżej w pliku xbmcbuntu.lst

OpenELEC - przygotowanie plików
  1. Pobrać ze strony OpenELEC archiwum odpowiednie do architektury komputera
  2. Wypakować bezpośrednio na pendrive KERNEL i SYSTEM z folderu target w archiwum
  3. Za pomocą programu partycjonującego (np. GParted) zmniejszyć główną partycję pendrive'a i utworzyć na dodatkową z formatowaniem ext4
  4. Menu potrzebne do uruchomienia OpenELEC znajduje się poniżej w pliku openelec.lst
Uwaga 1: aby ukryć alerty dopisać na końcu wpisu nową linię z tekstem clear
Uwaga 2: Prawdopodobnie, aby wgrać na pendrive kilka wariantów OpenELEC należy utworzyć dodatkowe partycje np:
| SLOT1 | SLOT2 | OE_STORAGE | <<partycje


Trinity Rescue Kit - przygotowanie plików
  1. Zamontować obraz iso
  2. Przegrać na pendrive cały folder trk3
  3. Przegrać z płyty do folderu trk3 na pamięci pliki:
    initrd.trk
    kernel.trk
    memtest.x86
  4. Menu potrzebne do uruchomienia Trinity Rescue Kit znajduje się poniżej w pliku trk3.lst
Uwaga 1: w menu głównym przed wywołaniem pliku trk3.lst należy zadeklarować poprawną nazwę woluminu.
Uwaga 2: trzeba zachować wielkość liter!


Przykładowy zestaw plików menu

menu.lst

default /default

title Boot from Hard Drive\n
rootnoverify (hd0,0)
chainloader (hd0,0)+1

title
root

title Hirens Boot CD
configfile /HBCD/menu.lst

title Ubuntu
configfile /ubuntu.lst

title XBMCbuntu
configfile /xbmcbuntu.lst
title ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
root

title Norton Ghost 15
find --set-root /images/norton_ghost_15.iso
map (hd0,0)/images/norton_ghost_15.iso (hd32) || map -mem (hd0,0)/images/norton_ghost_15.iso (hd32)
map --hook
chainloader (hd32)
boot

title Acronis True Image Home 2011
find --set-root /images/acronis_true_image_2011.iso
map (hd0,0)/images/acronis_true_image_2011.iso (hd32) || map -mem (hd0,0)/images/acronis_true_image_2011.iso (hd32)
map --hook
chainloader (hd32)
boot

title ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
root

title EASEUS Partition Master 9
find --set-root /images/easeus_partition_master_9_1_1.iso
map (hd0,0)/images/easeus_partition_master_9_1_1.iso (hd32) || map -mem (hd0,0)/images/easeus_partition_master_9_1_1.iso
map --hook
chainloader (hd32)
boot

title Acronis Disk Director 11
find --set-root /images/acronis_disk_director_11.iso
map (hd0,0)/images/acronis_disk_director_11.iso (hd32) || map -mem (hd0,0)/images/acronis_disk_director_11.iso (hd32)
map --hook
chainloader (hd32)
boot

title ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
root

title Wondershare Live Boot 2012
find --set-root /images/wondershare_live_boot_2012.iso
map (hd0,0)/images/wondershare_live_boot_2012.iso (hd32) || map -mem (hd0,0)/images/wondershare_live_boot_2012.iso (hd32)
map --hook
chainloader (hd32)
boot

title Paragon Rescue Kit 11
find --set-root /images/CorePlus-4.5.5.iso
map (hd0,0)/images/paragon_rescue_kit_11.iso (hd32) || map -mem (hd0,0)/images/paragon_rescue_kit_11.iso (hd32)
map --hook
chainloader (hd32)
boot

title Core Linux
find --set-root /images/paragon_rescue_kit_11.iso
map (hd0,0)/images/CorePlus-4.5.5.iso (hd32) || map -mem (hd0,0)/images/CorePlus-4.5.5.iso (hd32)
map --hook
chainloader (hd32)
boot

title Active Password Changer 3
map (hd0,0)/images/active_password_changer_3.iso (hd32) || map -mem (hd0,0)/images/active_password_changer_3.iso (hd32)
map --hook
chainloader (hd32)
boot

title Trinity Rescue Kit
# You must set the drive volume label on the next line
set VOL=BOX
configfile /trk3.lst

title Reboot
reboot

title Shutdown
halt

title ...Back
root


ubuntu.lst

default /default
title BACT TO THE TOP-MENU
configfile /menu.lst

title
root

title Try Ubuntu without installing
find --set-root /images/ubuntu-12.04-desktop-i386.iso
map /images/ubuntu-12.04-desktop-i386.iso (0xff) || map --mem /images/ubuntu-11.04-desktop-i386.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed noprompt boot=casper persistent iso-scan/filename=/images/ubuntu-11.04-desktop-i386.iso quiet splash --
initrd /casper/initrd.lz

title Install Ubuntu
find --set-root /ubuntu-11.04-desktop-i386.iso
map /images/ubuntu-12.04-desktop-i386.iso (0xff) || map --mem /images/ubuntu-12.04-desktop-i386.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed noprompt boot=casper only-ubiquity iso-scan/filename=/images/ubuntu-12.04-desktop-i386.iso quiet splash --
initrd /casper/initrd.lz

title Check disc for defects
find --set-root /ubuntu-11.04-desktop-i386.iso
map /images/ubuntu-12.04-desktop-i386.iso (0xff) || map --mem /images/ubuntu-12.04-desktop-i386.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz boot=casper integrity-check noprompt iso-scan/filename=/images/ubuntu-12.04-desktop-i386.iso quiet splash --
initrd /casper/initrd.lz

title Test memory
find --set-root /ubuntu-11.04-desktop-i386.iso
map /images/ubuntu-12.04-desktop-i386.iso (0xff) || map --mem /images/ubuntu-12.04-desktop-i386.iso (0xff)
map --hook
root (0xff)
kernel /install/mt86plus


xbmcbuntu.lst

default /default

title BACT TO THE TOP-MENU
configfile /menu.lst

title
root

title XbmcUbuntu Live (Not Persistent)\nTry xbmcbuntu without installing it
kernel /xbmcbuntu/vmlinuz boot=casper live-media-path=/xbmcbuntu nopersistent quiet splash --
initrd /xbmcbuntu/initrd.lz

title XbmcUbuntu Live - Persistent\Try xbmcbuntu without installing and keep all changes
kernel /xbmcbuntu/vmlinuz boot=casper live-media-path=/xbmcbuntu persistent persistent-path=/xbmcbuntu quiet splash --
initrd /xbmcbuntu/initrd.lz

title Install XBMCbuntu to HDD or another Flash drive\nInstall XBMCbuntu to an HDD or UFD
kernel /xbmcbuntu/vmlinuz boot=casper live-media-path=/xbmcbuntu file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity debug-ubiquity quiet splash --
initrd /xbmcbuntu/initrd.lz

title Install XBMCbuntu with fixed dpi (120x120)\nInstall XBMCbuntu to an HDD or UFD
kernel /xbmcbuntu/vmlinuz boot=casper live-media-path=/xbmcbuntu file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity xbmc=setdpi debug-ubiquity quiet splash --
initrd /xbmcbuntu/initrd.lz


trk3.lst

default /default

title BACT TO THE TOP-MENU
configfile /menu.lst

title
root

echo PLEASE CHECK THIS DRIVE'S VOLUME LABEL = %VOL% (or you will get an error!)
debug -1
pause --wait=4
debug on

title 0 : Run Trinity Rescue Kit 3.4 (default mode, with text menu)
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 trkmenu vollabel=%VOL%
initrd /trk3/initrd.trk

title 1 : TRK 3.4 in failsafe mode (No menu, VGA, noacpi, noapic)
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose acpi=off noapic pci=conf1 vga=1 vollabel=%VOL%
initrd /trk3/initrd.trk

title 2 : TRK 3.4 running from RAM (best >= 512mb, 256mb min)
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 trkinmem trkmenu vollabel=%VOL%
initrd /trk3/initrd.trk

title 3 : TRK 3.4 - Run 'mclone' in client mode (!)
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 mclone vollabel=%VOL%
initrd /trk3/initrd.trk

title 4 : TRK 3.4 in simple VGA mode (debugging of kernel output)
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=1 pci=conf1 splash=off trkmenu vollabel=%VOL%
initrd /trk3/initrd.trk

title 5 : TRK 3.4 with Belgian keyboard (use menu for other)
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 keyb_be trkmenu vollabel=%VOL%
initrd /trk3/initrd.trk

title 6 : TRK 3.4 - Virus scan all drives (Clamav, non interactive)
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 virusscan vollabel=%VOL%
initrd /trk3/initrd.trk

title 7 : TRK 3.4 - Try more pcmcia and usb nics (when not detected)
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 pcmcia trkmenu vollabel=%VOL%
initrd /trk3/initrd.trk

title 8 : TRK 3.4 - Try more SCSI drivers (when disks not detected)
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 scsidrv trkmenu vollabel=%VOL%
initrd /trk3/initrd.trk

title 9 : TRK 3.4 with a secure shell server enabled
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 sshd vollabel=%VOL%
initrd /trk3/initrd.trk

title 10: TRK 3.4 - Execute local scripts on harddrive of PC
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 locscr vollabel=%VOL%
initrd /trk3/initrd.trk

title 11: TRK 3.4 as bootserver to boot other TRK clients
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 trkbootnet trkmenu vollabel=%VOL%
initrd /trk3/initrd.trk

title 12: TRK 3.4 - Fileshare all drives as guest, no security
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 smbguest trkmenu vollabel=%VOL%
initrd /trk3/initrd.trk

title 13: TRK 3.4 - Single user mode (no menu)
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 runlevel 1 vollabel=%VOL%
initrd /trk3/initrd.trk

title 14: TRK 3.4 - Acpi=off, noapic PCI=bios (Alternate boot 1)
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose acpi=off noapic pci=bios trkmenu vollabel=%VOL%
initrd /trk3/initrd.trk

title 15: TRK 3.4 - Acpi=off, noapic PCI=any (Alternate boot 2)
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose acpi=off noapic trkmenu vollabel=%VOL%
initrd /trk3/initrd.trk

title 16: TRK 3.4 - PCI=conf2 (Alternate boot 3)
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf2 trkmenu vollabel=%VOL%
initrd /trk3/initrd.trk

title 17: TRK 3.4 - Verbose startup for debugging (no menu)
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 debugging vollabel=%VOL%
initrd /trk3/initrd.trk

title 18: TRK 3.4 - SSH, boot- and guest fileserver, run from RAM
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 sshd trkinmem smbguest trkbootnet trkmenu vollabel=%VOL%
initrd /trk3/initrd.trk

title 19: TRK 3.4 - Run from RAM, run mclone as client
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 trkinmem mclone vollabel=%VOL%
initrd /trk3/initrd.trk

title 20: TRK 3.4 with proxyserver support enabled
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 proxy trkmenu vollabel=%VOL%
initrd /trk3/initrd.trk

title 21: TRK 3.4 - All devices set to read-only
kernel /trk3/kernel.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 allro vollabel=%VOL%
initrd /trk3/initrd.trk

title 22: Memory tester: Memtest86+ v1.65
kernel /trk3/memtest.x86


openelec.lst

title OpenELEC 3.0 (Beta 4) - 2.95.4 ION i386
root (hd0,0)
kernel /KERNEL boot=/dev/sdb1 disk=/dev/sdb2 quiet

title OpenELEC 3.0 (Beta 4) - 2.95.4 ION i386 - ???
root (hd0,0)
kernel /KERNEL boot=LABEL=SLOT2 disk=LABEL=OE_STORAGE quiet

title OpenELEC 3.0 (Beta 4) - 2.95.4 ION i386 - INSTALL
root (hd0,0)
kernel /KERNEL boot=/dev/sdb1 disk=/dev/sdb2 quiet

1 komentarz:

  1. Używam YUMI - prościej.
    Wersja 0.1.1 próbuje instalować linuxy po swojemu, najnowsza montuje ISO z różnym skutkiem.
    Alternatywą dla instalacji Grub4dos jest skopiowanie do głównego katalogu plików; grldr i menu.lst, oraz wpisanie w pliku syslinux.cfg:
    LABEL grub4dos
    MENU LABEL Grub4dos
    BOOT /grldr
    ..
    USB bootuje z syslinuxa i wybierając w menu Grub4dos, to ten ostatni przejmuje kontrolę. Dobrze bootuje wiele systemów live (linux, windows) i programów narzędziowych. Jest jednak wiele linuxów i niektóre lepiej bootują jak ustawi to YUMI a nie spod grub4dos.

    OdpowiedzUsuń