LinuxQuestions.org
Help answer threads with 0 replies.
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 06-14-2013, 07:46 AM   #1
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,148

Rep: Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855
A few odd errors in new LFS build


I have just changed my machine to a core i3 duel booting with windows ( for the wife I hasten to add as I wouldn't touch it with a 10' battle lance ) and I have run into a few ( maybe unrelated problems ).

1)
Installed grub 1 as usual, but the 'savedefault' option in the /boot/grub/menu.lst file is causing a problem, I have always used this without mishap but now I get a 'file not found' error if I include it in the menu, if I manually set /boot/grub/default the highlight works.
Code:
# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'.  Thu Jun  6 11:54:34 2013
#
# The backup copy of the MBR for drive '/dev/sda' is
# here '/boot/grub/mbr.sda.2431'.  You can restore it like this.
# dd if=mbr.sda.2431 of=/dev/sda bs=512 count=1
#
# Start GRUB global section
timeout 10000
color red/black black/green
default saved

# End GRUB global section
# Other bootable partition config begins
  title Windoze on (/dev/sda2)
  map (hd0,0) (hd0,1)
  map (hd0,1) (hd0,0)
#  savedefault
  rootnoverify (hd0,1)
  makeactive
  chainloader +1
# Other bootable partition config ends

# Linux bootable partition config begins
  title Colossus on (/dev/sda7)
#  savedefault
  root (hd0,6)
#  savedefault
  kernel /boot/bzImage-3.4.47 root=/dev/sda7 ro vga=791 

  title Slack64 on (/dev/sda8)
#  savedefault
  root (hd0,7)
#  savedefault
  kernel /boot/vmlinuz root=/dev/sda8 ro vga=normal

  title PMagic on (/dev/sda8)
  root (hd0,7)
#  savedefault
  kernel  /pmagic/bzImage root=/dev/sda8 ro vga=791
  initrd  /pmagic/initrd.img
#  savedefault

# Linux bootable partition config ends

title --- For help press 'c', type: 'help'
root (hd0)
title --- For usage examples, type: 'cat /boot/grub/grub.txt'
root (hd0)
As you can see I have had to comment out the 'savedefault' option.

2)
Setup ntp as always but for some reason it keeps getting the wrong time, it adds an hour unless I add 'ntpdate 0.uk.pool.ntp.org' to the start of the init script.

3)
Mouse keeps not getting detected at boot, both gpm and X have the same problem, but if I unplug and re-plugin the mouse it's fine, this is the same mouse as I used in my old system with the same config, don't have a clue about this one.

4)
Yet again udev is not creating symlinks to my DVD properly, had to manually edit the rules like so
Code:
# HL-DT-ST_DVDRAM_GH60N (pci-0000:00:1f.2-scsi-1:0:0:0)
#SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="cdrom0", ENV{GENERATED}="1"
#SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="cdrom", ENV{GENERATED}="1"
#SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="cdr0", ENV{GENERATED}="1"
#SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="cdr", ENV{GENERATED}="1"
#SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="cdwriter0", ENV{GENERATED}="1"
#SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="cdwriter", ENV{GENERATED}="1"
#SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="cdrw0", ENV{GENERATED}="1"
#SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="cdrw", ENV{GENERATED}="1"
#SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="writer", ENV{GENERATED}="1"
#SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="dvd0", ENV{GENERATED}="1"
#SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scs1-1:0:0:0", SYMLINK+="dvd", ENV{GENERATED}="1"
#SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="dvdrw0", ENV{GENERATED}="1"
#SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="dvdrw", ENV{GENERATED}="1"
#SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="dvdwriter0", ENV{GENERATED}="1"
#SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="dvdwriter", ENV{GENERATED}="1"

#SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-ata2-1:0:0:0", SYMLINK+="dvd", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", SYMLINK+="dvd", ENV{GENERATED}="1"
The file came from slackware 14 that I used to build this LFS, the bits commented out do nothing when un-commented the one line left in I added manuallly which does work.

Other than these minor niggles the install went fine had to fiddle about with the propriety radeon driver but I expected that I have always had an nvidia card and always have to fiddle with that.

Don't you just love rolling your own!
Ubuntu users don't know what they're missing!
 
Old 06-18-2013, 11:00 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,148

Original Poster
Rep: Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855
Well as no one wants to help I'll help myself!

Solved the ntp problem used
Code:
/usr/sbin/ntpd -gqx
which seems to do it the -g option allows for a big first adjustment, - q sets the time and quits which is fine as I don't leave my machine on long term so the clock doesn't drift too much and -x which allows a slew of 600 seconds.

Anyone got any ideas about the rest of my probs?
 
Old 06-21-2013, 05:03 AM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,148

Original Poster
Rep: Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855
Fixed the mouse problem ( sort of ), tried plugging the mouse into a 4 way extension port and it now works at boot up, Linux is weird!
 
Old 06-21-2013, 03:15 PM   #4
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
Quote:
Originally Posted by Keith Hedger

...now I get a 'file not found' error if I include it in the menu...
Is it grub-0.97? Apparently, earlier versions could have that issue and require a patch.
 
Old 06-21-2013, 04:53 PM   #5
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,148

Original Poster
Rep: Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855
It is 0.97 but its the same version I have used for a couple of years, but thanks for the tip I will look for the patch and report back.
 
