Re: [9fans] usb disks in plan9

2009-11-26 Thread Ethan Grammatikidis
On 26 Nov 2009, at 1:51 pm, Francisco J Ballesteros wrote: usb/disk knows how to handle units. Some devices provide their units to handle parts. Regarding partitions, usb/disk does not know how to handle partitions. And it's likely it will never do. The plan is to use a different driver that k

Re: [9fans] usb disks in plan9

2009-11-26 Thread erik quanstrom
> Ah, I wondered if it might be that, but I had to check. So, no fixing > usb/disk? i've been using the sdloop driver. - erik

Re: [9fans] usb disks in plan9

2009-11-26 Thread Francisco J Ballesteros
usb/disk knows how to handle units. Some devices provide their units to handle parts. Regarding partitions, usb/disk does not know how to handle partitions. And it's likely it will never do. The plan is to use a different driver that knows how to handle partitions and use that driver for everythin

Re: [9fans] usb disks in plan9

2009-11-26 Thread Ethan Grammatikidis
Usb disks don't know how to handle partitions. You have to use partfs IIRC or some other tool to partition it. Erm, every USB thumb drive, SD card, or CF card I've used has had a partition table. Memories of mounting the things under Windows are too distant to be useful, but OS X not only expect

Re: [9fans] usb disks in plan9

2009-11-26 Thread erik quanstrom
> >> Usb disks don't know how to handle partitions. > >> You have to use partfs IIRC or some other tool to > >> partition it. > > Erm, every USB thumb drive, SD card, or CF card I've used has had a > partition table. Memories of mounting the things under Windows are > too distant to be useful,

Re: [9fans] usb disks in plan9

2009-11-26 Thread Ethan Grammatikidis
Usb disks don't know how to handle partitions. You have to use partfs IIRC or some other tool to partition it. Erm, every USB thumb drive, SD card, or CF card I've used has had a partition table. Memories of mounting the things under Windows are too distant to be useful, but OS X not only

Re: [9fans] usb disks in plan9

2009-11-23 Thread Iruata Souza
On Sun, Nov 22, 2009 at 3:57 PM, Tim Newsham wrote: >> Usb disks don't know how to handle partitions. >> You have to use partfs IIRC or some other tool to >> partition it. > > Hmm..  Here is what I would like to do.  I would like to put > a FAT32 and a fossil (or kfs) filesystem on a usb flash dri

Re: [9fans] usb disks in plan9

2009-11-22 Thread Tim Newsham
I'm talking to nemo about what we should do to partition USB devices. fwiw, I'm using the attached patch to /sys/src/9/pc/boot to mount my usb drive as root partition, now. The rootspec I'm using is "local!/dev/sdXX/fossil". It relies on adding yet more binaries to the ramdisk: partfs, fdisk and

Re: [9fans] usb disks in plan9

2009-11-22 Thread erik quanstrom
> > i haven't written a sdorion 9load driver, so i cheat in > > a similar way. replace sda0 with the appropriate. > > I'm not using 9load, anyway. This machine has OFW and I'm > using a small forth script in place of 9load. the same cheat would work. the plan 9 kernel doesn't partition disks.

Re: [9fans] usb disks in plan9

2009-11-22 Thread Tim Newsham
i haven't written a sdorion 9load driver, so i cheat in a similar way. replace sda0 with the appropriate. I'm not using 9load, anyway. This machine has OFW and I'm using a small forth script in place of 9load. - erik Tim Newsham | www.thenewsh.com/~newsham | thenewsh.blogspot.com

Re: [9fans] usb disks in plan9

2009-11-22 Thread geoff
There are two distinct issues: booting from USB devices and partitioning USB devices. I believe that if you follow the directions at the end of prep(8), you have a modern BIOS, and it isn't too buggy, you should be able to boot from a FAT file system on a USB device (that is, load a kernel from it

Re: [9fans] usb disks in plan9

2009-11-22 Thread erik quanstrom
i think that with sdloop(3) it's possible to get a drive partitioned on bootup. the one gnarly trick you'd need is to put the partitions manually in your plan9.ini unless 9load sees the device through bios. i haven't written a sdorion 9load driver, so i cheat in a similar way. replace sda0 with

Re: [9fans] usb disks in plan9

2009-11-22 Thread Tim Newsham
Usb disks don't know how to handle partitions. You have to use partfs IIRC or some other tool to partition it. Hmm.. Here is what I would like to do. I would like to put a FAT32 and a fossil (or kfs) filesystem on a usb flash drive and use the FAT32 for botting and the fossil as my root filesy

Re: [9fans] usb disks in plan9

2009-11-22 Thread erik quanstrom
On Sun Nov 22 05:01:24 EST 2009, n...@lsub.org wrote: > Usb disks don't know how to handle partitions. > You have to use partfs IIRC or some other tool to > partition it. > usb/disk should return "bad process or channel control request" rather than "permission denied". with contrib quanstro/sd,

Re: [9fans] usb disks in plan9

2009-11-22 Thread Francisco J Ballesteros
I don't get timeouts here. can you check that sw built from sources one month old do work and that sw built from current ones do not? (both kernel and user code for USB). if you can tell me an interval when the thing broke for your devices I can try to guess why and do something. On 22/11/2009,

Re: [9fans] usb disks in plan9

2009-11-22 Thread lucio
> this is in vmware, so its possible vmware is acting up (it happens > at times)... is anyone else using thumb drives with current > plan9 sources successfully? Do you get a timeout shortly after you plug the device in and usbd shows it as detected? I use "usbdebug" in plan9.ini, so I may be get

Re: [9fans] usb disks in plan9

2009-11-22 Thread Francisco J Ballesteros
Usb disks don't know how to handle partitions. You have to use partfs IIRC or some other tool to partition it. Regarding the problem with current sources, it's weird. What do you see in #u/usb/ctl when you plug your disk into? What does usbd say when you run it with debug enabled? Is there any mes

Re: [9fans] usb disks in plan9

2009-11-21 Thread Tim Newsham
I'm trying to partition a usb thumb drive in plan9: % disk/fdisk -baw /dev/sdU4.0/data adding part failed: plan9: permission denied ?warning: partitions could not be updated in devsd I get similar issues when trying to use prep. If I rerun fdisk or prep it seems to read the previously con

[9fans] usb disks in plan9

2009-11-21 Thread Tim Newsham
I'm trying to partition a usb thumb drive in plan9: % disk/fdisk -baw /dev/sdU4.0/data adding part failed: plan9: permission denied ?warning: partitions could not be updated in devsd I get similar issues when trying to use prep. If I rerun fdisk or prep it seems to read the previously