Re: [lfs-support] Problems starting the final LFS system

2012-05-14 Thread Эмиль Кранц
Have a closer look: /dev/sdaX in fstab and /dev/hdaX in error message
IDE and SCSI? Typo?

Cheerio.

On 14 May 2012 15:37, Lázaro Morales laz...@frioclima.com.cu wrote:

 En 11/05/2012 15:58:14, Bruce Dubbs bruce.du...@gmail.com escribió:

  Lázaro Morales wrote:
  Hello,
 
  After complete the LFS book, when I restart the computer I get a few
  errors messages and the computer stuck after this:
 
   /lib/lsb/init-functions: line 590: /run/var/bootlog: No such file
  or
  directory
   /etc/rc.d/init.d/rc: line 217: /var/log/boot.log: Read-only file
  system
   /etc/rc.d/init.d/rc: line 220: /var/log/boot.log: Read-only file
  system
   [  301.811991] rc used greatest stack depth: 5556 byte left
   INIT: Id 2 respawning too fast: disable for 5 minutes
   INIT: Id 4 respawning too fast: disable for 5 minutes
   INIT: Id 5 respawning too fast: disable for 5 minutes
   INIT: Id 6 respawning too fast: disable for 5 minutes
   INIT: Id 1 respawning too fast: disable for 5 minutes
   INIT: Id 3 respawning too fast: disable for 5 minutes
   INIT: no more processes left in this runlevel
 
  The LFS version is 7.1 and is running on VirtualBox with PAE/NX and
  VT-x,
  the processor is a dual-core E5300 and the virtual machine have 512MiB
  of
  RAM. Could be this a problem? LFS can be compiled on VirtualBox?
 
  I think you have a problem in your kernel configuration.
 
  Section 8.3 says to ensure you have devtmpfs built into the kernel.
  The first thing the boot scripts do is create a tmpfs for /run and a
  directory
  /run/var.  The first line above indicates that that /dev was never
  mounted.
 
 -- Bruce

 Thanks Bruce and Ken! During the compilation process through the book I
 created 'Snapshots' in VirtualBox in the critical sections. I restored the
 last, just before configure the GRUB and found that I had two typo errors
 in 'inittab' and 'fstab' files. Now after restart I get a new error
 related to partitions.

 Activating all swap files/partitions...swapon: /dev/hda3: stat failed:
 No such file or directory
 Mounting root file system in read-only mode...
 Checking file systems...fsck.ext3: No such file or directory while
 trying to open /dev/hda4

 What this mean? I have four partitions:

  Partition  Mount Point   Description
  sda1   / Initial OS, CentOS.
  sda2   swap  Swap for the initial OS.
  sda3   swap Swap for LFS
  sda4   LFS   Ext3 for LFS

 Thanks again for your time,
 Lázaro.

 --
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Problems starting the final LFS system

2012-05-14 Thread Alexander Kapshuk

 What this mean? I have four partitions:

  Partition  Mount Point   Description
  sda1   / Initial OS, CentOS.
  sda2   swap  Swap for the initial OS.
  sda3   swap Swap for LFS
  sda4   LFS   Ext3 for LFS

 As a side note, having a separate swap partition for LFS isn't required,
provided there is already a swap partition available on the host system.
(See 2.2. Creating a New Partition for details):

The swap partition for an LFS system can be the same as the one used by
the host system, in which case it is not necessary to create another one.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Problems starting the final LFS system

2012-05-14 Thread Lázaro Morales
En 14/05/2012 08:54:50, Эмиль Кранц bl8r1...@tut.by escribió:

 Have a closer look: /dev/sdaX in fstab and /dev/hdaX in error message
 IDE and SCSI? Typo?
 Cheerio.

The virtual machine have 1 virtual disk IDE. The '/dev' folder is:

 root:/sources# ls -l /dev | grep sda
 lrwxrwxrwx 1 root root 4 May  4 11:55 root- sda1
 brw-rw 1 root daemon8, 0 May  4 11:55 sda
 brw-rw 1 root daemon8, 1 May  4 11:55 sda1
 brw-rw 1 root daemon8, 2 May  4 11:55 sda2
 brw-rw 1 root daemon8, 3 May  4 12:08 sda3
 brw-rw 1 root daemon8, 4 May  4 11:56 sda4

