Re: [9fans] usb flash drive with ext2

2012-01-12 Thread Richard Miller
> you can enable debug diagnostics for devices by using the usbd ctl file. Sorry, I wasn't aware of that. usbd(4) does describe setting environment variables in plan9.ini to change the arguments for usb drivers (I wasn't aware of that either), but doesn't mention that you can also do it dynamical

Re: [9fans] usb flash drive with ext2

2012-01-12 Thread Francisco J Ballesteros
you can enable debug diagnostics for devices by using the usbd ctl file. I don´t remember which ones are the strings (see the man, probably) but I remember you can enable debug flags without restarting it. You could try to locate them and enable debug for that, plug the disk again, disable debug f

Re: [9fans] usb flash drive with ext2

2012-01-12 Thread Richard Miller
> /dev/usb/ep4.0 lun 0: inquiry Generic Flash Disk 8.07 geometry 8007680 > 512 > > ... so I'd think this is ok ... My next step would be to get more diagnostic output from usb/disk. This is no longer easy with the new monolithic usb driver architecture. You can't just start 'usb/disk -d' b

Re: [9fans] usb flash drive with ext2

2012-01-12 Thread Rudolf Sykora
On 12 January 2012 11:26, Richard Miller <9f...@hamnavoe.com> wrote: >>> Try 'dd -if /dev/sdU0.0/data -of /dev/null' to see if usb driver >>> is having trouble reading the device. >> >> 0+1 records in >> 0+1 records out >> >> The last bit is strange, isn't it? > > Try 'cat /dev/sdU0.0/ctl' to see i

Re: [9fans] usb flash drive with ext2

2012-01-12 Thread Richard Miller
>> Try 'dd -if /dev/sdU0.0/data -of /dev/null' to see if usb driver >> is having trouble reading the device. > > 0+1 records in > 0+1 records out > > The last bit is strange, isn't it? Try 'cat /dev/sdU0.0/ctl' to see if usb/disk has got the geometry wrong.

Re: [9fans] usb flash drive with ext2

2012-01-12 Thread Rudolf Sykora
On 12 January 2012 11:07, Richard Miller <9f...@hamnavoe.com> wrote: >> 3) 'ext2srv -f /dev/sdU0.0/data && mount /srv/ext2 /n/linux' goes smoothly. >> However. >> ; cd /n/linux >> ; lc >> ls: .: I/O error >> >> Any more help? > > Try invoking ext2srv with '-v' to get more diagnostics. ext2srv 220:

Re: [9fans] usb flash drive with ext2

2012-01-12 Thread Richard Miller
> 3) 'ext2srv -f /dev/sdU0.0/data && mount /srv/ext2 /n/linux' goes smoothly. > However. > ; cd /n/linux > ; lc > ls: .: I/O error > > Any more help? Try invoking ext2srv with '-v' to get more diagnostics. Try 'dd -if /dev/sdU0.0/data -of /dev/null' to see if usb driver is having trouble reading

Re: [9fans] usb flash drive with ext2

2012-01-12 Thread Rudolf Sykora
On 11 January 2012 11:06, Richard Miller <9f...@hamnavoe.com> wrote: > Try 'mount -a /srv/usb /dev' and see if /dev/sdUx.y appears. > If yes, try 'ext2srv -f /dev/sdUx.y/data && mount /srv/ext2 /n/linux' > If no, try 'cat /dev/usb/ep4.0/ctl' and see if you get something like: 1) Even though I plug

Re: [9fans] usb flash drive with ext2

2012-01-11 Thread Rudolf Sykora
On 11 January 2012 11:06, Richard Miller <9f...@hamnavoe.com> wrote: > It appears you have no partition table and an ext2 fs occupying > the whole device.  This should be OK. Yes, I think the ext2 is really occupying the whole device. This is in accord with what linux has said. > Try 'mount -a /s

Re: [9fans] usb flash drive with ext2

2012-01-11 Thread Richard Miller
> (When I plug it into my plan9 machine, I don't see any entry like > /dev/sdUXX, I see 3 entries under /dev/usb/, ep4.0, ep4.1 and ep4.2, > which appear/disappear as I plug/unplug the device. Running usb/disk > claims sth. like 'there is no disk unhandled'). It appears you have no partition table

[9fans] usb flash drive with ext2

2012-01-11 Thread Rudolf Sykora
Hello, I have a usb flash drive. [ When plugged into my linux, /var/log/messages gives: Jan 11 10:28:14 redstar kernel: [ 388.588091] usb 1-3: new high speed USB device using ehci_hcd and address 3 Jan 11 10:28:14 redstar kernel: [ 388.743813] usb 1-3: New USB device found, idVendor=058f, idPr