Mounting USB from Script at bootup fails
Hello everyone ,
I am currently attempting to perform the following action on a SuSe 10 machine (1) Modify the rclocal file to do the following at boot up A. Code:
mount /dev/sdb1 /tmp/usb Code:
sh /tmp/usb/run.sh The problem is that during boot up it says Code:
mount: special device /dev/sdb1 does not exist using Code:
mount /dev/sdb1 /tmp/usb Help much appreciated |
I also noticed that the HAL daemon is booting after the rclocal is ran . Could it be overriding the mount point to /media/<partitioname> ?
|
I think it is known OpenSuse does not load the driver for USB devices until much later in the booting process. Generally the initrd needs to be updated to incoporate this feature. Other distros from Debian, Slax and Red Hat do not have such limitation.
|
Thank for the reply saikee
yep i think that is defiantly the case . Even attempting to load a script at boot up at the end of run lvl 3 didn't do the trick . So any suggestions for a work around ? |
Never done it myself but as I said earlier you can recompile the initrd (ram disk file) to work round it. Opensuse web sites have loads of howto for it.
|
Thanks for the help ,
I was able to fix this issue by adding a sleep command to the script before mounting the device . This ensured that the services i need had plenty of time to start . |
You may consider posting your script here as it may be of interest to others.
|
Code:
#************************** |
All times are GMT -5. The time now is 07:46 AM. |