Author Topic: Help needed with understanding PCLinuxOS boot process  (Read 420 times)

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Help needed with understanding PCLinuxOS boot process
« on: November 09, 2012, 05:10:21 AM »
I have seen posts by some members here of seeing a message "Cannot open file delete" during boot immediately after GRUB menu. For a few it seems to cause a long delay, while others have reported shorter delay. The only working solution for this is to verify the UUID of all partitions to see that they match properly in both menu.lst and fstab. But this does not work for all. And even if it works, it is a workaround and does not explain why.

Every message that appears on the screen during the boot sequence has to originate from some program. If we can completely detail the chain of command during boot, it might lead to some understanding.

An internet search for linux boot sequence throws up a lot of pages explaining the general working but it may not be relevant to PCLinuxOS completely. And they do not mention the exact package names involved.

The general idea of boot as per my current knowledge is BIOS > MBR > GRUB > Kernel > Init > Runlevel programs.

How to correlate these to the text that appears online in verbose mode?

I believe we see some text indicating that GRUB is active. Then we see GRUB menu. After that this cannot open file delete appears. Then other PCLinuxOS messages start appearing.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3979
Re: Help needed with understanding PCLinuxOS boot process
« Reply #1 on: November 09, 2012, 06:02:26 AM »
This message is not the cause of the delay. It is a comment by some process that looks for a file somewhere called delete and is probably a programming error of some sort, but by the time the message appears the process has already stopped looking for it.

The delay is caused when a partition cannot be found, and is associated with the message "waiting for /dev/sdxn to appear" where x and n are the letter and number of the partition. This might occur before the / partition is mounted and therefore while the kernel is still operating with /boot/initrd.img as the file system.

The remedy, as you say, is to ensure the UUIDs specified in /etc/fstab match the actual UUIDs of the partitions (or specify the partitions in some other way such as a label). However, this applies to both /etc/stab in the / partition and /etc/fstab in initrd.img, which can only be changed by remaking the file to which initrd.img points after making all the other changes. Read the man page on mkinitrd for more details of that.

Hope this helps.
« Last Edit: November 09, 2012, 06:06:00 AM by kjpetrie »
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Help needed with understanding PCLinuxOS boot process
« Reply #2 on: November 09, 2012, 07:58:14 AM »
I had thought that it could be something like that. I have heard a statement that Everything is a file in Linux. From that I guessed that it could be Cannot open file delete.

In my case, I am not getting any "waiting for ..." message. Here I just get a blank screen for sometime following which cannot open file delete appears. There has not been a change in the UUIDs after the initial installation and I have verified that all entries are indeed correct.

Is it true that installing a new kernel does a similar thing like mkinitrd? I have installed the .pae.bfs  kernel recently and the message still appears.

What if we know the exact package which throws this error and then it may be possible to communicate with the author of the package and see if anything else could be found?

------------------------------

Could the actual boot sequence be enumerated as packages?
MBR > grub > grub-0.97-27pclos2011.src.rpm > ..... etc.
« Last Edit: November 09, 2012, 08:04:09 AM by sling-shot »
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3979
Re: Help needed with understanding PCLinuxOS boot process
« Reply #3 on: November 09, 2012, 11:07:17 AM »
Sounds as if you have something happening or waiting between grub and the loading of the kernel, or between the loading of the kernel and whatever produces that message, but I don't know what.

Making a new initrd is part of installing a kernel, as it has to fit the particular system in use so it can't be a pre-compiled binary.

I don't think the boot sequence relates to package. Grub is partly installed in the MBR and partly in /boot/grub. It reads menu.lst from /boot/grub/ and displays the menu. Then it waits for a selection and loads the kernel with the appropriate arguments passed. The kernel then searches for initrd.img and sets up what it needs to set up. Then it mounts the / partition and starts to execute "init", which configures the system further and then starts to call the boot scripts, which come from all sorts of packages.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Help needed with understanding PCLinuxOS boot process
« Reply #4 on: November 09, 2012, 11:28:27 AM »
Regarding the "cannot open file delete" I have found a new clue.

It is the first line which appears in boot.log. So we need to know which process starts writing boot.log.

The relation to package will be needed to try and see if this particular error message may be searched from source. (I believe this being a string, it should be there somewhere in the source.) and the source is there in the source packages.

I will remove the "quiet" option from menu.lst and see if it provides any further clues.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 723
Re: Help needed with understanding PCLinuxOS boot process
« Reply #5 on: November 09, 2012, 12:05:21 PM »
The relation to package will be needed to try and see if this particular error message may be searched from source. (I believe this being a string, it should be there somewhere in the source.) and the source is there in the source packages.

We already know that the message is due to a problem in plymouth-theme-pclinuxos-1.1.10-2pclos2011 (and possibly other plymouth themes).  We also know that it is completely harmless which is why we are not devoting much time to tracking it down more precisely.

Doing such a string search on the source is unlikely to reveal anything useful as the message string is most likely something like "cannot open file: %s" (where the %s gets substituted with the file name) which will appear in thousands of packages.
 
Terry.
« Last Edit: November 09, 2012, 12:15:19 PM by TerryN »
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Help needed with understanding PCLinuxOS boot process
« Reply #6 on: November 09, 2012, 12:24:12 PM »
We already know that the message is due to a problem in plymouth-theme-pclinuxos-1.1.10-2pclos2011 (and possibly other plymouth themes).  We also know that it is completely harmless which is why we are not devoting much time to tracking it down more precisely.
...

Terry.

Terry,
Thanks for that information. There has been some discussion going on about this in the forum but this is the first time there has been any indication that it is known. So good :)

-------------------

After removing "quiet", I now see that my installation pauses at a line switching to clocksource tsc. A search for this indicates that it may also be due to some hardware / driver thing. They say that some more clues may be found in dmesg. I will look into that too and get back.

-------------------

May be we should have a "Known issues" page on the wiki to prevent the same things being discussed again and again.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6