LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-15-2010, 03:52 AM   #1
jaymz69
LQ Newbie
 
Registered: Jun 2007
Posts: 18

Rep: Reputation: 1
1 minute boot delay 'waiting for device sda5 to appear'


I noticed it when a clean install was done on one machine in a lab..

they all have the same config and use mandriva 2010 but one of them borke and a clean install of the system was performed after which I noticed a considerable boot time difference between this machine and the others [ie others being much slower]...

during boot of the slower machines I looked at the command line and it showed the info which I put in the subject 'waiting for device sda5 to appear for one minute' which obviously causes the delay -- how to repair this?

when I looked at the disk management it turns out it has a main partition 'sda' and 2 extended partitions 'sda5' and 'sda6' ['sda5' working as the swap partition]

whats wrong and how can I improve the situation to make the machines boot faster? [in layman terms please ]
 
Old 05-15-2010, 04:22 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 63
This is probably a problem with your system's initrd, which became out of sync with your partitions, probably because a partition was formatted anew. You just have to re-create the initrd file (as root). Example (as root):
Code:
# uname -r
2.6.31.13-desktop-1mnb          (this gives the kernel version you're using)
# mkinitrd /boot/initrd-2.6.31.13-desktop-1mnb.img 2.6.31.13-desktop-1mnb
Of course you have to use (twice) the same version in the mkinitrd line, as uname told you.

Yves.
 
Old 05-15-2010, 04:39 AM   #3
jaymz69
LQ Newbie
 
Registered: Jun 2007
Posts: 18

Original Poster
Rep: Reputation: 1
are you sure this is the case? Im not questioning Ur judgement only wantin to be safe

Im also askin because when [in command line] I looked at the line just after 'waiting for device sda5 to appear' it said 'could not find resume device' [and uuid of sda5 followed in brackets] and then 'could not resolve resume device' [and again uuid of sda5 followed in brackets]

when I did some goodle search for these errors most pages I found talked about a direct problem with swap partition being badly formatted -- so after this additional info are you sure I should do as Uve written above?
 
Old 05-15-2010, 04:46 AM   #4
jaymz69
LQ Newbie
 
Registered: Jun 2007
Posts: 18

Original Poster
Rep: Reputation: 1
I did as Yves suggested -- no positive results
 
Old 05-17-2010, 04:43 PM   #5
barjac
LQ Newbie
 
Registered: May 2010
Location: Rossendale UK
Distribution: Mandriva
Posts: 15

Rep: Reputation: 1
You need to check that the UUID of your swap partition is correct in fstab, menu.lst and initrd:-
Run this script as root to quickly check:-
Code:
#!/bin/bash
# swap_chk.sh
echo "Swap partitions on system (blkid) :-"
blkid |grep swap|cut -d'"' -f 2
echo "Swaps listed in fstab :-"
sed -e '/^#/d' /etc/fstab | grep swap | cut -d= -f2 | cut -d" " -f1
echo "menu.lst resumes:-"
sed -e '/^#/d' /boot/grub/menu.lst | grep resume | cut -d"=" -f6 | cut -d" " -f1
echo "Root and swap UUIDs as expected by initrd :-"
lsinitrd /boot/initrd.img | grep -m2 waitdev |cut -d" " -f3 | cut -d= -f2
Post back the terminal output if you need help to correct anything.
EDIT You can also run this combined check and repair tool for this issue - again as root. No guarantees at all, but it has been tested in Mandriva 2010.0.
http://barjac.pastebin.com/raw.php?i=f2d0a3e3a

Last edited by barjac; 05-17-2010 at 04:59 PM. Reason: Added repair tool swapfix.sh
 
1 members found this post helpful.
Old 05-18-2010, 01:07 PM   #6
jaymz69
LQ Newbie
 
Registered: Jun 2007
Posts: 18

Original Poster
Rep: Reputation: 1
thank U -- it looks nice

but I was impatient and re-installed the system on all the machines so I wont be able to give it a try at this moment but if I notice the problem again Ill be sure to try both tips [however when I compared the uuids -- only with my own eyes and a pencil though -- in all these files U mention they looked identical so Im not sure the problem was there]

I noticed differences in partition setup between the machine which started quickly and the ones which had the 1 minute delay -- the ones with the delay were strangely partitioned [by the company which provided comps for the lab] into 3 different file systems: windows, linux swap and linux native
however the one which started smoothly had only ext4 and linux swap so I concluded these multiple file systems had to be the cause of the problem and erased formatted and installed everything from scratch -- so far all the machines have been runnin smoothly

thanx again for replying
 
Old 05-19-2010, 02:44 AM   #7
barjac
LQ Newbie
 
Registered: May 2010
Location: Rossendale UK
Distribution: Mandriva
Posts: 15

Rep: Reputation: 1
It may have been a different issue then. The usual cause of this problem is when someone installs another distribution on the same machine, which re-formats the common swap partition, changing it's UUID in the process.
Glad you sorted it anyhow :-)
 
