Mount Problem while using mkbootdisk to create bootable boot media

Hi,

I had some problems using the mkbootdisk-Script that is shipped with the network installation cd. I tried to create a bootable CompactFlash-Card to boot from it und start a network installation later.

Unfortunatelly I did not record the exact error message, but it told me, that the device /dev/sdc1 does not exist.

I could solve the problem, by changing the mkbootdisk-Script as follows:

--- mm/boot/i386/mkbootdisk     2009-11-04 18:28:56.000000000 +0100
+++ mkbootdisk  2010-02-24 21:26:45.000000000 +0100
@@ -1115,7 +1115,11 @@

   die "error: activate failed
" if set_boot_flag $opt_disk, $pn;

-  system "mount -tmsdos $part $tmp_dir/mp" and die "error: mount failed
";
+print "Now mount to: $tmp_dir/mp
";
+sleep(20);
+print "...And go...
";
+
+#  system "mount5 -tmsdos $part $tmp_dir/mp" and die "error: mount failed
";
   $mp = "$tmp_dir/mp";

   for (dir_sort $src) {

During the sleep(20) I switched to a different console and mounted the device manually (yes, /dev/sdc1 existed). Then the script executed successfully and I had a fully functional CF-Card that I could boot from.

Before I came to this solution I tried to insert a 2-second sleep, but still let the script do the mounting, because I suspected that something that the script does (such as changing something about the partition) made the device disappear. This did change the error message to a simple mount failed which might be interesting when researching the problem but which obviously did not help in my situation.

(Of course this is not really a question since I could solve my problem, but perhaps other people who have the same problem or the developers of the mkbootdisk script find it useful. If there is a more appropriate place to post this, please let me know)