Knoppix 6.0.1 CD bug report - init script buglets

View: New views
1 Messages — Rating Filter:   Alert me  

Knoppix 6.0.1 CD bug report - init script buglets

by Jonathan S. Anderson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello:

New Knoppix user.  I grabbed the Knoppix image because I wanted to  
boot a (normally WinXP) box with a Macintosh HFSPLUS drive mounted in  
order to copy the contents onto an SMB share.  To do this, I needed to  
boot from a USB stick because there is not a free optical drive on  
that machine.

I just downloaded KNOPPIX_V6.0.1CD-2009-02-08-EN.iso and followed some  
online directions to install it on a usb key (wipe the key, install  
partition table, build ext3 fs on the key, install GRUB as well as  
Knoppix ISO contents).  This worked to get linux booted, but I ran  
into a complaint that Knoppix couldn't find the KNOPPIX image.  Since  
I was able to mount the usb filesystem manually and find the KNOPPIX  
boot image just fine, didn't know why this wasn't working.

Tracked it down to the initrd "init" script.  If you take a look at  
the trymount() procedure in init, you'll see

trymount(){
  mount -t vfat -o "$RW",umask=000,shortname=winnt,noatime "$1" "$2"  
|| \
   mount -t iso9660 -o ro "$1" "$2" || \
    ntfs-3g -o "$RW",umask=000,force "$1" "$2" || \
     mount -t reiserfs "$RW",noatime "$1" "$2" || \
      mount -t ext3 "$RW",noatime "$1" "$2" || \
       mount -t ext2 "$RW",noatime "$1" "$2"
  return "$?"
}

Note that the last three mount commands fail to include the "-o"  
before specifying options, and thus emit an error message rather than  
actually mounting the filesystem.  Since the output of trymount() is  
routed to /dev/null in findknoppix(), these error messages aren't  
there to debug.

Anyway, easy fix: add -o before "$RW" to the last three mount attempts.

JA


--
Jonathan S. Anderson <andersoj@...>, <andersoj@...>
+1.540.242.4260 (follow-me voice and FAX)
http://andersoj.org





--
To UNSUBSCRIBE, email to debian-knoppix-request@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...