1 members found this post helpful.
Old 06-02-2010, 12:16 AM   #8
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: pclinuxos slackware64 tails kali
Posts: 3,382
Blog Entries: 33

Rep: Reputation: 217Reputation: 217Reputation: 217
Thank you.
 
Old 11-14-2010, 10:48 PM   #9
fral
LQ Newbie
 
Registered: Nov 2010
Location: Venezuela
Distribution: PclinuxOS
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by theYinYeti View Post
This is probably a problem with your system's initrd, which became out of sync with your partitions, probably because a partition was formatted anew. You just have to re-create the initrd file (as root). Example (as root):
Code:
# uname -r
2.6.31.13-desktop-1mnb          (this gives the kernel version you're using)
# mkinitrd /boot/initrd-2.6.31.13-desktop-1mnb.img 2.6.31.13-desktop-1mnb
Of course you have to use (twice) the same version in the mkinitrd line, as uname told you.

Yves.
My english is awful so, excuse any mispelling.

Hello, i know this is a already old thread but it resulted really helpful to me so i just wanted to thanks to all and to post the differences in my case in case it results useful to somebody else.

What happened to me was that i was having overlapping problems between my swap and my /home as a product of using the same partitions in my old distro to install my PCLOS, after recreate and reformat my swap i started to have the same delay problems in my boot time as described by the OP. When i did the changes to the swap partition, the system re-numerated my partitions so i was sure the problem was in the uuids but didn't know how to fix it till now.

In my case lsinitrd told me that the partitions with wrong uuid in initrd (according to the fstab) was the / and the swap, so the solution was as simple as re-create my initrd as stated by theYinYeti, and now i have back my normal boot speed (crazy fast normal PCLOS boot speed ), so thank you very much to all for this thread.


Greetings and i'll be roaming a lot this forum
 
Old 04-20-2011, 06:21 PM   #10
robertobribeiro
LQ Newbie
 
Registered: Apr 2011
Distribution: Ubuntu 11.04 (natty x64)
Posts: 3

Rep: Reputation: 0
I was just facing the same problem reported by jaymz69 on my laptop and solved with barjac's scripts (swap_chk.sh and swapfix.sh)

Thank you! =)

Code:
cat /etc/issue
Mandriva Linux release 2010.2 (Official) for x86_64
Kernel 2.6.33.7-desktop-2mnb on a 4-processor x86_64 / \l
 
  


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
3 minute delay with socket in java mcnalu Slackware 1 09-24-2008 02:08 AM
device dev/sda5 ignoring secure Linux - Hardware 2 08-23-2007 02:39 AM
5 to 10 minute delay connecting to Internet fuzzybud Linux - Networking 1 09-19-2006 03:45 PM
waiting for device to appear boot problem Cogvos SUSE / openSUSE 2 10-17-2005 07:37 PM
5 minute delay mounting remote NFS dunk05 Linux - Networking 1 02-06-2002 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 08:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration