External USB 3.0 harddrive as root misdetects available partitions
Hardware:
Asus N53S
WD Passport 0730 (500gb hybrid drive w/ usb3.0)
Procedure:
1) GRUB boots, drive detected
2) Kernel loads
3) Kernel detects sda1 and sda3 (skipping sda2)
GRUB tab completion:
(hd0,0) ext2
(hd0,1) unknown
fdisk output:
primary partition 1 bootable, ext2
primary partition 2 0x8e (linux lvm)
from kernel init:
ls /dev/|grep sda
sda1
sda3
I've tested this with multiple kernel versions which work with an internally (sata 3gb/s) connected laptop hdd. Reverting to a usb 2.0 port does not solve the problem.
Anyone have any clues as to what's going on here?
I've also tried this in VirtualBox which demonstrates the same behavior when you create a device linked straight to the external harddrive.
*edit*
The init:
#!/bin/busybox
mount -t proc none /proc
mount -t sysfs none /sys
mount /dev/sda2 /mnt/root
umount /proc
umount /sys
exec switch_root /mnt/root /sbin/init
I've tried modifying the above to reference sda3 instead, but then it says "cannot open for read-only access"