LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 12-13-2011, 02:48 PM   #16
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412

They all look ok to me, you dont have to do any update as you reboot that reloads grub.

Last edited by spiky0011; 12-13-2011 at 02:50 PM.
 
Old 12-13-2011, 02:52 PM   #17
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Like I said I don't have any experience with grub and using UUID's. It looks like you need to do a bit more then using a UUID=...... setting. I'm not 100% sure what does(n't) need to be done at this moment.

Here's your original grub.cfg file, changed to use sda:
Code:
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod ext2
set root=(hd0,4)
set root=(hd0,1)
menuentry "GNU/Linux, Linux 3.1-lfs-7.0" {
linux /vmlinuz-3.1-lfs-7.0 root=/dev/sda1 ro
linux /vmlinuz-3.1-lfs-7.0 root=/dev/sda4 ro
}
BTW Your /boot is a separate partition, set root should point to sda1, and your linux line should point to sda4 and the /boot part should be removed.

I also noticed this:
Quote:
error: no kernel specified
error: unknown command '/boot/vmlinux-3.1-lf
I do hope that that is a typo (the missing s-7.0 part).....

Last edited by druuna; 12-14-2011 at 08:01 AM. Reason: Oops switched them around....
 
Old 12-13-2011, 03:02 PM   #18
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi drunna I found that having "root=/dev/sda1 ro" it then looked at the sda drive not the sdb.
As in "mine IS Ubuntu" not lfs it got confusing. I will try a new grub.cfg file to check


nivwusquorum I notice you have used ext4 file system did you select this while you were building the kernel?
 
Old 12-13-2011, 03:20 PM   #19
nivwusquorum
LQ Newbie
 
Registered: Dec 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
@Druuna

I didn't know that by root they mean root partition, I tried (hd0,4) and (hd0,msdos4) .

@Spiky

Hmm.. That sounds interesting. I selected the drivers for ext4 in drivers config section. Is there any other place I should have selected it while configuring kernel?
 
Old 12-13-2011, 03:24 PM   #20
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I changed the root sdb to sda it didn't boot also changed fstab to sda still np luck switched it all back is all working.
nivwusquorum do you have 2 external drives and what is the output of
Code:
fdisk -l
 
Old 12-13-2011, 03:26 PM   #21
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Have a look in filesystem they are not selected by default. I selected the same 1,s as listed for ext3. That will also stop it from booting
 
Old 12-13-2011, 03:31 PM   #22
nivwusquorum
LQ Newbie
 
Registered: Dec 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Here's output of fdisk -l :

Code:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x5e6033e8

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1777    14266368   27  Unknown
/dev/sda2   *        1778       19624   143356027+   7  HPFS/NTFS
/dev/sda3           19625       38913   154938892+   5  Extended
/dev/sda5           19625       28464    71007268+  83  Linux
/dev/sda6           28465       29072     4883728+  82  Linux swap / Solaris
/dev/sda7   *       29073       38913    79047801    7  HPFS/NTFS

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00023e52

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          12       96358+  83  Linux
/dev/sdb2            3040        4012     7815622+  82  Linux swap / Solaris
/dev/sdb3            4013       30401   211969642+   5  Extended
/dev/sdb4              13        3039    24314377+  83  Linux
/dev/sdb5            4013       10091    48829536   83  Linux

Partition table entries are not in disk order
@Spiky: I am sorry, I didn't understand your last post.
 
Old 12-13-2011, 03:44 PM   #23
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Ok as you are using ext4 file system it needs to be selected in the kernel.In general/settings/file system you need to enable ext4. If you look at the ext3 selections, I just copied the same 1,s them in ext4. I think there are 4 that have to be enabled,
 
Old 12-13-2011, 04:15 PM   #24
nivwusquorum
LQ Newbie
 
Registered: Dec 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
well I have enable it there, I am sorry, I didn't remember that. Now I am trying different filesystem for boot partition, but still didn't get it to work...
 
Old 12-13-2011, 04:21 PM   #25
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
ext4 should be ok as that is what your partition is formatted to. If you rebuild the kernel you need to check that each time. So if your fstab and grub.cfg are set. Not sure where else to go I have the same setup as you
 
Old 12-13-2011, 04:24 PM   #26
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Are you using sata drive ? and maybe have a look through usb stuff in the kernel, Although it dose see it
 
Old 12-13-2011, 04:39 PM   #27
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Are you building this on a laptop or desktop?
 
Old 12-13-2011, 04:54 PM   #28
nivwusquorum
LQ Newbie
 
Registered: Dec 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Hi Spiky, I am using SATA drive, and I am building on laptop. Why?
 
Old 12-13-2011, 05:11 PM   #29
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
You could put the drive into the laptop as the only drive to get it to boot that would sort out the fstab and grub.cfg files. Then you could sort out any other problems, meaning eliminate some things that cause problems. When I 1st done mine I built it on the usb option it wouldn't boot installed in laptop booted so the system all worked, just had to fiddle about with a few other things. Any thoughts on this ?? drunna.

There was a couple of options in the kernel as well SCSI device support.
Is scsi device support enabled? and scsi disk support enabled these are to do with usb drives mark them with a "Y" not "M"
 
Old 12-13-2011, 05:24 PM   #30
nivwusquorum
LQ Newbie
 
Registered: Dec 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
ok, I will try to fiddle a little bit with kernel. Is it safe to rebuild kernel by just repeating steps from linux-3.1 section from LFS 7.0 book? I was also thinking about trying out to use my host system (ubuntu) kernel config file, just to see if it works.

Although it is a little bit weird to try to fix this issue by randomly trying to do some things. Is there any way to determine which file exactly grub cannot find and at what stage?

Thanks!
 
  


Reply

Tags
boot, disks, grub, lfs



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
Suse 11 - problem with booting from external HDD orangina Linux - Newbie 28 10-01-2011 02:38 PM
never used cfdisk before, small HDD as well. ejames82 Linux - Newbie 4 08-12-2009 11:38 AM
Booting problem on HDD addition having ext3 partitions. learner786 Linux - Newbie 6 04-07-2009 08:44 AM
booting machine with linux on an external HDD without HDD connected drsoum Linux - Newbie 2 07-22-2007 03:47 AM
Damn Small Linux...booting problem dip_xp3 Linux - General 2 11-28-2006 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:42 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration