-
Installing Knoppix on USB HDD
Basically, what I want to do is install Knoppix on an external USB harddrive and have it be bootable. What I don't want is just to have the Live CD copied to the harddrive as I've seen suggested in other threads. I want Knoppix installed on my USB hard drive and have it perform just as it would on a regular internal drive. I want to be able to install new packages, save settings, and all that just as I would if it was regularly installed on an internal drive.
This is for my laptop which has a small 60GB internal drive that is pretty much full (if it wasn't, I would probably just dual boot). Since I don't want to touch that internal drive I want to install Knoppix on the external hard drive. Now, I have already attempted to do this, but when I try to boot the USB hard drive I get a grub error 22 at Stage 1.5.
-
Senior Member
registered user
**SNIP Grub error codes**
22 : "Must load Multiboot kernel before modules"
This error is returned if the module load command is used before loading a Multiboot kernel. It only makes sense in this case anyway, as GRUB has no idea how to communicate the presence of location of such modules to a non-Multiboot-aware kernel.
***SNIP END*****
It sounds to me like there is possibly something wrong with your menu.lst. I run Knoppix in the same way you are planning...
Here is my menu.lst:
Code:
color black/cyan yellow/cyan
timeout 30
#splashimage (hd0,0)/boot/coffee.bmp
default saved
title Knoppix Default
kernel (hd0,0)/boot/vmlinuz-2.6.19 root=/dev/sda1 init=/etc/init vga=791 quiet noapm nomce noresume lang=us
initrd (hd0,0)/boot/linux/initrd.img-2.6.19
savedefault
boot
title Knoppix Text Mode
kernel (hd0,0)/boot/vmlinuz-2.6.19 root=/dev/sda1 init=/etc/init vga=791 quiet noapm nomce noresume lang=us 2
initrd (hd0,0)/boot/linux/initrd.img-2.6.19
savedefault
boot
title Knoppix 2.6.20-rc5
kernel (hd0,0)/boot/vmlinuz-2.6.20-rc5 root=/dev/sda1 init=/etc/init vga=791 quiet noapm nomce noresume lang=us
initrd (hd0,0)/boot/initrd.img-2.6.20-rc5
savedefault
boot
title Knoppix 2.6.20-rc5 Text Mode
kernel (hd0,0)/boot/vmlinuz-2.6.20-rc5 root=/dev/sda1 init=/etc/init vga=791 quiet noapm nomce noresume lang=us 2
initrd (hd0,0)/boot/initrd.img-2.6.20-rc5
savedefault
boot
If grub is install to your USB drive... make sure your Knoppix partition is marked "Active" ....also I think anytime grub is booted from a drive, the boot drive is called as (hd0,0)
Also... if you have problems booting with grub.. it may help to create a small FAT32 partition on the drive somewhere are make it MSDOS bootable. Boot into DOS and use grub4dos or loadlin to boot your system. I use both methods for mine.. Grub is install and is used if the machine I'm booting CAN boot from USB.. if not I have a BOOTCD with a custom MSDOS bootdisk written to it... That way I can boot the system into MSDOS with the cd and use grub or loadlin
Good luck.... youll enjoy this setup VERY much once you get it going,
-Justin
One Mynds Eye
-
Didn't work. I used your exact same menu.lst and made sure the first partition on my USB-HDD was Active. I get the same error 22.
-
Senior Member
registered user
The stock knoppix startup mniroot does not include USB drivers; youl'll need Gilles' version, see here.
From the livecd, copy the minirt*.gz to /media/sda1/boot and adjust your menu.lst accordingly.
-
Still doesn't work. I get the same Error 22.
Here is my current menu.lst:
Code:
color black/cyan yellow/cyan
timeout 30
#splashimage (hd0,0)/boot/coffee.bmp
default saved
title Knoppix Default
kernel (hd0,0)/boot/vmlinuz-2.6.19 root=/dev/sda1 init=/etc/init vga=791 quiet noapm nomce noresume lang=us
initrd (hd0,0)/boot/minirt_511.gz
savedefault
boot
title Knoppix Text Mode
kernel (hd0,0)/boot/vmlinuz-2.6.19 root=/dev/sda1 init=/etc/init vga=791 quiet noapm nomce noresume lang=us 2
initrd (hd0,0)/boot/minirt_511.gz
savedefault
boot
title Knoppix 2.6.20-rc5
kernel (hd0,0)/boot/vmlinuz-2.6.20-rc5 root=/dev/sda1 init=/etc/init vga=791 quiet noapm nomce noresume lang=us
initrd (hd0,0)/boot/minirt_511.gz
savedefault
boot
title Knoppix 2.6.20-rc5 Text Mode
kernel (hd0,0)/boot/vmlinuz-2.6.20-rc5 root=/dev/sda1 init=/etc/init vga=791 quiet noapm nomce noresume lang=us 2
initrd (hd0,0)/boot/minirt_511.gz
savedefault
boot
I tried both the minirt.gz on the livecd (or liveusbflashdrive, in my case) and the minirt_511.gz from the link in kirol's post.
-
Senior Member
registered user
yeah.......as I said... you might have to use grub4dos or loadlin...
(This is how I boot my system)
Good Luck
-Justin
One Mynds Eye
-
Senior Member
registered user
Something similar only worked for me after I switched to the alternate minirt - but I am booting directly from the ISO image rather than a real HD installation.
If you want to try re-installing grub, you can boot to console mode using "knoppix 2" , then issue
# mount /media/sda1
# grub-install --root-directory=/media/sda1 /dev/sda
I don't think that's the issue, though, as grub seems to start but then encounter some error i have not met myself.
Just to understand: why do you have two versions of the kernel referenced? Do these come come with the 5.1.1 DVD?
The minirt version you use contains kernel modules and will only work for one particular kernel release...
-
Senior Member
registered user
I think he copied these entrys from me: title Knoppix 2.6.20-rc5 Text Mode
and kirol is correct in saying that you wont have much luck in booting this kernel (though it probably doesnt even exist for you since its a kernel image that I have compiled custom) with the minirt.gz that your are using.
I dont think reinstalling grub is a bad idea.... might correct some problem with the stage files that isnt obvious.... still the easiest way to boot this system is loadlin <kernel> initrd=<minitrt.gz> root=/dev/YOURROOT blah blah blah... though grub4dos is probably the best bet as I have had some trouble with recent kernels and initrd's loading with loadlin..... for examples look to guiles' dongle setups using loadlin and grub
or use grub4dos with your current menu.lst .... though it may take some editing.
I persnally use both methods as some PC's are still very buggy about booting from a USB device.... grub is infact installed and working and mrrors my menu.lst from grub4dos that I use to start the system when the machine in question cant grub boot from a USB device.
Take Care,
-Justin
One Mynds Eye
-
Oook...made a wee bit of progress here (emphasis: wee bit).
So I reinstalled grub from the knoppix command line. No more error 22! However, since being able to just boot right into Knoppix would be too good to be true, there's a new error!
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)
-
Senior Member
registered user
Im guessing it cant find the USB device.
Send me a PM with your email adress and I will email you a new kernel and initrd to use that should get you going..
Take Care,
-Justin
One Mynds Eye
Similar Threads
-
By teknowil in forum General Support
Replies: 2
Last Post: 06-07-2009, 03:15 PM
-
By knopnoob2005 in forum Ideas
Replies: 5
Last Post: 07-08-2005, 06:02 PM
-
By EvAnE in forum Hdd Install / Debian / Apt
Replies: 14
Last Post: 06-16-2005, 09:18 AM
-
By amit in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 06-16-2003, 01:03 PM
-
By jza in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 05-03-2003, 11:30 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Oracle 7085209 LSI MegaRAID SAS 9361-8i 1GB Cache 12Gbps SAS/SATA PCIe RAID Card
$28.20
Cisco UCS LSI MegaRAID 9271CV-8I SAS2308 PCIe SAS Internal RAID Controller
$28.00
LSI 9305-16i SATA SAS 12Gbs RAID Controller PCIe 3.0 x8 IT-Mode 4* 8643 SATA
$229.99
ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID
$58.99
Inspur LSI 9300-8i Raid Card 12Gbps HBA HDD Controller High Profile IT MODE
$15.98
LSI MegaRAID 9361-8i 12Gb PCIe 8-Port SAS/SATA RAID 1Gb w/BBU/CacheVault/License
$39.95
LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault
$39.00
ORICO Multi Bay RAID Hard Drive Enclosure USB 3.0/ Type-C For 2.5/3.5'' HDD SSDs
$82.49
NEW LSI MEGARAID SAS 9361-8i 12GB/s SAS + SATA RAID CONTROLLER CARD PCIe x8 3.0
$99.00
Yottamaster 4Bay RAID RGB Hard Drive Enclosure Type B Fr 2.5'' 3.5" SATA HDD SSD
$149.99