Author Topic: [solved-sort of]can not open file delete  (Read 1136 times)

Offline houndhen

  • Full Member
  • ***
  • Posts: 206
[solved-sort of]can not open file delete
« on: October 10, 2012, 08:52:51 PM »
I am running PCLOS KDE 32 bit 2012 updated to KDE 4.8.?

Booting takes  longer than it did before. Not sure when the problem started. Booting seems to hang with the gui bar at about 40% of the way across. When I hit the escape key I see the message "can not open file delete". It seems to take nearly 30 seconds before something else appears about not finding resume device and then the boot continues fine. I have read the thread at http://www.pclinuxos.com/forum/index.php?topic=102836.0;wap2 while looking for a possible solution.

Not sure how to capture the text completely during the boot process.

Here is my fstab file,
Code: [Select]
# Entry for /dev/sda9 :
LABEL=pclos / ext3 defaults 1 1
# Entry for /dev/sda7 :
UUID=2f8d3813-8770-4808-ba3a-53bcf99b7fc1 /home ext3 defaults,user_xattr 1 2
none /proc proc defaults 0 0
# Entry for /dev/sda5 :
UUID=5bbd1ab5-a494-4241-8794-7e208b477e98 swap swap defaults 0 0
none /dev/pts devpts defaults 0 0
sda9 is the \ partition and sda7 is the \home partition.

Here is blkid command output concerning the three above partitions,
Code: [Select]
/sda9: LABEL="pclos" UUID="d0fa4cbd-1809-45f7-91dc-9a99230f4a0a" TYPE="ext3"
/dev/sda5: UUID="5bbd1ab5-a494-4241-8794-7e208b477e98" TYPE="swap"
/dev/sda7: LABEL="homeext3" UUID="2f8d3813-8770-4808-ba3a-53bcf99b7fc1" TYPE="ext3" SEC_TYPE="ext2"
How do I stop this 'can not open file delete' message that interrupts the boot process? Could it have something to do with the entry in my 'menu.lst'?
Here is the menu.lst entry to start PCLOS
Code: [Select]
title PCLOS KDE 4.8
root (hd0,8)
kernel /boot/vmlinuz BOOT_IMAGE=PCLOS_2011 root=LABEL=pclos quiet vmalloc=256M acpi=on resume=UUID=d00fbeb3-c183-4d0a-b3f5-7293f8008bf2 splash=silent vga=788
initrd (hd0,8)/boot/initrd.img
Does the resume need to point to the swap partition? If so, why?

Lot of questions....

Thanks,
Harold
« Last Edit: October 14, 2012, 03:53:51 PM by houndhen »
Thanks,
Harold
PCLOS KDE

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: can not open file delete
« Reply #1 on: October 11, 2012, 12:20:15 AM »
I do see the same message but it does not seem to affect booting much other than a momentary stoppage.
A basic Google search does not yield any concrete solution yet.

Suggested remedies include:
1. Verifying the UUIDs are indeed correct particularly related to swap.
2. Changing from UUID to LABEL reference in menu.lst
3. Changing to /dev/sdx style in menu.lst

No one actually seems to know the cause of that message yet.
Archie somewhere else in this forum hinted towards Plymouth but he was not sure about it.
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 Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10694
  • MLUs Forever!
Re: can not open file delete
« Reply #2 on: October 11, 2012, 02:52:11 AM »
Quote
It seems to take nearly 30 seconds before something else appears about not finding resume device and then the boot continues fine.

The 'resume device' is the Swap partition/s as specified in your /etc/fstab file.

It is likely that the UUID used is incorrect, either in  the /boot/grub/menu.lst file or /etc/fstab.

You can check the UUIDs of your partitions using the following command


blkid   -c   /dev/null


You might need to su to root to issue this command.

« Last Edit: October 11, 2012, 03:41:14 AM by Dorian »
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Vorteggs

  • Hero Member
  • *****
  • Posts: 2422
