0
A hard drive in an enclosure has the following, assume that this drive is being recognized by grub2
as hd0
:
- partitions 1 to 3 are primary
- partition 1:
/boot
(boot partition) - partition 2:
/
(linux mint on this partition) - partition 3:
/
(LFS (linuxfromscratch) on this partition) - partition 4: the extended partition
- partition 5: blank space
- partition 6: linux
swap
space
When this drive is attached to the SATA port of the computer (as a normal internal SATA drive - removed from enclosure) both Linux Mint as well as LFS work perfectly.
When this drive is in the enclosure and attached to USB:
- Linux Mint works well, but
- LFS crashes (note all
grub
commands to boot are correct - I manually edit the commands ingrub
)
Is there some driver (USB bridge) or some kernel compilation option that I need to enable before compiling the kernel?
Please help.
Hi puzzled, welcome to Super User. Can you give the details of the crash on booting LFS? – bertieb – 2015-08-15T13:16:38.047
Not too familiar with LFS - are you using an initramdisk? When booting via USB you really should use the UUID of the partition, because 1) you have no guarantee that the kernel will put your USB device at any fixed /dev/sda, etc. 2) if USB drivers are not built into your kernel it won't see them until the modules are loaded. Last I heard, the kernel cannot take something like
boot=uuid...
- so you need a utility from the initramdisk to mount the appropriate partition by UUID. So you might need to implement something like that. – LawrenceC – 2015-08-15T15:04:51.850