The 'fstab' file:

 # Begin /etc/fstab

 # file system  mount-point  type  options  dump  fsck
 #order

 /dev/hda4  /ext3  defaults 1 1
 /dev/hda3  swap swap  pri=10 0
 proc   /procproc  nosuid,noexec,nodev  0 0
 sysfs  /sysfs   sysfs nosuid,noexec,nodev  0 0
 devpts /dev/pts devptsgid=4,mode=620   0 0
 tmpfs  /run tmpfs defaults 0 0
 devtmpfs   /dev devtmpfs  mode=0755,nosuid 0 0

 # End /etc/fstab

The GRUB file

 # Begin /boot/grub/grub.cfg
 set default=0
 set timeout=5
 insmod ext2

 set root=(hd0,4)

 menuentry GNU/Linux, Linux 3.2.6-lfs-7.1 {
 linux /boot/vmlinuz-3.2.6-lfs-7.1 root=/dev/sda4 ro
 }

  Is something wrong there?

Thanks,
Lázaro

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Problems starting the final LFS system

2012-05-14 Thread Lázaro Morales
En 14/05/2012 09:20:37, Lázaro Morales laz...@frioclima.com.cu escribió:

 sysfs  /sysfs   sysfs nosuid,noexec,nodev  0 0

Sorry, this is the old 'fstab' file, I corrected this error, the mount  
point for 'sysfs' is '/sys'.

Regards,
Lázaro

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Problems starting the final LFS system

2012-05-14 Thread Эмиль Кранц
Your fstab partitions are  /dev/hda4 and  /dev/hda3,
while in your grub - set root=(hd0,4) and root=/dev/sda4
I mean it should be either SDA or HDA,
SDA for SCSI drives while HDA for IDE drives

Correct drive names uniformly in /etc/fstab and /boot/grub/grub.cfg
depending on your hard drive type.

EK

On 14 May 2012 16:20, Lázaro Morales laz...@frioclima.com.cu wrote:

 En 14/05/2012 08:54:50, Эмиль Кранц bl8r1...@tut.by escribió:

  Have a closer look: /dev/sdaX in fstab and /dev/hdaX in error message
  IDE and SCSI? Typo?
  Cheerio.

 The virtual machine have 1 virtual disk IDE. The '/dev' folder is:

 root:/sources# ls -l /dev | grep sda
 lrwxrwxrwx 1 root root 4 May  4 11:55 root- sda1
 brw-rw 1 root daemon8, 0 May  4 11:55 sda
 brw-rw 1 root daemon8, 1 May  4 11:55 sda1
 brw-rw 1 root daemon8, 2 May  4 11:55 sda2
 brw-rw 1 root daemon8, 3 May  4 12:08 sda3
 brw-rw 1 root daemon8, 4 May  4 11:56 sda4

 The 'fstab' file:

 # Begin /etc/fstab

 # file system  mount-point  type  options  dump  fsck
 #order

 /dev/hda4  /ext3  defaults 1 1
 /dev/hda3  swap swap  pri=10 0
 proc   /procproc  nosuid,noexec,nodev  0 0
 sysfs  /sysfs   sysfs nosuid,noexec,nodev  0 0
 devpts /dev/pts devptsgid=4,mode=620   0 0
 tmpfs  /run tmpfs defaults 0 0
 devtmpfs   /dev devtmpfs  mode=0755,nosuid 0 0

 # End /etc/fstab

 The GRUB file

 # Begin /boot/grub/grub.cfg
 set default=0
 set timeout=5
 insmod ext2

 set root=(hd0,4)

 menuentry GNU/Linux, Linux 3.2.6-lfs-7.1 {
 linux /boot/vmlinuz-3.2.6-lfs-7.1 root=/dev/sda4 ro
 }

  Is something wrong there?

 Thanks,
 Lázaro

 --
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Problems starting the final LFS system

2012-05-14 Thread Andrew Benton
On Mon, 14 May 2012 14:31:11 +0100
Lázaro Morales laz...@frioclima.com.cu wrote:

 En 14/05/2012 08:54:50, Эмиль Кранц bl8r1...@tut.by escribió:
 
  Have a closer look: /dev/sdaX in fstab and /dev/hdaX in error message
  IDE and SCSI? Typo?
  Cheerio.
 
 The virtual machine have 1 virtual disk IDE. The '/dev' folder is:
 
  root:/sources# ls -l /dev | grep sda
  lrwxrwxrwx 1 root root 4 May  4 11:55 root- sda1
  brw-rw 1 root daemon8, 0 May  4 11:55 sda
  brw-rw 1 root daemon8, 1 May  4 11:55 sda1
  brw-rw 1 root daemon8, 2 May  4 11:55 sda2
  brw-rw 1 root daemon8, 3 May  4 12:08 sda3
  brw-rw 1 root daemon8, 4 May  4 11:56 sda4
 
 The 'fstab' file:
 
  # Begin /etc/fstab
 
  # file system  mount-point  type  options  dump  fsck
  #order
 
  /dev/hda4  /ext3  defaults 1 1
  /dev/hda3  swap swap  pri=10 0
  proc   /procproc  nosuid,noexec,nodev  0 0
  sysfs  /sysfs   sysfs nosuid,noexec,nodev  0 0
  devpts /dev/pts devptsgid=4,mode=620   0 0
  tmpfs  /run tmpfs defaults 0 0
  devtmpfs   /dev devtmpfs  mode=0755,nosuid 0 0
 
  # End /etc/fstab
 
 The GRUB file
 
  # Begin /boot/grub/grub.cfg
  set default=0
  set timeout=5
  insmod ext2
 
  set root=(hd0,4)
 
  menuentry GNU/Linux, Linux 3.2.6-lfs-7.1 {
  linux /boot/vmlinuz-3.2.6-lfs-7.1 root=/dev/sda4 ro
  }
 
   Is something wrong there?

Yes, in grub.cfg you have root=/dev/sda4 (and the kernel boots, so it's
happy with /dev/sda) then the bootscripts choke because you
have /dev/hda in /etc/fstab.

sed -i 's#/dev/hda#/dev/sda#' /etc/fstab

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Problems starting the final LFS system

2012-05-14 Thread Lázaro Morales
En 14/05/2012 10:10:38, Andrew Benton a...@benton.eu.com escribió:

 Yes, in grub.cfg you have root=/dev/sda4 (and the kernel boots, so it's
 happy with /dev/sda) then the bootscripts choke because you
 have /dev/hda in /etc/fstab.
 sed -i 's#/dev/hda#/dev/sda#' /etc/fstab
 Andy

Thanks very much to Andrew and EK, and all in general. Now I finally have  
finished the book.

Thanks again,
Lázaro.

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] Problems starting the final LFS system

2012-05-11 Thread Lázaro Morales
Hello,

After complete the LFS book, when I restart the computer I get a few  
errors messages and the computer stuck after this:

 /lib/lsb/init-functions: line 590: /run/var/bootlog: No such file or  
directory
 /etc/rc.d/init.d/rc: line 217: /var/log/boot.log: Read-only file system
 /etc/rc.d/init.d/rc: line 220: /var/log/boot.log: Read-only file system
 [  301.811991] rc used greatest stack depth: 5556 byte left
 INIT: Id 2 respawning too fast: disable for 5 minutes
 INIT: Id 4 respawning too fast: disable for 5 minutes
 INIT: Id 5 respawning too fast: disable for 5 minutes
 INIT: Id 6 respawning too fast: disable for 5 minutes
 INIT: Id 1 respawning too fast: disable for 5 minutes
 INIT: Id 3 respawning too fast: disable for 5 minutes
 INIT: no more processes left in this runlevel

The LFS version is 7.1 and is running on VirtualBox with PAE/NX and VT-x,  
the processor is a dual-core E5300 and the virtual machine have 512MiB of  
RAM. Could be this a problem? LFS can be compiled on VirtualBox?

Thanks very much,
Lázaro

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Problems starting the final LFS system