Re: can not open file delete
« Reply #3 on: October 11, 2012, 03:40:34 AM »
Here's how some guy resolved a similar problem:
Quote
# /dev/sda3
#UUID=a2bc95ec-5fe4-4651-9ca5-7027344141e3 none   swap    sw 0      0

#Swap reference changed by me
/dev/sda3             none           swap           sw       0 0


He commented out in fstab the original line that is pointing to swap by UUID, and used new one with pointing by device.
https://lists.another distro.com/archives/kubuntu-users/2009-March/040836.html

Code: [Select]
https://lists.another distro.com/archives/kubuntu-users/2009-March/040836.html :o :o
 ;D

Aha ;)
Here you have it:
http://tinyurl.com/from-another-distro
« Last Edit: October 11, 2012, 03:45:45 AM by Vortеx »

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10694
  • MLUs Forever!
Re: can not open file delete
« Reply #4 on: October 11, 2012, 03:42:10 AM »
Here's how some guy resolved a similar problem:
Quote
# /dev/sda3
#UUID=a2bc95ec-5fe4-4651-9ca5-7027344141e3 none   swap    sw 0      0

#Swap reference changed by me
/dev/sda3             none           swap           sw       0 0

He commented out in fstab the original line that is pointing to swap by UUID, and used new one with pointing by device.
https://lists.another distro.com/archives/kubuntu-users/2009-March/040836.html

Code: [Select]
https://lists.another distro.com/archives/kubuntu-users/2009-March/040836.html

IMO, he should have corrected the erroneous UUID  ;)

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 4001
Re: can not open file delete
« Reply #5 on: October 11, 2012, 04:23:08 AM »
If I recall correctly, once menu.lst and fstab have been corrected, you might need to run mkinitrd so the system has the information immediately on boot before the file system drivers are loaded and the partitions mounted.
-----------
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 houndhen

  • Full Member
  • ***
  • Posts: 206
Re: can not open file delete
« Reply #6 on: October 11, 2012, 06:29:17 PM »
thanks for all the replies. I will try some of the proposed solutions and post back. I realized upon looking at the uuids that they didn't match in the menu.lst and fstab. I will start there and also change the fstab line to use /dev/sda?
Thanks,
Harold
PCLOS KDE

Offline Vorteggs

  • Hero Member
  • *****
  • Posts: 2422
Re: can not open file delete
« Reply #7 on: October 12, 2012, 01:35:19 AM »
Quote
I will start there and also change the fstab line to use /dev/sda

May be it's good you have one uniform way of addressing which is less confusing

If in the future you create a new or delete existing partition(s) before the partition in question, its number (e.g. /dev/sdan) will change for the system but leaving the old value in fstab, hence there would be mismatch again.
So you better try to correct the UUIDs as all other guys proposed.

By the way the partitions can have labels and system can find them by labels only AFAIK.
It doesn't matter if their UUID or device name (e.g. /dev/sd(x,n)) changes - the label remains the same and will change only by your action.
IIRC this is the old-polack's favourite way of partition addressing. :)
« Last Edit: October 12, 2012, 02:42:33 AM by Vortеx »

Offline houndhen

  • Full Member
  • ***
  • Posts: 206
Re: can not open file delete
« Reply #8 on: October 12, 2012, 09:35:41 AM »
Anything old-polack does is bound to be the best way.

I edited the menu.lst entry and fstab file and used /dev/sda5 instead of UUID for the swap partition. Upon boot after doing these I still get the (at least) 30 second delay with the message 'can not open file delete', but I no longer get the message about not finding the resume partition.

From what I gather from the posts that I have read, I will just wait and watch for a solution to 'can not open file delete' message. I can live with it. It just takes longer to boot.
Thanks,
Harold
PCLOS KDE

Offline Vorteggs

  • Hero Member
  • *****
  • Posts: 2422
