Difference between revisions of "Netboot for Noobs Tutorial 2"
Line 13: | Line 13: | ||
HAVE TO FIX FORMATTING | HAVE TO FIX FORMATTING | ||
+ | |||
Ok Netboot works, Now what? | Ok Netboot works, Now what? | ||
Now lets add parted magic to the menu and try booting it. | Now lets add parted magic to the menu and try booting it. | ||
+ | ---- | ||
+ | = Step 1: Create share in amahi Dashboard: = | ||
+ | login ->Setup->Shares->New Share | ||
− | + | Name: Call it tfpt/pxe or whatever you want | |
− | |||
− | Name:Call it tfpt/pxe or whatever you want | ||
Location:/usr/share/amahi-netboot/tftp | Location:/usr/share/amahi-netboot/tftp | ||
− | *This is where netboot installs configuration files | + | |
+ | **This is where netboot installs configuration files | ||
If you browse this folder you should see: | If you browse this folder you should see: | ||
− | boot.msg | + | *boot.msg |
+ | *logo.16 | ||
+ | *menu.c32 | ||
+ | *other.conf | ||
+ | *f2 | ||
+ | *memtest | ||
+ | *minirooot.gz | ||
+ | *pxelinux.0 | ||
+ | *vmlinuz | ||
+ | *pxelinux.cfg folder | ||
− | Step 2 Add entry to menu | + | = Step 2: Add Parted Magic entry to menu: = |
- Navigate into pxlinux.cfg folder | - Navigate into pxlinux.cfg folder | ||
− | - Right click on default file and edit with notepad++ | + | - Right click on "default" file and edit with notepad++ |
− | + | You should see: | |
− | DEFAULT menu.c32 | + | {|border="1" |
+ | | | ||
+ | <pre>DEFAULT menu.c32 | ||
PROMPT 0 | PROMPT 0 | ||
TIMEOUT 100 # start the default after 10 seconds | TIMEOUT 100 # start the default after 10 seconds | ||
Line 49: | Line 63: | ||
MENU LABEL Memtest86+ ---> | MENU LABEL Memtest86+ ---> | ||
kernel memtest/memtest86+-1.65 | kernel memtest/memtest86+-1.65 | ||
+ | </pre> | ||
+ | |} | ||
At the bottom paste the following: | At the bottom paste the following: | ||
+ | {|border="1" | ||
+ | | | ||
+ | <pre> | ||
LABEL pmagic | LABEL pmagic | ||
MENU LABEL Parted Magic | MENU LABEL Parted Magic | ||
Line 57: | Line 76: | ||
APPEND noapic | APPEND noapic | ||
INITRD images/pmagic/initrd.img root=/dev/ram0 init=/linuxrc ramdisk_size=100000D | INITRD images/pmagic/initrd.img root=/dev/ram0 init=/linuxrc ramdisk_size=100000D | ||
− | + | </pre> | |
+ | |} | ||
Note the paths after KERNEL & INITRD images/pmagic/ | Note the paths after KERNEL & INITRD images/pmagic/ | ||
Save and close file. | Save and close file. | ||
Line 66: | Line 86: | ||
− | + | = Step 3: Download Parted Magic pxe zip file here: = | |
− | |||
− | Step 3 Download Parted Magic pxe zip file | ||
http://partedmagic.com/doku.php?id=downloads | http://partedmagic.com/doku.php?id=downloads | ||
Line 82: | Line 100: | ||
Choose it and it should immediately display: | Choose it and it should immediately display: | ||
+ | <pre> | ||
Loading images/pmagic/bzimage..... | Loading images/pmagic/bzimage..... | ||
Loading images/pmagic/initrd.img......................... | Loading images/pmagic/initrd.img......................... | ||
+ | </pre> | ||
It may take a couple of minutes to load into memory and boot depending on your network connection and activity | It may take a couple of minutes to load into memory and boot depending on your network connection and activity | ||
Line 89: | Line 109: | ||
− | + | = Works:Go on to Netboot Tutorial 3 = | |
+ | ---- | ||
+ | == Troubleshooting if it doesn't work: == | ||
+ | * <ins>If you select Parted Magic and the screen just blinks</ins> | ||
+ | **Double check the KERNEL path in your menu entry: | ||
+ | <pre> KERNEL images/pmagic/bzImage</pre> | ||
+ | |||
+ | * <ins>If it starts and doesn't boot completely</ins> | ||
+ | **double check the INITRD menu entry | ||
+ | <pre> INITRD images/pmagic/initrd.img</pre> | ||
− | + | * <ins>Still nothing, </ins> | |
− | * | + | **I problably messed up something on this page. post on forum link |
− | + | ***http://forums.amahi.org/viewtopic.php?f=26&t=3596 | |
− | * | ||
− | |||
− | * | ||
− | http://forums.amahi.org/viewtopic.php?f=26&t=3596 | ||
<!--Your text above this line--> | <!--Your text above this line--> |
Revision as of 16:13, 25 December 2011
Work In Progress | |
---|---|
This article is currently undergoing major expansion or restructuring. You are welcome to assist by editing it as well. If this article has not been edited in several days, please remove this template. |
HAVE TO FIX FORMATTING
Ok Netboot works, Now what? Now lets add parted magic to the menu and try booting it.
Contents
login ->Setup->Shares->New Share
Name: Call it tfpt/pxe or whatever you want
Location:/usr/share/amahi-netboot/tftp
- This is where netboot installs configuration files
If you browse this folder you should see:
- boot.msg
- logo.16
- menu.c32
- other.conf
- f2
- memtest
- minirooot.gz
- pxelinux.0
- vmlinuz
- pxelinux.cfg folder
- Navigate into pxlinux.cfg folder - Right click on "default" file and edit with notepad++
You should see:
DEFAULT menu.c32 PROMPT 0 TIMEOUT 100 # start the default after 10 seconds MENU TITLE --== Amahi Netboot Main Menu ==-- # Exit the PXE stack and boot the local system LABEL bootlocal MENU DEFAULT MENU LABEL Boot from the Hard Drive localboot 0 LABEL PBA MENU LABEL PBA ---> kernel vmlinuz APPEND nfsdir=hda:/var/hda/apps/pba/client/iso lang=us ramdisk_size=100000 nomce dma nosound apm=power-off nopcmcia nofirewire init=/etc/init nomce vga=normal initrd=miniroot.gz 2 BOOT_IMAGE=insert LABEL memtest86+ MENU LABEL Memtest86+ ---> kernel memtest/memtest86+-1.65 |
At the bottom paste the following:
LABEL pmagic MENU LABEL Parted Magic KERNEL images/pmagic/bzImage APPEND noapic INITRD images/pmagic/initrd.img root=/dev/ram0 init=/linuxrc ramdisk_size=100000D |
Note the paths after KERNEL & INITRD images/pmagic/ Save and close file.
Go to the your share Create New folder called images and inside another new folder called pmagic so it has following structure your share/pxelinux.cfg/ your share/images/pmagic/
Step 3: Download Parted Magic pxe zip file here:
http://partedmagic.com/doku.php?id=downloads
right click=> 7zip->open or extract archive
locate the files bzimage and initrd.img
copy them to the newly created folder your share/images/pmagic
All done Open virtual box and boot into amahi netboot on your test virtual machine and you should see a new entry: Parted Magic
Choose it and it should immediately display:
Loading images/pmagic/bzimage..... Loading images/pmagic/initrd.img.........................
It may take a couple of minutes to load into memory and boot depending on your network connection and activity
All that and not one bash commandline entry!
Works:Go on to Netboot Tutorial 3
Troubleshooting if it doesn't work:
- If you select Parted Magic and the screen just blinks
- Double check the KERNEL path in your menu entry:
KERNEL images/pmagic/bzImage
- If it starts and doesn't boot completely
- double check the INITRD menu entry
INITRD images/pmagic/initrd.img
- Still nothing,
- I problably messed up something on this page. post on forum link