Hi,
ich möchte gerne den Benutzern eines SuSE 7.3 Rechners (Kernel 2.4.4-4GB) die einfache Benutzung ihrer USB-Sticks ermöglichen. Mein Problem ist, dass ich die Partitionierung/Formatierung der Sticks nicht vorhersagen kann. Auch scheint es zwei Arten zu geben die entweder als Disketten-LW oder Festplatte(partition) angesprochen werden müssen.
Meine Idee war es per script die möglichen devices zu mounten (erst /dev/sda, dann /dev/sda1, sda2…) und Fehlermeldungen zu ignorieren.
Leider stürzt das System reproduzierbar ab wenn ich eine von fdisk angezeigte „Partition“ mounte die gar keine „richtige“ (?) ist wie unten gezeigt.
Hat jemand eine Idee wie ich die Abstürze abfangen kann? Oder ein ganz anderes Vorgehen im Kopf? Könnte das Problem mit der Kernelversion zusammenhängen?
Vielen Dank,
J~
------------8
root@pc#> modprobe usb-storage
root@pc#> fdisk -l /dev/sda
Disk /dev/sda: 128 MB, 128974848 bytes
4 heads, 62 sectors/track, 1015 cylinders
Units = cylinders of 248 * 512 = 126976 bytes
Device Boot Start End Blocks Id System
/dev/sda1 ? 7062403 7024983 2142843574 72 Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(372, 101, 46) logical=(7062402, 2, 7)
Partition 1 has different physical/logical endings:
phys=(357, 132, 39) logical=(7024982, 2, 18)
Partition 1 does not end on cylinder boundary.
/dev/sda2 ? 7382434 14020717 823147060+ 75 PC/IX
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(357, 10, 14) logical=(7382433, 1, 61)
Partition 2 has different physical/logical endings:
phys=(353, 115, 52) logical=(14020716, 0, 59)
Partition 2 does not end on cylinder boundary.
/dev/sda3 ? 6584288 7490549 112376377+ 62 Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(357, 108, 41) logical=(6584287, 1, 45)
Partition 3 has different physical/logical endings:
phys=(357, 105, 39) logical=(7490548, 2, 9)
Partition 3 does not end on cylinder boundary.
/dev/sda4 ? 11635812 11636025 26461 0 Empty
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(0, 0, 0) logical=(11635811, 0, 25)
Partition 4 has different physical/logical endings:
phys=(0, 0, 0) logical=(11636024, 1, 60)
Partition 4 does not end on cylinder boundary.
Partition table entries are not in disk order
root@pc#> mount /dev/sda /usbstick/
root@pc#>
(dieser Stick ist also ohne Partitionsangabe zu mounten)