SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
*Disclaimer* - I'll start by saying that I am completely new to *nix systems, and I am very tired at the moment, so most of what I have learned over the course of the day may come out slurred.
I recently got my Thinkpad R51. Love it, no problems, works wonderful. I also have this 160GB drive that i've made external with a Sabrent case. Instead of messing with my notebook hard drive, I figured I would just use this external for linux.
I want to be able to boot/mount this external drive on a Slackware 10.1 install. As it stands now, here is how my drive is setup:
LILO in the MBR
/dev/sda1 - /root
/dev/sda5 - /swap
/dev/sda6 - /usr
/dev/sda7 - /opt
/dev/sda8 - /home
The notebook supports USB booting, and I have installed Slackware completely onto the drive, AND I can actually boot the drive, get the LILO prompt, and start Slackware. HOWEVER, Slackware fails to mount the root partition. I would assume because of the lack of usb support in the kernel.
My question I pose to you, is how can a newbie such as myself compile a kernel that will allow Slackware to mount my external drive on startup. I have no floppy drive on the laptop, so I can't do a rescue boot. The Slackware 10.1 Disc 2 isn't bootable like its predecessors as a rescue disk. I know what I want can be done, I just need to know and learn how. I see this as a challenge, and something that will help me quickly learn the basics of compiling and customizing kernels.
Something I had pondered was using my laptop, somehow repartition the existing drive without loosing any windows info, install a limited version of slackware, enough to compile a kernel with USB support, put the kernel on the install disk, then when installing on the external drive, select that kernel from the cd. then when all is said and done, and i have a working install on the external drive, erase the slackware parition on the laptop drive, and be good to go like it came. Thoughts, suggestions, ideas? Remember, I'm just about completely new to all of this. TIA.
Last edited by SlammedDime; 06-19-2005 at 11:48 PM.
-- this sounds familiar.
Would you quote me the error message please - and your lilo.conf
If you are using a 2.4.20 or better kernel there should be usb support there. However the module may not automatically load itself. Presumably you could add the appropriate command(s) to your boot script?
On the other note:
You're idea of installing slack to your internal ide hdd is probably a sound one for someone new. I'd normally discourage someone totally new from trying what you have anyway. You'd have to go through the standard method: tidy and repartition first.
You'd end up with a standard install, which you can play with to learn the ropes - then try something more ambitious.
There are many tools for safely repartitioning a windows drive - the only trouble being that they are proprietary - so you gotta pay for them.
It took a while before I got it working, had to recompile the kernel to get some modules for inclusion in the initrd. Since upgraded to 10.1 and have managed to get the process semi-automated. On the next release of Slackware 10.2 or 11 I hopefully will get in fully automated. By the way it's USB 1.1 on the T30!
Lilo is installed on the mbr of the external harddrive so nothing has been changed on the internal drive. I suggest you get the tools on a Knoppix CD as I managed to overwrite the MBR on the internal drive.
I would suggest making a bootable Slackware 10.1 CD first with the proposed initrd.
The Slackware 10.1 Disc 2 isn't bootable like its predecessors as a rescue disk.
The Slackware-10.1 Disc 1 is bootable and can be used as a rescue disk.
The error Kernel panic: VFS: Unable to mount root fs on 08:01 indicates you don't
have support for the / filesystem built into the kernel. So yes, you'll need to compile a
kernel, or get one somewhere, with USB support built-in and not as a module, or you
can make an initrd.img for that.
Google is your friend, this has been done many times in the past.
SlammedDime: the lilo.conf is quite at odds with the lilo documentation. Did the installer write this?
aikempshall uses an initial ramdisk (initrd). This would be the most robust way of getting external usb drive to mount as the ramdisk image is used by lilo to load the usb (amongst other) modules to start the boot. There is a tool called mkinitrd - you may be able tio access it from a live or rescue CD. However, I would have expected the installer to do this for you. It may not have because lilo does not normally use an initrd. You could reinstall and select GRUB for the bootloader - GRUB always uses an initrd and so the installer should create the right one for you... probably worth a try if you find the other methods tricky.)
Compiling the kernel to have usb support built in, as opposed to using modules, would be rough if you've never done anything like this before.
As has been pointed out - this is something lots of folk have wanted to do. There are many threads in LQ and Google handling what you want. Read around. (Welcome to Slack Linux)
Slackware seems to have one of the steeper learning curves I've seen - tho all OS's are tough if they don't install right first time. If you like Slackware, you may consider a freindlier OS for short term learning purposes then change back when you know more.
My personal recommendation: reinstall with GRUB bootloader. This will likely work automatically and give you further experience with installations. Then you can go round LQ and reply to installer problems
K, here's what I decided to do. I used Partition Magic to repartition the laptop hard drive, and I cut it in half. Have 5GB formatted as FAT32 to share between WXP and Slack, and the remainder for Slack itself. I'll just play around with this install, learn the basic ins and outs, learn how to compile a kernel, etc, etc, and then when I've learned a lil, tackle the real project. I'll most likely visit here often (as I've now bookmarked it). Thanks for the help and suggestions. I'll refer back here when I'm ready, hopefully soon.