2012-05-11 Thread Bruce Dubbs
Lázaro Morales wrote:
 Hello,
 
 After complete the LFS book, when I restart the computer I get a few  
 errors messages and the computer stuck after this:
 
  /lib/lsb/init-functions: line 590: /run/var/bootlog: No such file or  
 directory
  /etc/rc.d/init.d/rc: line 217: /var/log/boot.log: Read-only file system
  /etc/rc.d/init.d/rc: line 220: /var/log/boot.log: Read-only file system
  [  301.811991] rc used greatest stack depth: 5556 byte left
  INIT: Id 2 respawning too fast: disable for 5 minutes
  INIT: Id 4 respawning too fast: disable for 5 minutes
  INIT: Id 5 respawning too fast: disable for 5 minutes
  INIT: Id 6 respawning too fast: disable for 5 minutes
  INIT: Id 1 respawning too fast: disable for 5 minutes
  INIT: Id 3 respawning too fast: disable for 5 minutes
  INIT: no more processes left in this runlevel
 
 The LFS version is 7.1 and is running on VirtualBox with PAE/NX and VT-x,  
 the processor is a dual-core E5300 and the virtual machine have 512MiB of  
 RAM. Could be this a problem? LFS can be compiled on VirtualBox?

I think you have a problem in your kernel configuration.

Section 8.3 says to ensure you have devtmpfs built into the kernel.
The first thing the boot scripts do is create a tmpfs for /run and a directory 
/run/var.  The first line above indicates that that /dev was never mounted.

   -- Bruce


-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Problems starting the final LFS system

2012-05-11 Thread Ken Moffat
On Fri, May 11, 2012 at 03:30:01PM -0400, Lázaro Morales wrote:
 Hello,
 
 After complete the LFS book, when I restart the computer I get a few  
 errors messages and the computer stuck after this:
 
  /lib/lsb/init-functions: line 590: /run/var/bootlog: No such file or  
 directory
  /etc/rc.d/init.d/rc: line 217: /var/log/boot.log: Read-only file system
  /etc/rc.d/init.d/rc: line 220: /var/log/boot.log: Read-only file system
  [  301.811991] rc used greatest stack depth: 5556 byte left
  INIT: Id 2 respawning too fast: disable for 5 minutes
  INIT: Id 4 respawning too fast: disable for 5 minutes
  INIT: Id 5 respawning too fast: disable for 5 minutes
  INIT: Id 6 respawning too fast: disable for 5 minutes
  INIT: Id 1 respawning too fast: disable for 5 minutes
  INIT: Id 3 respawning too fast: disable for 5 minutes
  INIT: no more processes left in this runlevel
 
 The LFS version is 7.1 and is running on VirtualBox with PAE/NX and VT-x,  
 the processor is a dual-core E5300 and the virtual machine have 512MiB of  
 RAM. Could be this a problem? LFS can be compiled on VirtualBox?
 
 Thanks very much,
 Lázaro
 
 When a boot fails, it's often best to concentrate on the first
error. From what you have shown, /run/var/bootlog: No such file or
directory. Do you have a tmpfs on /run in your /etc/fstab, and does
the /run directory exist ?

 However, the more important message might have been before that!

 Whenever a boot is failing in userspace, (i.e. no  apparent kernel
failures), the best way to find the error(s) is to boot with
init=/bin/bash on the grub command line.  That should give you a
read-only system for the root user.  If you can get in to that, try
running the scripts from /etc/rcS.d/ in order.  If you get those,
run the scripts from rc3,d/, again in order.

 When you encounter an error, make a note of it - sometimes you can
fix it there, other times you will need to go back to chroot to fix
it.  I assume that because you are using a virtual machine you will
also have other sessions available in which to read the book and
google for the problem(s) you encounter - that sounds a lot nicer
than bringing up a problematic boot on real hardware!

 But either way, a pen and a stack of paper to note the errors will
probably come in useful.

 If /bin/bash doesn't run because it is linked to libraries in
/tools, best to work out what went wrong (section 6.10, adjusting
the toolchain) and then make a fresh start ('start over' in
American).  Most other erors are fixable.

 If the earlier errors turn out to be a problem with the kernel
config, and it is releated to VirtualBox, you might find answers by
googling this list's archives - I know people have successfully
built LFS on it, and I know other people have misconfigured their
kernels.

 Good luck!

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page