LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   usb/sd root fs not recognized while booting! (https://www.linuxquestions.org/questions/linux-newbie-8/usb-sd-root-fs-not-recognized-while-booting-684276/)

xcraft 11-18-2008 04:53 AM

usb/sd root fs not recognized while booting!
 
I installed Slackware 12.1 to Transcend 4gb sd card on my eeepc but i got unexpected error messages. They were: " VFS: cannot open root device "801" or unknown block." and "Please append a correct "root=" boot option; hear are the available partitions ...". But in the available partitions list i couldn't find my sd card partition. Then i googled for the keywords and found that the problem was about the delay of recognition of my sd card. When lilo looks for the sd card it cant find it.

As far as i learned, the solution is actually sounds pretty simple. I should patch my kernel to sleep for about 10 seconds... In some forums i found some codes but they say it may be old or unsuitable for new kernels so i need some assistance. Hear are some codes which can help or guide you... If you could check out the code and tell me how to patch, i would greatly appreciate it.

Code:

/* begin jordi **************************** */
static DECLARE_WAIT_QUEUE_HEAD (jordi_queue);
printk ("\n\n\n---------------------------------\n");
printk (" WAITING FOR A WHILE (1000) \n");
printk (" TO DETECT THE USB DISK \n");
sleep_on_timeout (&jordi_queue, 1000);
printk ("---------------------------------\n\n\n");
/* end jordi **************************** */


syg00 11-18-2008 10:41 PM

Don't do that - just add "rootdelay=10" to the bootloader. If that doesn't work, try 15, 20 ...


All times are GMT -5. The time now is 12:16 AM.