You are not logged in.

#1 2011-07-11 03:21:03

tpolich
Member
Registered: 2009-08-07
Posts: 44

/boot on a usb drive [SOLVED]

Hey everybody I have been trying to get a fresh install to have /boot on a usb drive and the rest on the hard drives.

My setup is 5 drives raid 5 (md0)  --->  encrypt layer ---> lvm with a root and home

That whole setup works fine I can mount it from the live CD and everything.

I setup /boot to be on a usb drive plugged into the system. Every time I try and boot I get operating system not found and a grub prompt.

grub

root(0,0)
(kernel section) cryptdevice=/dev/md0:array root=/dev/mapper/array-root

I have dm_mod and ext4 in the modules line of mkinitcpio and usb after udev and mdadm encrypt lvm2 before filesystem.

I also have uselvm on it the /etc/rc.conf

does anyone have any suggestions on what I need to do to get this booting right.

Last edited by tpolich (2011-07-11 06:24:26)

Offline

#2 2011-07-11 03:54:07

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: /boot on a usb drive [SOLVED]

Perhaps you need to change the ....root(0,0)... to a selection which addresses the usb device.

I do not know what that might be.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#3 2011-07-11 03:57:38

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: /boot on a usb drive [SOLVED]

I have a boot system using two raid0 CF cards and within that raid array is a boot partition on sda1 and a swap on sdb1 each 100mb.  The raid devices are sda2 and sdb2, the remaining partitions of the two devices.

It may be that USB is not enabled at boot time?


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#4 2011-07-11 06:24:11

tpolich
Member
Registered: 2009-08-07
Posts: 44

Re: /boot on a usb drive [SOLVED]

Well I figured it out the lilsirecho suggestion of needed root (0,0) was right and for some reason the drive was fat32. Changing the root line and reformatting the drive fixed the issue.

Offline

Board footer

Powered by FluxBB