Re: can not open file delete
« Reply #9 on: October 12, 2012, 09:41:30 AM »
I suppose we are waiting for Old-Polack to say something.
At least I am waiting because he is the one to say :)

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10694
  • MLUs Forever!
Re: can not open file delete
« Reply #10 on: October 12, 2012, 09:45:27 AM »
Anything old-polack does is bound to be the best way.

I edited the menu.lst entry and fstab file and used /dev/sda5 instead of UUID for the swap partition. Upon boot after doing these I still get the (at least) 30 second delay with the message 'can not open file delete', but I no longer get the message about not finding the resume partition.

From what I gather from the posts that I have read, I will just wait and watch for a solution to 'can not open file delete' message. I can live with it. It just takes longer to boot.

Your problem has nothing at all to do with that message.
It is the last message displayed before the delay.

IMO, you would be best advised to use UUIDs in fstab and menu.lst.
They are unique to the partitions regardless what device designation the OS gives the partition.
Also UUID is the default means of identifying the partitions.

kjpetrie already posted the last step to get rid of the delay ......  mkinitrd.

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline bosko

  • New Friend
  • *
  • Posts: 8
Re: can not open file delete
« Reply #11 on: October 13, 2012, 11:16:43 PM »
As someone that likes to keep many distros installed and try new ones frequently, I've run into this issue several times. When you install a distro that formats your swap file (not all do), the uuid changes, leading to the issue at hand. I make it a point to always use /dev/sd?? in fstab swap entries for this reason. Even with distros on 3 different drives, this has never caused an issue for me.

Also, if it wasn't made clear enough already, you need to rebuild your initrd after making the fstab change for the boot delay to disappear. I find that doing plymouth-set-default-theme -R your-theme-name-here (-R rebuilds the initrd image - use -l for a list of theme choices) is as easy as anything else and works across many distros with different mkinitrd type commands.
Why not enjoy a delightful Royal Crown cola?

Offline Vorteggs

  • Hero Member
  • *****
  • Posts: 2422
Re: can not open file delete
« Reply #12 on: October 13, 2012, 11:59:44 PM »
I am running PCLOS KDE 32 bit 2012 updated to KDE 4.8.?

Booting takes  longer than it did before.
I am wondering is it booting or restoring the session from the previous hibernating?

Offline houndhen

  • Full Member
  • ***
  • Posts: 206
Re: can not open file delete
« Reply #13 on: October 14, 2012, 07:55:19 AM »
Also, if it wasn't made clear enough already, you need to rebuild your initrd after making the fstab change for the boot delay to disappear. I find that doing plymouth-set-default-theme -R your-theme-name-here (-R rebuilds the initrd image - use -l for a list of theme choices) is as easy as anything else and works across many distros with different mkinitrd type commands.
I understand that I should rebuild initrd but I don't understand how to do it from what you said. I would need simpler instructions before attempting to do so.

Edit
I just timed PCLOS boot from start to music after desktop appears and it takes 2 minutes. The only message that appears that seems to delay boot is 'cannot open file delete'.
« Last Edit: October 14, 2012, 08:37:38 AM by houndhen »
Thanks,
Harold
PCLOS KDE

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10694
  • MLUs Forever!
Re: can not open file delete
« Reply #14 on: October 14, 2012, 09:04:08 AM »
Probably the easiest thing for you to do would be to install a new kernel through Synaptic.

Installing the new kernel will build an initrd file for the new kernel and you should have no delay in booting.

If the new kernel works properly with your hardware then you are OK.

You also then have the option to uninstall the existing kernel (while running from the new one), rebooting, and reinstall the older kernel again.


Else if you search for threads on the forum using  mkinitrd  you will find instructions how to create a new initrd for the existing kernel.

Essentially you rename the existing initrd, and then use the mkinitrd command from a terminal to create a new one. Then boot using the kernel with its new initrd ...  and the delay should be gone.

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT