Slackware 13.37 installation on an external USB hard disk - nano how-to
Hello all,
I have an external USB hard disk, mainly used for backups. As it is 1 TB wide I decided to install Slackware 13.37 on it, just for fun. At first I didn't succeed, so here is what I did to eventually get it done. Before we begin, I suppose that you have:
Feed back is very welcome, especially:
|
Hello Didier,
Thank you very much for a detailed howto. It'll come in handy! Kind regards, Eric |
Hello Didier Spaier,
It's a great article, congratulations! Can you detail me the six step, please? |
Hello sgsmart, welcome to LQ.
Unfortunately I am not allowed to edit my first post in order to detail step #6, because it is more than 5 days old. Anyway here are the details of that sixth step. To know how to make an initrd, just follow instructions in /boot/README.initrd in Slackware 13.37 If you prefer to go by the "recompile the kernel" way, first make sure you installed the relevant kernel-source packages, that is to say the one which matches your running kernel. Then do what follows in a terminal as root. Code:
cd /usr/src/linux-2.6.37.6 # In case of a different kernel, adapt accordingly 1) Find the corresponding symbol with Ctrl+F. In case of several answers, read carefully the comments for each of these to spot the relevant one. 2) Check the relevant entry to make the driver built in. While you are at it, don't forget to check that the filesystem of your root partition be built in as well. Oh and I suggest that you customize the local version (symbol to search with Ctrl+F: "localversion") in order to distinguish this kernel from the stock one. Now you can save the configuration, make the kernel and install it as usual. As a reminder: Code:
make |
I have got it!
I am now in Slackware on USB.
Thanks Didier Spaier for the reply. I have not got "recompile the kernel", yet... Nevertheless, I got it. Initially, I got a frozen screen. But I booted from Slackware DVD, into the terminal, I went to fourth step, then fifth skip sixth, after seventh and I run lilo command. I got some warnings, right, but I reboot and at the end I boot from USB. Yeah!... this found for me. Although it takes more than five minutes to boot. (: |
hi.
i ran through step #3 and the list didn't show any "usb_storage" or "uas". so i guess i am supposed to include "ehci-hcd", uhci-hcd and "ext4" with either recompiling the kernel og making an initrd? |
Hi Suliskongen and welcome to LQ.
I guess you started with a huge kernel running, not a generic one. That would explain why you don't see usb_storage in the list as this driver is already buit in in huge kernels (thus it doesn't appear in lsmod's output as that command only lists drivers shipped as modules). If that is the case, as the huge kernel as the saying goes already ships "everything including the kitchen's sink", steps #3 and #6 are in fact not necessary in your case (uhci_hcd, ehci_hcd and ext4 are all buit in the huge kernels as well), unless you see another kernel module in the list. Regarding uas, if it doesn't show you simply don't need it (not all USB hard disk use that) so don't worry about that either. But if you took as a basis a generic kernel then something is wrong: you should see at least usb_storage in the list as it is needed by all USB disks but shipped as a module in generic kernels. |
That is a nice write-out.
I have a quick question, could your method be applied to external USB flash drive as well? Thanks in advance for your advice. |
If you want Slackware on a USB flash drive, I'd highly recommend looking into Slackware Live. It is a new thing Eric Hameleers (one of the core dev team and the same person who brought us Slackware64) started producing during the 14.2 development cycle. It is much easier to do vs trying to install Slackware on a thumbdrive and if you use his script to write the drive, you can enable persistence (instead of it not retaining anything after a reboot).
http://docs.slackware.com/slackware:liveslak Long story short, download his slackware64-live-14.2.iso, grab his iso2usb.sh script, then run the following command to write it to your drive (replacing /dev/sdX with your USB drive -- make sure you select the correct drive because this script will erase the contents of that drive). Code:
sh ./iso2usb -i /location/to/slackware64-live-14.2.iso -o /dev/sdX |
Thanks Bassmadrigal, I will try it out.
|
i did as instructed.. but i got the error below. What do i need to do to resolve this?
I manage to resolve it by installing the squashfs-tools.. please ignore this question. [root@localhost Downloads]# sh ./usbscript.sh -i slackware64-live-current.iso -o /dev/sdb -- Required program(s) not found in root's PATH! -- unsquashfs -- Exiting. [root@localhost Downloads]# |
That's not the command I wrote... You need iso2usb.sh, not usbscript.sh. You don't need squashfs to create the usb drive, only if you want to roll your own ISO from Slackware sources.
Once you get the right script, try it again, and if it doesn't work, start a new thread rather than continuing this one. |
Actually, iso2usb.sh requires unsquashfs to extract the homedirectory of the live user and put that into an encrypted container file for /home .
The default action for the script (without further commandline switches than '-i' and '-o') does not use unsquashfs but the script always looks for it and aborts if unsquashfs is absent. I think I can update iso2usb.sh so that it will not look for unsquashfs unless you want to use a luks-encrypted homedirectory. But this is all unrelated to the OP so if you have further questions, feel free to post them on my blog or as a new thread here on LQ. |
Quote:
|
Quote:
|
Thanks Eric.. I will try to digest your feedback as i am still an amateur in linux world.. really need time to sharpen my linux-fu.. haha
So in the meantime, i will just use the liveSlak on USB stick. =) |
Hopefully all manual tasks can now be automated, please test.
|
All times are GMT -5. The time now is 09:54 PM. |