USB bootstick, usbimg2disk.sh and OEM recovery partition
Hello :)
Is it possible to load a USB stick so it works as a Slackware bootstick, a dual boot system and Slackware 13.1 installation medium? I'm planning to install 13.1 on a netbook (Samsung NP-N150-KA01IN) which comes with Windows 7 installed and probably an OEM recovery partition (I don't have the netbook yet). In this LQ thread, dimm0k asked about keeping the OEM boot system including OEM recovery while being able to dual boot Slackware. samac suggested using a USB stick to control the boot. During Slackware installation there is a step to create a USB bootstick. The netbook does not have a CD/DVD drive so I plan to use Eric Hameleers' usbimg2disk.sh (now part of the Slackware 13.1 distribution). It would be great if all three functions could be combined on single USB stick and it could also carry data files. I would be able to carry a complete "disaster recovery" solution while travelling light. Only downside to this plan is that losing the USB stick would mean only being able to boot Windows 7 :( I'm happy to put some work into this but don't know where to look for the architecture of the bootstick and can't reverse engineer it not having created one during installation. Suggestions very welcome. Best Charles |
Hey catkin
Well, why not use Plop Bootmanager, the executable, not the install-to-MBR one I include iin all my live stuff its like 2kb! anyway, it can boot hdd, usb,cdroms,usb-cdroms,etc on pc's with or without BIOS support for usb,etc Heres one I use- http://multidistro.com/downloads/plpbt So, it can boot the windows hdd from a usb no issue it can also, on most, boot the usb its on too very simple too and its somewhat configurable so, say you had your windows netbook, a fat32/ext2/ext3 usb and the usb has maybe the whole slack tree, or DVD iso, etc just make a syslinux.cfg or grub menu.lst or grub2(did you know grub2 can run from fat32 usb?) and the syslinux.cfg,menu.lst,etc would have plop and slack and whatever entries also thats actually how I install slack from a DVD on hdd partition I put the slack kernel(hugesmp.s) , initrd.img and plop on the usb with a syslinux.cfg the slack dvd is on hdd partition my PC doesn't boot from usb so, I have a grub2 menu entry for plop too I boot the usb, then boot slack kernel make 2 mountpoints mkdir /source mkdir /iso then I mount my hdd partition where the dvd is mount /dev/sda2 /source then mount the dvd mount -o loop /source/slack-dvd.iso /iso then I enter "setup" and when it gets to where medium is I say premounted directory and enter /iso/slackware anyway, point is Plop plpbt can boot almost anything But, maybe there are other solutions too? EDIT: unconfigured, Plop can only "see" the first 4 hdd partitions as I said it is somewhat configureable and doesn't need to install anywhere |
Ok
so heres a sample grub2, grub1, and isolinux/syslinux menu entries for Plop plpbt Grub2(make sue you use "linux16", not "linux" Code:
menuentry "PLOP" { Code:
title Plop Bootmanager Code:
label plpbt assuming everything on usb is in folder named "current" Code:
default hugesmp.s or installed to mbr |
Thanks linus72 :)
That will take some digesting but Plop sounds powerful. I'll give the thread a while to gather more replies before jumping in. |
I agree, as there may be an easier, simpler way
|
Some more information about the USB bootstick ...
The script that creates the USB bootstick can be found after installation as /var/log/setup/setup.80.make-bootdisk but it cannot ordinarily be run after installation because it requires syslinux which is part of the installation system but not AFAIK installed. The USB bootstick has a FAT12 file system. The help text explains what it does ($ROOT_DEVICE is substituted when the bootstick is created): Code:
By default, this stick boots a root Linux partition on $ROOT_DEVICE when you |
I always use isohybrid http://syslinux.zytor.com/wiki/index...HARD_DISK_MODE
|
Quote:
Syslinux is installed in a full Slackware install - it's in the 'a' package series in syslinux-3.84-x86_64-2 on Slackware64 13.1. The usb disk creation scripts run fine. |
Quote:
I recently installed Slackware on an Acer eMachine eM250 that has no optical drive and came with the OEM recovery partition on the first partition and WindowsXP on the second partition. My method was: Prepared a USB boot stick with the usbinstaller on the install DVD. Upon starting, I hit F12 to get a boot device menu and selected the USB option. Once I had a root login, I then mounted a backup of an existing Slackware installation on an external USB hard disk. I did 'chroot' to this so that I could use 'ntfsresize' to reduce the size of the preinstalled NTFS partition containing the WindowsXP partition. I then rebooted into Windows to complete the NTFS resize and used the Windows disk manager tool to setup additional partitions. After again rebooting with the USB stick, I conducted an NFS install from the install DVD mounted in my desktop. (I had previously set up NFS on the desktop for use with another laptop.) I am now multi booting Windows and Slackware (13.0 and 13.1) as well as the OEM recovery partition using LILO installed on the MBR as the boot loader. |
Quote:
|
Quote:
|
Quote:
dd bs=4096 if=KNOPPIX_V6.2.1DVD-2010-01-31-EN.iso of=/dev/sdc but neither Samsung N150 nor regular desktop computer would boot it. After booting regular computer from HDD its /var/log/messages had kernel: sdc: unknown partition table but Thunar (Xfce file manager) mounted it OK as iso9660 and was able to browse it ... ? |
Comments on:
1. Leave that RECOVERY partition alone! 2. I am told it works. 3. That would be just fine. I just did not need to bother with copying the install disk to my usb key or an external USB drive by using this technique. 4. I am a great fan of tools from Alien_Bob. As for the last, take it up with the KNOPPIX people. Good luck and have fun :-) |
Quote:
|
Update
I went the easy root in the end, leaving the as-supplied partitions untouched, using usbimg2disk.sh to format and populate the USB memory stick and doing a standard Slackware installation -- including installing LILO to the internal HDD and choosing not to make a "Slackware USB boot stick" (it uses FAT12 so the USB stick isn't much use for anything else and the functionality it provides can be provided in other ways). Plop would probably have been the cleanest, most powerful solution and ISOLINUX worth investigating but I've lost a lot of USB sticks so requiring a USB stick to boot Slackware off HDD was a high risk. |
Too bad plop is not open-source.
|
All times are GMT -5. The time now is 09:47 PM. |