I've installed LFS on a GPT SSD on a BIOS station with the help of
jhalfs and the kernel, started with grub-2, fails to boot completely as
it can't find the root filesystem. The familiar "VFS Unable to mount
root fs, Panic".

I've built LFS since 2003 or was it 2002 and I've seen this message
quite a few times. However this time, I'm unable to get it to boot
anything.

I've confirmed that the kernel works fine as I still have my old LFS
build on another drive on the same station.

I have /boot on sdf2 and / on sdf3

Model: ATA Crucial_CT120M50 (scsi)
Disk /dev/sdf: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system     Name     Flags
 1      1049kB  1000MB  999MB                   primary  bios_grub
 2      1000MB  5000MB  3999MB  ext3            primary
 3      5000MB  118GB   113GB   xfs             primary  boot
 4      118GB   120GB   2034MB  linux-swap(v1)  primary

/dev/sdf2: UUID="a6960224-5c35-43e9-920b-7d9e1225ab26" SEC_TYPE="ext2" 
TYPE="ext3" PARTLABEL="primary" PARTUUID="96326d8d-fe5e-4c2d-acd5-6b9380441476" 
/dev/sdf3: UUID="7440b882-aecb-4e4a-8ecb-24d7a31dc9f9" TYPE="xfs" 
PARTLABEL="primary" PARTUUID="6335e500-106b-4a33-9e54-709a33681ba6" 
/dev/sdf4: UUID="8128605c-690e-49d3-bbaa-5214f21c8c89" TYPE="swap" 
PARTLABEL="primary" PARTUUID="a9e95be4-db76-4c4d-9f02-5b4f22c796b1" 
/dev/sdf1: PARTLABEL="primary" PARTUUID="bb8dc183-06bc-4500-a205-afd753de1802"

When I boot the SSD, I set this drive in the BIOS as the first drive, so
as to be able to boot from it. I refer to the drive as hd0 in grub
console. It is still however referred to sdf when linux boots. I've
confirmed this in initrd.

linux (hd0,gpt2)/linux-3.10 root=/dev/sdf3

..and I've also tried: 

linux (hd0,gpt2)/linux-3.10 root=PARTUUID=6335e500-106b-4a33-9e54-709a33681ba6

I've also tried initrd, which dumps me right in its simple shell. I'm
there able to mount /dev/sdf3 to /.root/, but not successful in running
"switch_root .root /sbin/init". I can post all that is happening in
initrd, but I think first I'll try to get this out and see if there's
anything I forgot. I've expected LFS to be bootable after running jhalfs
and fixing fstab.

# Begin /etc/fstab
#UUID=7440b882-aecb-4e4a-8ecb-24d7a31dc9f9  / xfs defaults   0    0 
#UUID=8128605c-690e-49d3-bbaa-5214f21c8c89  swap swap   pri=1    0     0
/dev/sdf3       /       xfs     defaults        0       0
/dev/sdf4       swap    swap    pri=1   0       0
proc           /proc        proc     nosuid,noexec,nodev 0     0
sysfs          /sys         sysfs    nosuid,noexec,nodev 0     0
devpts         /dev/pts     devpts   gid=5,mode=620      0     0
tmpfs          /run         tmpfs    defaults            0     0
devtmpfs       /dev         devtmpfs mode=0755,nosuid    0     0
#UUID=a6960224-5c35-43e9-920b-7d9e1225ab26      /boot           ext3    
defaults        0       0
/dev/sdf2       /boot   ext3    defaults        0       0
# End /etc/fstab

I'm on a Tyan Thunder n3600B (S2927-E) (S2927A2NRF-E) station and
I've compiled SATA chipset and XFS filesystem support into the kernel:

CONFIG_SATA_NV=y
CONFIG_XFS_FS=y

I'm quite stuck on this one and I'm open to anything. I've sat up the
last two days/nights trying to figure this one out and I've read the
whole internet;).

Any pointers as to what I can try?

-- 
Esben Stien is b0ef@e     s      a             
         http://www. s     t    n m
          irc://irc.  b  -  i  .   e/%23contact
           sip:b0ef@   e     e 
           jid:b0ef@    n     n
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to