Hi, list members:

  I am using usb card-reader to update my linux system. My host system is
debian. Kernel version is 2.4.19.

My update method is:
  When the computer is booting up, it checks there is a usb card-reader or
not. If there is, it means we need to update system. If there is not, it
means we need not.
  Then, I write a script named S00versionup.sh and put it in /etc/rc2.d,
which is default run level. In the script, first, I mount the usb
card-reader, if it is successful,  I tar the file stored in it to overwrite
all files on the harddisk,. at last I reboot the system. If the mount
failed, it means there is no card-reader, that to say it is no need to
update. so system will normally bootup.
My question is:
  Even if there is a usb card-reader, the mount fails occasionally. I
checked the booting messages and found that:
  message1: SCSI device sda: 2104704 512-bye hdwr sectors(1078 MS)
                 sad: Write Protect is off
                 sad1
  message2: INIT: Entering runlevel: 2
  When message1 appears before message2, the mount will successful. When
message1 appears after message2, the mount will fail. I know message2 is
printed by /sbin/init, I want to know what is the timing of message1, and
how to control it.
  As a conclusion, I need to put the mount command surely after the message1
and as early as possible in the S** of /rc2.d.
  If you understand it, Pls help me.
  Forgive me for my poor English, thank you in advance.



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to