Ideas on how to make a Slackware Install on USB pen?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Not an easy thing to do - in my experience it's a lot of faffing about. A quick summary would be:
- Copy entire Slackware CD (or an ISO image) onto the USB key
- Get the boot floppy images from the CD (it has one tacked onto the CD ISO to make it bootable but also keeps copies of several different images in /bootdisk and /rootdisk)
- You would need to edit the floppy image or create at a minimum the initrd and kernel that can boot from USB (i.e. include the necessary USB and USB Mass Storage modules, commands to mount the USB drive's partitions etc.), and use the USB as the root filesystem - this can a real pain in the backside on older machines, on machines that change what they detect the usb drive as (e.g. sda1, sda2 etc.)
- You could also use MEMLINUX or SYSLINUX to boot the floppy image but, again, you'll need to be able to access the USB disk
Look at Slax - it's a bootable Slackware distribution that runs from CD or USB - it will have a kernel/initrd already set up that you'll be able to use as a basis. However, to make a bootable USB key that works on ANY USB computer is a lot more tricky that the equivalent CD. And every computer has a CD drive that boot flawlessly nowadays.
Then I copied back my old lilo.conf for changes on my harddisk if neccessary.
5. After a reboot Slackware installation boots from usb-drive without problems on all machines which are able to boot from usb.
You can do the same with a FAT filesystem and syslinux as bootloader or even with ext2 filesystem and extlinux (included in syslinux - last version). The only difference is to change the isolinux.cfg to a syslinux.cfg or a extlinux.conf and install syslinux/extlinux according to the README in syslinux-package.
You can use other kernels (2.6.xy out of Slackware-current) and make your own initrd.img or copy the needed kernel modules in the existing initrd.img. Works without problems.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.