sleep before boot panic

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>
Date: Sunday, January 6, 2008 - 2:08 pm

Hi,

I just switched to libata (pata) on my laptop and the immediate panic made it 
impossible to figure out why my boot partition wasn't available.
After applying this little patch I could check boot printk output and then saw 
everything was properly recognized and only scsi-disk support was missing.


Signed-off-by: Bernd Schubert <bernd-schubert@gmx.de>

Index: zd1211rw.git.beno/init/do_mounts.c
===================================================================
--- zd1211rw.git.beno.orig/init/do_mounts.c	2008-01-06 18:44:23.000000000 
+0100
+++ zd1211rw.git.beno/init/do_mounts.c	2008-01-06 18:45:44.000000000 +0100
@@ -330,6 +330,7 @@
 		printk("Please append a correct \"root=\" boot option; here are the 
available partitions:\n");
 
 		printk_all_partitions();
+		msleep(60 * 1000);
 		panic("VFS: Unable to mount root fs on %s", b);
 	}
 


Cheers,
Bernd
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sleep before boot panic, Bernd Schubert, (Sun Jan 6, 2:08 pm)
Re: sleep before boot panic, Andrew Morton, (Tue Jan 15, 5:38 am)
Re: sleep before boot panic, Andi Kleen, (Mon Jan 7, 4:41 pm)
Re: sleep before boot panic, Ingo Oeser, (Tue Jan 8, 2:17 am)
Re: sleep before boot panic, Andi Kleen, (Tue Jan 8, 12:11 pm)
Re: sleep before boot panic, H. Peter Anvin, (Tue Jan 8, 2:52 am)
Re: sleep before boot panic, Pavel Machek, (Tue Jan 8, 12:06 pm)
Re: sleep before boot panic, H. Peter Anvin, (Wed Jan 9, 2:03 pm)
kinit (was: sleep before boot panic), Ingo Oeser, (Thu Jan 10, 3:20 pm)
Re: sleep before boot panic, Ingo Oeser, (Sun Jan 6, 3:01 pm)
Re: sleep before boot panic, Bernd Schubert, (Sun Jan 6, 3:23 pm)
Re: sleep before boot panic, Ingo Oeser, (Sun Jan 6, 4:38 pm)