LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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

Reply
 
Search this Thread
Old 09-17-2008, 12:13 PM   #1
jestinjoy
Member
 
Registered: May 2004
Location: India
Distribution: Ubuntu 9.04, Debian Lenny
Posts: 121

Rep: Reputation: 22
Exclamation grub problem


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
 
Old 09-17-2008, 12:30 PM   #2
emclinux
Member
 
Registered: Sep 2008
Posts: 49

Rep: Reputation: 16
try
root (hd0,8)
 
Old 09-17-2008, 12:46 PM   #3
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
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.
 
Old 09-17-2008, 12:48 PM   #4
jestinjoy
Member
 
Registered: May 2004
Location: India
Distribution: Ubuntu 9.04, Debian Lenny
Posts: 121

Original Poster
Rep: Reputation: 22
re

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.............
 
Old 09-17-2008, 01:01 PM   #5
jestinjoy
Member
 
Registered: May 2004
Location: India
Distribution: Ubuntu 9.04, Debian Lenny
Posts: 121

Original Poster
Rep: Reputation: 22
re

I have my lfs kernel at sda1 ......but when i tried hd0,0........it says unknown partition.......but mount command says it's a ext3 partition.

But when i tried fdisk -l command it shows sda1 as an unknown partition...

What does '83' mean......???

please help
 
Old 09-17-2008, 01:20 PM   #6
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
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'.
 
Old 09-17-2008, 01:43 PM   #7
jestinjoy
Member
 
Registered: May 2004
Location: India
Distribution: Ubuntu 9.04, Debian Lenny
Posts: 121

Original Poster
Rep: Reputation: 22
re

it works.........

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...........


though there exists a file stage1 in /boot/grub/
 
  


Reply

Tags
lfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing GRUB-GRUB, GRUB-LILO and vice versa andreas_skw Linux - Newbie 1 06-05-2008 06:40 AM
installing GRUB 2, grub-install problem r00tb33r Linux - Software 1 02-26-2007 09:42 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
GRUB dual boot problem: Boot "other" (windows) just restarts GRUB! stevod333 Linux - Software 13 04-06-2006 05:26 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM


All times are GMT -5. The time now is 08:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration