Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am in the last stage of LFS....But when I tried to install it shows unknown partition. mount command shows the following result
Code:
linux-81rn:/home/joby # mount
/dev/sda9 on / type ext3 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
securityfs on /sys/kernel/security type securityfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sda1 on /mnt/lfs type ext3 (rw)
/dev on /mnt/lfs/dev type none (rw,bind)
devpts on /mnt/lfs/dev/pts type devpts (rw)
shm on /mnt/lfs/dev/shm type tmpfs (rw)
proc on /mnt/lfs/proc type proc (rw)
sysfs on /mnt/lfs/sys type sysfs (rw)
/dev/sdb1 on /media/JESTIN JOY type vfat (rw,nosuid,nodev,noatime,flush,uid=1000,utf8,shortname=lower)
but the fdisk -l command shows like this
Code:
linux-81rn:/home/joby # fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xff8783ae
Device Boot Start End Blocks Id System
/dev/sda1 1 852 6835200 27 Unknown
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 852 4499 29296640 7 HPFS/NTFS
/dev/sda3 4500 9729 42009975 f W95 Ext'd (LBA)
/dev/sda5 4500 5774 10241406 7 HPFS/NTFS
/dev/sda6 5775 7049 10241406 7 HPFS/NTFS
/dev/sda7 7050 8324 10241406 7 HPFS/NTFS
/dev/sda8 8325 8454 1044193+ 82 Linux swap / Solaris
/dev/sda9 8455 9729 10241406 83 Linux
my lfs grub command shows an unknown partition
Code:
grub> root (hd0,1)
Filesystem type unknown, partition type 0x7
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152
Rep:
it also couldn't hurt to use fdisk to change the partition type of sda1 to '83'. if you have your kernel on sda1. if it isn't and sda9 is / then just do what emclinux sugested.
it does not work? It shows no stage 1........when it tried
Code:
setup (hd0)
hd0,8 is not which i want to add to grub ......I want sda1........when i used mount command it shows sda1 as ext3 and when i used fdisk it shows sda1 as unknown file system.............
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152
Rep:
In your partition table sda1 type is set to '27' or 'Unknown' this is what grub reads; this is why grub says 'unknown partition'. '83' is the type ID for 'Linux'
do:
fdisk /dev/sda
press 't'
select the first partition
when it asks you what type put in '83' you can look at the list to see all the other IDs
press 'w' to write the table to disk.
reboot. you should no longer get 'unknown partition'.
but when i tried the command setup (hd0)
h
it says "checking if "/boot/grub/stage1" exist ....no
"checking if "/grub/stage1" exists .....no
error 2 bad file or directory type...........
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.