Old 06-21-2013, 05:17 PM   #6
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
The discussion I read regarding the patch for this issue took place seven years ago and involved v0.96. As you know, v0.97 also is from around the same time period. I just thought maybe your version might be an earlier one and maybe benefit from using the final version. I doubt that digging up that old patch will be worth the trouble. There just must be something about new contemporary hardware that makes the old code not obtain the location of the default file.

Maybe you can hack the source code and tell it where the default file is in this particular layout so it doesn't have to discover it. You might find all that stuff in /stage2/builtins.c in the source tree.

Anyway, if you never get anywhere with this, you can always replace it with GRUB 2 and handle its config file manually and simply a lot like legacy GRUB ignoring all the scripts, other files, and most of the usual crap in a typical grub.cfg file. That's what I eventually decided to do with it.

Last edited by stoat; 06-21-2013 at 06:04 PM.
 
1 members found this post helpful.
Old 06-22-2013, 05:29 AM   #7
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,148

Original Poster
Rep: Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855
I actually install grub from a 'pmagic' live disk via a prebuilt package so I don't have the source code, I think you may be right that it is just that the hardware is too new I dislike grub 2 though I haven't used it since my ubuntu days but I may have to bite the bullet and try it again, tried 'lilo' but it would only boot the first linux distro or windows I have windows (urgh!) + LFS + pmagic + slackware14, lilo's too crude.
 
Old 06-22-2013, 09:35 AM   #8
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 319

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by Keith Hedger View Post
I actually install grub from a 'pmagic' live disk via a prebuilt package so I don't have the source code, I think you may be right that it is just that the hardware is too new I dislike grub 2 though I haven't used it since my ubuntu days but I may have to bite the bullet and try it again, tried 'lilo' but it would only boot the first linux distro or windows I have windows (urgh!) + LFS + pmagic + slackware14, lilo's too crude.
What? How is it crude? At least LILO keeps drive naming convention (using device nodes) as drives instead of making up its own system. I think grub is more crude then LILO is in a lot of ways. In some cases LILO completely mops the floor with grub. A Perfect example is the ability to boot LVM and Software Raid Drives WITHOUT a exposed /boot partition. Another example is when you mix IDE and SATA drives together... grub can't tell what drive is (hd0) if both SATA and IDE drives are the master, because technically they both are and because of this grub will fail each and every time! Their naming convention was not through out all too well. A posed to LILO using just standard device node names to map drives, resulting in having both /dev/hda and /dev/sda and being able to boot off either one of them without issue.

Yes with LILO I need to reinstall it each time I change something. but these days even when comping a kernel it pretty much does it for you anyways, and if you want to make it seem automagic then create a patch and patch the makefile so it updates lilo on its own... not really that big a deal.

I currently have 5 OS's installed under LILO this very moment.
Slackware, OpenSuse, WinXP, FreeDOS and LFS.. works fine here.
 
Old 06-22-2013, 12:14 PM   #9
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,148

Original Poster
Rep: Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855
Don't care what you say lilo installed from slack would only boot the two osses I mentioned, also as you point out every time you change anything you have to reinstalll lilo with grub I just change a menu entry, I don't run raid or lvm so I can't comment, and frankly I ain't interested in a flame war about lilo versus grub, this post was about some problems in my latest install of LFS and not about what boot loader to use.

End of lilo/grub discussion.
 
Old 06-22-2013, 12:56 PM   #10
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 319

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by Keith Hedger View Post
Don't care what you say lilo installed from slack would only boot the two osses I mentioned, also as you point out every time you change anything you have to reinstalll lilo with grub I just change a menu entry, I don't run raid or lvm so I can't comment, and frankly I ain't interested in a flame war about lilo versus grub, this post was about some problems in my latest install of LFS and not about what boot loader to use.

End of lilo/grub discussion.
No flames here, I just don't think calling something crude because it acts different from what you are used to is fair.
If you want help with LILO post your current lilo.conf and some info on how your OS partitions are setup (how are they spanned across the hard drives/partitions).
 
Old 06-22-2013, 01:03 PM   #11
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,148

Original Poster
Rep: Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855
I don't have a problem with lilo or my lilo.conf 'cause I aint using it I'm using grub!
 
Old 06-23-2013, 12:30 PM   #12
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,148

Original Poster
Rep: Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855
Well 'Bit the bullet' and compiled and installed Grub2, had a little trouble getting it to compile on a pure x86_64 install had to set --build=x86_64 --target=x86_64 --host=x86_64 and had a little trouble with the grub.cfg ( wouldn't boot first time - Don't you just love PMagic! ) but all seems to now be working including the 'savedefault' option which is configured a bit different from grub1, also my grub files have gone into /grub instead of /boot/grub which is probably my fault as I had my boot partition mounted on /boot when i did grub-install, but I shall leave it where it is and change it next time I do a complete rebuild of LFS.

Just the udev problem now.
 
  


Reply


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
apt-get generates odd errors whittycat Debian 8 05-29-2011 07:23 PM
Odd pci errors Tomasu Linux - Hardware 15 01-28-2008 04:43 PM
Will compiling LFS on an 64 bit distro build an 64 bit LFS? Vampirite Linux From Scratch 4 08-31-2007 02:48 PM
Odd installation behavior and errors linuxbug Slackware - Installation 6 03-07-2007 06:11 AM
Odd WPA_Supplicant Errors stlpcsolutions Linux - Wireless Networking 1 07-23-2006 06:35 AM

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

All times are GMT -5. The time now is 10:30 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