Hello I use Slackware 9.1 and kernel 2.4.24. In last week I start building LFS using kernel 2.6.2 on my Slackware box. This is my HDD layout:
/dev/hdb1 [primary 1, boot] 0x83 /boot ext2 128 MB /dev/hdb2 [primary 2] 0x83 / ext2 4 GB /dev/hdb3 [primary 3] 0x83 /usr ext2 12 GB /dev/hdb4 [extended] 0x05 /dev/hdb5 [logical] 0x83 /tmp ext2 2 GB /dev/hdb6 [logical] 0x83 /var ext3 2 GB /dev/hdb7 [logical] 0x82 swap swap 512 MB /dev/hdb8 [logical] 0x83 /home ext2 33 GB /dev/hdb9 [logical] 0x83 /arhiva ext2 66+ GB I mount LFS hard disc in /mnt/lfs and chroot to it with :~--- one line --- chroot "$LFS" /usr/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/bash --login :~--- /one line --- Also, I create proper /dev/hd{a,b}* devices with mkdnod. So, I wish to install GRUB in MBR of /dev/hdb. This is my /boot/grub/menu.lst: :~--- start of menu.lst --- # Begin /boot/grub/menu.lst # By default boot the first menu entry default 0 # Allow 30 seconds bfore booting the default timeout 30 # Use prettier colors color green/black light-green/black # The first entry for LFS title LFS SVN-20041017 root (hd1,0) kernel (hd1,0)/lfskernel-2.6.8.1 root=/dev/hdb2 # Old Slackware title Slackware 2.4.24 LAN root (hd0,8) kernel (hd0,8)/vmlinuz-2.4.24_LAN root=/dev/hda9 # End /boot/grub/menu.lst :~--- end of menu.lst --- And fstab on chrooted system: :~--- start of fstab --- # Begin /etc/fstab # system mount-point fs-type options dump fsck-ord /dev/hdb2 / ext2 defaults 1 1 /dev/hdb1 /boot ext2 defaults 1 1 /dev/hdb3 /usr ext2 defaults 1 2 /dev/hdb4 /tmp ext2 defaults 1 2 /dev/hdb6 /var ext3 defaults 1 2 /dev/hdb8 /home ext2 defaults 1 2 /dev/hdb9 /arhiva ext2 users,owner,exec 1 2 /dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro,unhide,user 0 0 /dev/sda1 /mnt/camera vfat noauto,owner,user,unhide 0 0 /dev/hdb7 swap swap pri=1 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 devpts /dev/pts devpts gid=4,mode=620 0 0 shm /dev/shm tmpfs defaults 0 0 usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0 #End /etc/fstab :~--- end of fstab --- I build in kernel 2.6.8.1 for LFS support for EXT2, EXT3 and REISERFS filesystems. I install grub in this way: :~--- start grub install --- # grub-install --no-floppy --recheck /dev/hdb # grub And then in grub shell: > root (hd1,0) > setup (hd1) Checking if "/boot/grub/stage1" exists... no Checking if "/grub/stage1" exists... yes Checking if "/grub/stage2" exists... yes Checking if "/grub/e2fs_stage1_5" exists... yes Running "embed /grub/e2fs_stage1_5 (hd1)"... 16 sectors are embedded. succeeded Running "install /grub/stage1 (hd1) (hd1)1+16 p (hd1,0)/grub/stage2 /grub/menu.lst"... succeeded Done. :~--- end grub install --- Then I reboot box and get FS problem after chosing item 'LFS SVN-20041017' from GRUB bootmenu: Booting 'LFS SVN-20041017' root (hd1,0) Filesystem type unknown, partition type 0x83 kernel (1,0)/lfskernel-2.6.8.1 root=/dev/hdb2 Error 17: Cannot mount selected partition When I chose 'Slackware 2.4.24 LAN' item I get only that Filesystem type is ext2fs and also error 17, but FS for /dev/hda9 is ReiserFS. Output of # dumpe2fs /dev/hdb1 :~--- start dumpe2fs /dev/hdb1 --- Filesystem volume name: boot Last mounted on: <not available> Filesystem UUID: 920d4238-9999-4cad-a97e-06d5e31a2e17 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: filetype sparse_super Default mount options: (none) Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 32128 Block count: 32122 Reserved block count: 1606 Free blocks: 30250 Free inodes: 32102 First block: 0 Block size: 4096 Fragment size: 4096 Blocks per group: 32768 Fragments per group: 32768 Inodes per group: 32128 Inode blocks per group: 1004 Filesystem created: Sun Oct 31 10:02:44 2004 Last mount time: Sat Nov 6 11:35:13 2004 Last write time: Sat Nov 6 12:07:00 2004 Mount count: 11 Maximum mount count: 32 Last checked: Sun Oct 31 10:02:44 2004 Check interval: 15552000 (6 months) Next check after: Fri Apr 29 11:02:44 2005 Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 128 Default directory hash: tea Directory Hash Seed: 70171a30-0433-4ab3-b6f3-746c40360d29 ... :~--- end dumpe2fs /dev/hdb1 --- and for /dev/hdb2 this: :~--- start dumpe2fs /dev/hdb2 --- Filesystem volume name: root Last mounted on: <not available> Filesystem UUID: 26dd14ee-192f-401d-85f3-af24de66730f Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: filetype sparse_super large_file Default mount options: (none) Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 501840 Block count: 2000092 Reserved block count: 100004 Free blocks: 1114379 Free inodes: 395259 First block: 0 Block size: 2048 Fragment size: 2048 Blocks per group: 16384 Fragments per group: 16384 Inodes per group: 4080 Inode blocks per group: 255 Filesystem created: Sun Oct 31 10:03:47 2004 Last mount time: Sat Nov 6 11:35:13 2004 Last write time: Sat Nov 6 12:07:00 2004 Mount count: 10 Maximum mount count: 23 Last checked: Sun Oct 31 10:03:47 2004 Check interval: 15552000 (6 months) Next check after: Fri Apr 29 11:03:47 2005 Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 128 Default directory hash: tea Directory Hash Seed: 6d5a8d3b-346d-4e39-b3bf-19676f6c8186 ... :~--- start dumpe2fs /dev/hdb2 --- I not understand, where I make mistake when installing and configuring GRUB? Please help me. I wish to boot LFS from primary slave (hdb) when Chose HDD1 as first boot device in BIOS, until not build complet BLFS and tune up LFS box. But, how to do this GRUB tweak? :) TIA -- URKE MMI :: www.urosevic.net :: ICQ UIN 104794867 Registered Linux User #280650 [counter.li.org] :: SLACKWARE LINUX _______________________________________________ Bug-grub mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/bug-grub