Package: udev
Version: 0.056-2

I have an external USB drive with many partitions. Since it was set up on a mac, the (useful) partitions starts at 6, and I end up with partition numbers up to 14. When I plug in the drive, I have access to partitions 6-9, but not 10-14. The latter are root:disk 660, because the removable script fails to recognize them as removable devices.

The removable.sh strips away one-digit partition numbers, but not multi-digit numbers.

Here is a patch again 0.056-2:

--- removable.sh.orig   Tue Apr 26 12:16:25 2005
+++ removable.sh        Tue Apr 26 12:16:46 2005
@@ -24,7 +24,7 @@
 }

 # strip the partition number, if present
-DEV="${1%[0-9]*}"
+DEV="${1%%[0-9]*}"
 SCAN_BUS="$2"

 BLOCKPATH="/sys/block/$DEV"




-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to