BTS

Issue975

Title grml2usb and not removable USB keys
Priority wish Status dead
Superseder Nosy List ch, mru
Assigned To Topics grml2usb

Created on 2011-03-20.12:14:19 by ch, last changed 2011-11-07.13:55:14 by ch.

Messages
msg4044 (view) Author: ch Date: 2011-11-07.13:55:14
So this is some hardware issue; as long as nobody else cares about this, I won't 
do anything about it.
msg3711 (view) Author: ch Date: 2011-03-20.12:31:42
Michael Prokop <mika@grml.org> added the comment:
> * Christian Hofstaedtler wrote in grml's BTS on 20110320 / 13:14:
>> We should at least document what the underlying issue is, and if there was a bug
>> in earlier grml2usb versions, than that too.
>
> grml2usb checks for /sys/class/block/sdX/removable and if there's
> "1" inside it's detected as removable device, otherwise not.
> Problem: some usb keys (wrongly) claim to be non-removable devices
> (the Grml key suffers from this for example as well).

Yeah, but there seems to be an additional problem somewhere:
Had a Grml key and some other USB key.
On 2010.04 with grml2usb from grml2usb.tgz (0.9.28), both keys were
thought to be non-removable.
On 2010.12 with the shipping grml2usb only the Grml key suffered from
this problem, the other one was fine.
My guess would be that the kernel also changed under us.

> Could we safely consider usb drives to be *always* removable devices?

Possibly. Can we reliably detect usb drives? (driver == usb-storage?)

  -ch
msg3709 (view) Author: mika Date: 2011-03-20.12:19:24
* Christian Hofstaedtler wrote in grml's BTS on 20110320 / 13:14:

> grml2usb sometimes complains that the target isn't a removable device, when this 
> is clearly not the case.

Yes.

> We should at least document what the underlying issue is, and if there was a bug 
> in earlier grml2usb versions, than that too.

grml2usb checks for /sys/class/block/sdX/removable and if there's
"1" inside it's detected as removable device, otherwise not.
Problem: some usb keys (wrongly) claim to be non-removable devices
(the Grml key suffers from this for example as well).

Could we safely consider usb drives to be *always* removable devices?

regards,
-mika-
msg3707 (view) Author: ch Date: 2011-03-20.12:14:18
grml2usb sometimes complains that the target isn't a removable device, when this 
is clearly not the case.
We should at least document what the underlying issue is, and if there was a bug 
in earlier grml2usb versions, than that too.
History
Date User Action Args
2011-11-07 13:55:14chsetstatus: chatting -> dead
nosy: mru, ch
messages: + msg4044
2011-04-28 21:45:34chsetnosy: + mru
2011-03-20 12:31:43chsetmessages: + msg3711
2011-03-20 12:19:25mikasetstatus: unread -> chatting
messages: + msg3709
2011-03-20 12:14:19chcreate