Autor |
Nachricht |
|
Titel: Install on a USB enclosure
Verfasst am: 17.08.2006, 00:49 Uhr
|
|
Anmeldung: 05. Jan 2006
Beiträge: 118
|
|
This is really two things.
First of all after a hard drive install of 64-bit Kanotix, I wanted move the SATA drive to a USB enclosure. So I pulled it out and put it into the enclosure. I then tried to boot. It wouldn't of course. It died on a kernel panic about not accessing root and some bad root= option and a bad block on (0,0). So I take my hd out of the enclosure and put it back internally. It boots fine. So have I missed a grub/fstab option?
The other thing is I had a free SATA drive and put it in the enclosure.
I booted the liveCD, then went through the Kanotix installer and installed it to the enclosure (no problem on the install). So I then try to boot off my freshly installed Kanotix on the enclosure and got exactly the same error as I did before.
Now I'm really confused... I know I can install and run various Solaris/OpenSolaris from the enclosure. Surely I missed some option in grub?
Thanks for the any info.
-B |
|
|
|
|
|
|
Titel: Install on a USB enclosure
Verfasst am: 17.08.2006, 06:12 Uhr
|
|
Anmeldung: 06. Jan 2005
Beiträge: 638
|
|
in the FAQ there is a chapter on on installing to hard drive - to usb-drive......
you need to make the suggested changes of mkinitrd etc before you can boot from the drive..
its different with other distros, e.g. PClinuxOS installs and starts right away from the usb-drive
But with the outline in the FAQ Kanotix will work, at least the 32-bit version |
|
|
|
|
|
|
Titel: Install on a USB enclosure
Verfasst am: 17.08.2006, 07:20 Uhr
|
|
Team Member
Anmeldung: 06. Mai 2005
Beiträge: 3087
Wohnort: berlin
|
|
http://kanotix.com/FAQ-id_cat-63.html#q321
greetz
devil |
_________________ <<We are Xorg - resistance is futile - you will be axximilated>>
Host/Kernel/OS "devilsbox" running[2.6.19-rc1-git5-kanotix-1KANOTIX-2006-01-RC4 ]
CPU Info AMD Athlon 64 3000+ clocked at [ 803.744 MHz ]
|
|
|
|
|
|
Titel: RE: Install on a USB enclosure
Verfasst am: 17.08.2006, 12:55 Uhr
|
|
Anmeldung: 05. Jan 2006
Beiträge: 118
|
|
Oh I see...
But what if I want to take an existing installation and put it on the external hd?
Can I boot the liveCD with the external usb (where the existing kanotix is)
and perform the steps to make the initrd?
Thanks.
-Bryan |
_________________ What is, is
|
|
|
|
|
|
Titel: RE: Install on a USB enclosure
Verfasst am: 17.08.2006, 13:46 Uhr
|
|
Anmeldung: 09. Jan 2006
Beiträge: 1720
|
|
does your bios support boot from USB-HD? USB-CD is no Problem. |
|
|
|
|
|
|
Titel:
Verfasst am: 17.08.2006, 15:33 Uhr
|
|
Anmeldung: 05. Jan 2006
Beiträge: 118
|
|
|
|
|
|
Titel:
Verfasst am: 18.08.2006, 07:00 Uhr
|
|
Anmeldung: 09. Jan 2006
Beiträge: 1720
|
|
perhaps, I got my usb-hd working with changed bios-sttings, BOOTOPTION: 1. USB-HD, 2. CD, 3. HD_0
with this settings in the bios, I can install the Kanotix-CD like normal, but I should never reconnet this USB-HD at an other USB-Port than where it was installed.
Otherwise the bootchain is CD than grub Error.
Back to your System. Change the bootoption to USB-HD than run the LiveCD. From there mount the USB-HD and re-install grub to the /dev/sda1.
Boot normal and beware changeing the USB-Port. |
|
|
|
|
|
|
Titel:
Verfasst am: 18.08.2006, 18:59 Uhr
|
|
Anmeldung: 05. Jan 2006
Beiträge: 118
|
|
Here's the situation.
I have been running for the past 9 month on an installed (internal) 64-bit version of Kanotix.
I now want to take that internal drive and put it in a USB enclosure (external).
My USB bios is correct because I can boot USB sticks.
I can also install and run Solaris on a USB enclosure.
There must be a grub setting (or something) that I must be missing. |
_________________ What is, is
|
|
|
|
|
|
Titel:
Verfasst am: 18.08.2006, 19:30 Uhr
|
|
Anmeldung: 09. Jan 2006
Beiträge: 1720
|
|
Sorry I did a install with SOLARIS-10, USB-HD install is not supported by Solaris., may be they have changhed it with Solaris 10.1.
Installing solaris and Linux the chain is Linux with grub, than Solaris. or both on a seperate HD, than there is rule which OS to install first. |
|
|
|
|
|
|
Titel:
Verfasst am: 18.08.2006, 19:35 Uhr
|
|
Anmeldung: 05. Jan 2006
Beiträge: 118
|
|
The Solaris on a USB enclosure works with 06/06, OpenSolaris, and Nexenta.
Forget for a moment about Solaris.
The problem is that I think I'm missing something in grub when I take my interal
drive (where Kanotix is) and put it in the enclosure.
Grub is on the MBR of the external drive so any boot order will follow that on the external drive, where it originally worked anyway.
-B |
|
|
|
|
|
|
Titel:
Verfasst am: 18.08.2006, 22:02 Uhr
|
|
Anmeldung: 06. Jan 2005
Beiträge: 638
|
|
I do not know whether this helps, but my BIOS (Phoenix-Bios in a Fujitsu-Siemens Scenic PC) allows to set where it looks for the OS, i.e first CD-Rom, second IDE-harddrive, third usb-harddrive. I can change the order of the drives and put my usb-drive before the IDE-(internal)drive. If I do this, the usb-drive, for GRUB, is (hd0) and the entry in menu.lst must correspond.
If in the boot order the usb-drive is set behind the internal drive the BIOS first looks for the boot manager in MBR of the internal drive and if I want to boot an OS from the usb-drive, it resides on (hd1) and the menu.lst from the GRUB of this MBR must be set accordingly.
To sum up: after making the initrd for Kanotix on the usb-drive I can boot directly from this drive if it is set in the first position of the boot order and GRUB has been installed in the MBR of this drive,
or I can boot from GRUB of the internal drive if there is one and menu.lst is adapted...... |
|
|
|
|
|
|
Titel:
Verfasst am: 18.08.2006, 22:08 Uhr
|
|
Anmeldung: 05. Jan 2006
Beiträge: 118
|
|
I don't think it's a BIOS thing. I explicity tell my pc to boot off the USB.
So the question is, can I run the initrd steps on a harddrive with Kanotix already there?
If so, which part of the FAQ do I need to follow? |
_________________ What is, is
|
|
|
|
|
|
Titel:
Verfasst am: 19.08.2006, 00:09 Uhr
|
|
Anmeldung: 19. Aug 2006
Beiträge: 40
Wohnort: Vermont
|
|
Bryan,
Even though you set the Bios to boot off the drive, you may have thereby altered the named drive order.
This will indeed start grub correctly, however grub now doesn't have the right drive numbers (names). By changing the bios drive setting grub now tries to boot from the wrong numbered drive. |
Zuletzt bearbeitet von SteveR am 19.08.2006, 00:26 Uhr, insgesamt 2 Male bearbeitet
|
|
|
|
|
|
Titel:
Verfasst am: 19.08.2006, 00:13 Uhr
|
|
Anmeldung: 19. Aug 2006
Beiträge: 40
Wohnort: Vermont
|
|
You see, grub's menu.lst was created when the drive order was different than it was after you changed the bios. Therefore grub thinks root is on the wrong drive.
Unfortunately, if you can't boot, you can't read menu.lst to check it for correct drive references and change it, if necessary.
I solved this problem by booting a partition tool (Ranish Partition Manager) on a floppy and reading the drive order (F5 key to cycle through the drives). This clued me in to the fact that the drive order had changed since I'd reset the boot order in Bios. Since I could now see what the drive order was, I just rebooted from the Kanotix CD and put the appropriate drive numbers in menu.lst. Then it booted fine. |
|
|
|
|
|
|
Titel:
Verfasst am: 19.08.2006, 00:49 Uhr
|
|
Anmeldung: 05. Jan 2006
Beiträge: 118
|
|
I didn't update the bios (or change boot order) after I installed kanotix.
I can boot, it just ends in a kernel panic.
I'm booting off grub on the external drive (I've removed the internal one completely)
From googling around (and looking at the FAQ) it looks like initrd. (but I don't know what)
I can try changing the values in grub tho, if you have any suggestions.
It originally booted off sda2 hd(0, 1). What would it be now? |
_________________ What is, is
|
|
|
|
|
|
Titel:
Verfasst am: 19.08.2006, 03:13 Uhr
|
|
Anmeldung: 19. Aug 2006
Beiträge: 40
Wohnort: Vermont
|
|
Try to hit c (for command mode) when you're in grub
then do a:
find /boot/vmlinuz
This should show where the linux boot partition is.
Once you've found where it is, switch grub to edit mode by hitting <ESC>, <RETURN>, then an "e".
This will let you edit the menu.lst Plug in the right values that you found in the find operation, and try to boot with them direct from command level in grub.
Use "help" in grub command mode for command info. |
|
|
|
|
|
|
Titel:
Verfasst am: 19.08.2006, 04:14 Uhr
|
|
Anmeldung: 05. Jan 2006
Beiträge: 118
|
|
i'll give it a try... what about the kernel panic thing? can this be related to the initrd? |
_________________ What is, is
|
|
|
|
|
|
Titel:
Verfasst am: 19.08.2006, 04:51 Uhr
|
|
Anmeldung: 19. Aug 2006
Beiträge: 40
Wohnort: Vermont
|
|
Don't know, but first things first, make sure you're booting root instead of garbage.
After that, check that you have the right cheatcodes for your install -- like they were back when you booted from CD. For instance if you need no dma and or no acpi on CD boot, make sure those are also in the grub entry. I noticed that nodma disappeared after my own install, and had to add that cheatcode back by hand.
Also open /etc/mkinitrd.conf in an editor and make sure the delay line is set to 10 (not 1) and the reference to mkext2fs has been changed to mkcramfs. These changes were made if you followed the HD Install FAQ instructions correctly.
Also open /etc/mkinitrd/modules in an editor and make sure the lines:
ehci-hcd
usb-storage
libusual
have been appended to the file. Again, this is what the FAQ Instructions would yield. |
|
|
|
|
|
|
Titel:
Verfasst am: 19.08.2006, 06:24 Uhr
|
|
Anmeldung: 06. Jan 2005
Beiträge: 638
|
|
@brian: regarding your question which part of the FAQ to apply and when:
First: you install Kanotix to a partiton of the external (usb) drive (which you apparently did already)
Second: you boot with the Kanotix-live-CD which you had used for the harddisk-install and
Third: you execute all steps indicated in the link given by devil in this thread. You will notice that the third step of this know-how chroots to sdx, i.e.to the partition you had installed Kanotix, meaning you are now root of this installation and the steps following will be executed within this installation. This also means that the initrd you create will be the initrd of your usb-installation.
When have done all steps your kernel panic should disappear and you Kanotix should boot from the usb-drive
good luck! |
|
|
|
|
|
|
Titel:
Verfasst am: 19.08.2006, 14:11 Uhr
|
|
Anmeldung: 05. Jan 2006
Beiträge: 118
|
|
Great!!!
The _real_ use case is that Kanotix has all my mp3s;)
Nothing like that to drive me nuts to find the solution;) |
_________________ What is, is
|
|
|
|
|
|
Titel:
Verfasst am: 19.08.2006, 14:39 Uhr
|
|
Anmeldung: 19. Aug 2006
Beiträge: 40
Wohnort: Vermont
|
|
Hmmmm,
if you didn't change the boot order to boot from the usb drive in bios, I wonder if that is part of the problem. All depends on:
1.) how your particular bios handles this (manually or automatically) and its final actual boot order and drive priority settings
2.) what drives you have on your system in its final configuration
3.) the location of grub giving the error messages.
Example: if you have two physical drives on your system (including the external usb,) and grub was installed to the non-usb drive in its MBR, and the boot order favors that drive first, and if grub is looking to that drive for the root partition, it obviously won't work.
Another thing occurs --- there's a reference in the grub FAQ here about a grub component needing to be located in the first 1024 cyls of the drive:
"Grub knows no 1024-cylinder barrier and can boot systems above 1024 cylinders. However, "/boot/grub/stage2" must be accessible by the bios (must be before 1024 cylinders)....
Any possibility you have set drive partitions up so stage 2 is above 1024 cyls? |
|
|
|
|
|
|
Titel:
Verfasst am: 19.08.2006, 14:44 Uhr
|
|
Anmeldung: 19. Aug 2006
Beiträge: 40
Wohnort: Vermont
|
|
You should be able to resolve this without re-installing.
You still haven't indicated what the result of doing a c, find /boot/vmlinuz is. |
|
|
|
|
|
|
Titel:
Verfasst am: 19.08.2006, 18:16 Uhr
|
|
Anmeldung: 05. Jan 2006
Beiträge: 118
|
|
HMM.. I'll have to try Monday...
It's a work pc... I'm at home;)
I'll be sure to follow up with the results |
_________________ What is, is
|
|
|
|
|
|
Titel:
Verfasst am: 21.08.2006, 16:21 Uhr
|
|
Anmeldung: 05. Jan 2006
Beiträge: 118
|
|
SteveR:
results from the find:
(hd0,1)
I've also stepped thru the faq and make the adjustments.
Still can't get past the kernel panic yet, tho |
_________________ What is, is
|
|
|
|
|
|
Titel:
Verfasst am: 24.08.2006, 07:01 Uhr
|
|
Anmeldung: 19. Aug 2006
Beiträge: 40
Wohnort: Vermont
|
|
Can you post your menu.lst contents here? |
Zuletzt bearbeitet von SteveR am 31.08.2006, 05:35 Uhr, insgesamt ein Mal bearbeitet
|
|
|
|
|
|