Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:boot_flash [2012/05/08 09:18] – [Steps] kolan | wiki:boot_flash [2015/01/18 12:17] (current) – kolan | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Boot USB stick ===== | + | The page moved to [[gnu_linux:boot:usb_stick|Boot USB stick]]. |
- | + | ||
- | Here a short instruction how to create a multiboot usb flash disk containing | + | |
- | + | ||
- | ===== Steps ===== | + | |
- | ==== Make a backup ==== | + | |
- | Firstly backup all data on the stick (using tar/ | + | |
- | ==== Installing SystemRescueCD ==== | + | |
- | * Under MS Windows: download image [[http:// | + | |
- | * Under GNU/Linux: Mount [[http:// | + | |
- | mkdir iso_dir && sudo mount -o loop,exec " | + | |
- | && echo " | + | |
- | sudo umount iso_dir ; rmdir iso_dir</ | + | |
- | - Set correct file system type to make > | + | |
- | - Add menu items to // | + | |
- | MENU LABEL Debian netinstall 32 bit | + | |
- | KERNEL vmlinuz-debian32 | + | |
- | initrd initrd-debian32.gz | + | |
- | + | ||
- | LABEL Debian netinstall 64 bit | + | |
- | MENU LABEL Debian netinstall 64 bit | + | |
- | KERNEL vmlinuz-debian64 | + | |
- | initrd initrd-debian64.gz | + | |
- | + | ||
- | LABEL Fedora netinstall | + | |
- | MENU LABEL Fedora netinstall | + | |
- | KERNEL vmlinuz-fedora | + | |
- | + | ||
- | LABEL Grub 4 Dos | + | |
- | MENU LABEL 0) Grub 4 DOS | + | |
- | KERNEL grub.exe | + | |
- | + | ||
- | # Firstly, Windows does not found files in /I386 folder because it searches in the root / of the stick. | + | |
- | # Copying them to the root can make another troubles. | + | |
- | #LABEL winxp | + | |
- | # MENU LABEL Boot Windows 2000/ | + | |
- | # COM32 chain.c32 | + | |
- | # APPEND ntldr=/ | + | |
- | #LABEL win7 | + | |
- | # MENU LABEL Boot Windows Vista/ | + | |
- | # COM32 chain.c32 | + | |
- | # APPEND ntldr=/ | + | |
- | + | ||
- | # Solution: boot DOS >7.0 (6.0 does not see FAT32) and install under DOS. | + | |
- | LABEL 4dos | + | |
- | MENU LABEL 4DOS MS-DOS 7.1 RUS | + | |
- | kernel memdisk | + | |
- | append initrd=/ | + | |
- | + | ||
- | # Download if you need 6.22 version of DOS | + | |
- | LABEL dos622 | + | |
- | MENU LABEL DOS 6.22 | + | |
- | kernel memdisk | + | |
- | append initrd=/ | + | |
- | - Extract from [[http:// | + | |
- | timeout 30 | + | |
- | default /default | + | |
- | + | ||
- | splashimage=/ | + | |
- | foreground=AB82FF | + | |
- | background=191970 | + | |
- | + | ||
- | # map + Contig/ | + | |
- | # map --mem hangs in black screen for a long time, then reboot | + | |
- | #title WinXP iso | + | |
- | #find --set-root / | + | |
- | # map /winxp.iso (hd32) | + | |
- | # map --hook | + | |
- | # root (hd32) | + | |
- | # chainloader (hd32) | + | |
- | + | ||
- | # Way to install | + | |
- | # To install Windows XP select "Grub 4 Dos" menu item on boot screen, then select "Dos 7.1 Rus" item | + | |
- | # and type: smartdrv ; c: ; cd c: | + | |
- | # For Windows 98 run setup.exe setup executable. | + | |
- | # For that operations you need Windows installation CD with i386 directory. | + | |
- | + | ||
- | title 4DOS MS-DOS 7.1 RUS | + | |
- | map --mem / | + | |
- | map --hook | + | |
- | chainloader (fd0)+1 | + | |
- | rootnoverify (fd0)</ | + | |
- | - To get available Debian netinstall need to download [[ftp:// | + | |
- | path=/ | + | |
- | ftp_url=" | + | |
- | ftp_path=" | + | |
- | && p=" | + | |
- | && wget " | + | |
- | && wget " | + | |
- | && p=" | + | |
- | && wget " | + | |
- | && wget " | + | |
- | && echo " | + | |
- | || echo " | + | |
- | - To get available Fedora netinstall download [[http:// | + | |
- | wget http:// | + | |
- | - To get available Gentoo installers need to download [[http:// | + | |
- | path=/ | + | |
- | full_path=" | + | |
- | url_path=" | + | |
- | && fname=`wget $url_path/ | + | |
- | && wget " | + | |
- | && fname=`wget $url_path/ | + | |
- | && wget " | + | |
- | && wget " | + | |
- | && echo " | + | |
- | || echo " | + | |
- | - To have DOS 7.1 on the stick download diskette image from [[http:// | + | |
- | wget http:// | + | |
- | && echo "DOS 7.1 download succes\! ;-)" || echo "DOS 7.1 download failed\! ; | + | |
- | - Important! Setup MS Windows in this way with a 100% possibility it erases SYSLINUX boot loader because Windows Installer wrotes it's own boot loader from time to time. However if installation of Windows success you can got to Grub4dos using NTLDR and select DOS 7.1, then type< | + | |
- | timeout=30 | + | |
- | default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS | + | |
- | [operating systems] | + | |
- | multi(0)disk(0)rdisk(0)partition(1)\WINDOWS=" | + | |
- | C: | + | |
- | - Installing Clonezilla. Download latest [[http:// | + | |
- | ├── live | + | |
- | │ | + | |
- | │ | + | |
- | │ | + | |
- | - More Grub4dos menu list examples.< | + | |
- | NT/2K/XP | + | |
- | fallback 1 | + | |
- | find --set-root /ntldr | + | |
- | chainloader /ntldr | + | |
- | savedefault --wait=2 | + | |
- | + | ||
- | title find and load CMLDR, the Recovery | + | |
- | Console of Windows NT/2K/XP | + | |
- | fallback 2 | + | |
- | find --set-root /cmldr | + | |
- | chainloader /cmldr | + | |
- | + | ||
- | # | + | |
- | # write string " | + | |
- | memory 0000:7C03 in 2 steps: | + | |
- | # | + | |
- | # step 1. Write 4 chars " | + | |
- | at 0000:7C03 | + | |
- | write 0x7C03 0x63646D63 | + | |
- | # step 2. Write 3 chars " | + | |
- | and an ending null at 0000:7C07 | + | |
- | write 0x7C07 0x00736E6F | + | |
- | savedefault --wait=2 | + | |
- | + | ||
- | title find and load IO.SYS of Windows | + | |
- | 9x/Me | + | |
- | fallback 3 | + | |
- | find --set-root /io.sys | + | |
- | chainloader /io.sys | + | |
- | savedefault --wait=2 | + | |
- | + | ||
- | title find and boot Mandriva with | + | |
- | menu.lst already installed | + | |
- | fallback 4 | + | |
- | find --set-root / | + | |
- | savedefault --wait=2 | + | |
- | configfile / | + | |
- | + | ||
- | title find and boot Linux with menu.lst | + | |
- | already installed | + | |
- | fallback 5 | + | |
- | find --set-root / | + | |
- | savedefault --wait=2 | + | |
- | configfile / | + | |
- | + | ||
- | title commandline | + | |
- | savedefault --wait=2 | + | |
- | commandline | + | |
- | + | ||
- | title floppy (fd0) | + | |
- | chainloader (fd0)+1 | + | |
- | rootnoverify (fd0) | + | |
- | savedefault --wait=2 | + | |
- | + | ||
- | title back to dos | + | |
- | savedefault --wait=2 | + | |
- | quit | + | |
- | + | ||
- | title reboot | + | |
- | savedefault --wait=2 | + | |
- | reboot | + | |
- | + | ||
- | title halt | + | |
- | savedefault --wait=2 | + | |
- | halt | + | |
- | + | ||
- | title memdrive duplicated from floppy | + | |
- | image file (hd0, | + | |
- | map --mem (hd0, | + | |
- | map --hook | + | |
- | chainloader (fd0)+1 | + | |
- | rootnoverify (fd0) | + | |
- | savedefault --wait=2 | + | |
- | + | ||
- | title memdrive based on win98 partition | + | |
- | (hd0,6) | + | |
- | map --mem (hd0,6)+1 (hd0) | + | |
- | # map --mem (hd0, | + | |
- | map --hook | + | |
- | chainloader (hd0)+1 | + | |
- | rootnoverify (hd0) | + | |
- | savedefault --wait=2 | + | |
- | + | ||
- | title Boot Windows XP | + | |
- | root (hd0,1) | + | |
- | chainloader +1 | + | |
- | savedefault | + | |
- | + | ||
- | title Boot Options | + | |
- | lock | + | |
- | find --set-root / | + | |
- | configfile / | + | |
- | + | ||
- | title Find “hdd.tag” and chainload | + | |
- | partition | + | |
- | find --set-root /hdd.tag | + | |
- | chainloader +1 | + | |
- | + | ||
- | title Find and load “ntldr” | + | |
- | find --set-root /ntldr | + | |
- | chainloader /ntldr | + | |
- | + | ||
- | title debian-6.0.0-i386-netinst.iso | + | |
- | (hd32 --mem) | + | |
- | map --mem | + | |
- | (hd0, | + | |
- | map --hook | + | |
- | root (hd32) | + | |
- | chainloader (hd32) | + | |
- | boot | + | |
- | + | ||
- | title debian-6.0.0-i386-netinst.iso | + | |
- | (0xFF --mem) | + | |
- | map --mem | + | |
- | (hd0, | + | |
- | map --hook | + | |
- | root (0xFF) | + | |
- | chainloader (0xFF) | + | |
- | boot | + | |
- | + | ||
- | title debian-6.0.0-i386-netinst.iso | + | |
- | (hd32) | + | |
- | map | + | |
- | (hd0, | + | |
- | map --hook | + | |
- | root (hd32) | + | |
- | chainloader (hd32) | + | |
- | boot | + | |
- | + | ||
- | title debian-6.0.0-i386-netinst.iso | + | |
- | (0xFF) | + | |
- | map | + | |
- | (hd0, | + | |
- | map --hook | + | |
- | root (0xFF) | + | |
- | chainloader (0xFF) | + | |
- | boot | + | |
- | + | ||
- | title debian-6.0.0-i386-netinst.iso | + | |
- | (--mem maxblast) | + | |
- | map --mem | + | |
- | (hd0, | + | |
- | map --hook | + | |
- | map --mem (hd32)/ | + | |
- | (fd0) | + | |
- | map --hook | + | |
- | root (fd0) | + | |
- | chainloader +1 | + | |
- | boot | + | |
- | + | ||
- | title debian-6.0.0-i386-netinst.iso | + | |
- | (--mem maxblast --mem floppy) | + | |
- | map --mem | + | |
- | (hd0, | + | |
- | map --hook | + | |
- | map --mem (hd32)/ | + | |
- | (fd0) | + | |
- | map --hook | + | |
- | map --mem (fd0)/ | + | |
- | map --hook | + | |
- | root (fd1) | + | |
- | chainloader +1 | + | |
- | boot</ | + |