* [9fans] Mount a usb ext2 hd?
@ 2008-04-09 18:38 Markus Sonderegger
2008-04-10 12:04 ` cinap_lenrek
0 siblings, 1 reply; 7+ messages in thread
From: Markus Sonderegger @ 2008-04-09 18:38 UTC (permalink / raw)
To: 9fans
Any clues or tips? I've tried:
% usb/disk -l
usb/disk: statusread: usb endpoint stalled
% cat /n/disk/ctl
0: inquiry SAMSUNG HD320KJ geometry 625142448 512
% disk/fdisk -p /n/disk/0/data
part linux 63 625137345
% ext2srv -f /n/disk/0/data:63 ext2
% ls /srv/ext2
/srv/ext2
% if(! test -e /n/usb) mkdir /n/usb
% mount -c /srv/ext2 /n/usb
mount: mount /n/usb: file does not exist
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] Mount a usb ext2 hd?
2008-04-09 18:38 [9fans] Mount a usb ext2 hd? Markus Sonderegger
@ 2008-04-10 12:04 ` cinap_lenrek
0 siblings, 0 replies; 7+ messages in thread
From: cinap_lenrek @ 2008-04-10 12:04 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 520 bytes --]
IIRC ext2srv doesnt understand the part:offset notation as dossrv
does. You could make a FAT partition on the stick and put the ext2 as
image file on it. Then you could left some space left free and use it
also with Windows to exchange some files. But this depends on what
you want to use the stick for. Other option would be to make usb/disk
understand partition control messages like sd does... maybe thats
even the case... My system here is not that up to date... Still
using the usbsfs here.
cinap
[-- Attachment #2: Type: message/rfc822, Size: 3261 bytes --]
From: "Markus Sonderegger" <msonderegger@aon.at>
To: 9fans@cse.psu.edu
Subject: [9fans] Mount a usb ext2 hd?
Date: Wed, 9 Apr 2008 14:38:03 -0400
Message-ID: <588ea322e3534e896d658adb414be77a@yourdomain.dom>
Any clues or tips? I've tried:
% usb/disk -l
usb/disk: statusread: usb endpoint stalled
% cat /n/disk/ctl
0: inquiry SAMSUNG HD320KJ geometry 625142448 512
% disk/fdisk -p /n/disk/0/data
part linux 63 625137345
% ext2srv -f /n/disk/0/data:63 ext2
% ls /srv/ext2
/srv/ext2
% if(! test -e /n/usb) mkdir /n/usb
% mount -c /srv/ext2 /n/usb
mount: mount /n/usb: file does not exist
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] Mount a usb ext2 hd?
2008-04-09 21:48 ` Markus Sonderegger
@ 2008-04-10 15:06 ` cinap_lenrek
0 siblings, 0 replies; 7+ messages in thread
From: cinap_lenrek @ 2008-04-10 15:06 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 91 bytes --]
you can omit the -f ... arg on ext2srv if you specify the partition
anyway on mountspec.
[-- Attachment #2: Type: message/rfc822, Size: 2514 bytes --]
From: "Markus Sonderegger" <msonderegger@aon.at>
To: 9fans@9fans.net
Subject: Re: [9fans] Mount a usb ext2 hd?
Date: Wed, 9 Apr 2008 17:48:28 -0400
Message-ID: <6efe02efca8ec904e243427804d54fd6@yourdomain.dom>
Thank you! I works like this:
usb/disk
disk/partfs -m /dev -d sdU0 /n/disk/0/data
disk/fdisk -p /dev/sdU0/data>/dev/sdU0/ctl
blk=`{disk/fdisk -p $disk | awk '/^part linux / {print $3}'}
ext2srv -f /n/disk/0/data:$blk usbdisk
mount -c /srv/usbdisk /n/usb /dev/sdU0/linux
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] Mount a usb ext2 hd?
2008-04-10 13:24 ` erik quanstrom
2008-04-09 21:48 ` Markus Sonderegger
@ 2008-04-10 14:03 ` a
1 sibling, 0 replies; 7+ messages in thread
From: a @ 2008-04-10 14:03 UTC (permalink / raw)
To: 9fans
>> % if(! test -e /n/usb) mkdir /n/usb
>> % mount -c /srv/ext2 /n/usb
>> mount: mount /n/usb: file does not exist
>
> i think you mean
>
> mount -c /srv/ext2 /n/ext2 /dev/sdXX/$partition
are you correcting the /n/usb to /n/ext2, or the lack of a
spec arg? if the later, at least as per the man page, both
work. without the spec arg, ext2srv uses the -f arg as a
default (as does dossrv, which was news to me). if the
former, i agree it's clearer but it shouldn't break things,
no?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] Mount a usb ext2 hd?
2008-04-09 18:39 Markus Sonderegger
@ 2008-04-10 13:24 ` erik quanstrom
2008-04-09 21:48 ` Markus Sonderegger
2008-04-10 14:03 ` a
0 siblings, 2 replies; 7+ messages in thread
From: erik quanstrom @ 2008-04-10 13:24 UTC (permalink / raw)
To: 9fans
> % usb/disk -l
> usb/disk: statusread: usb endpoint stalled
>
> % cat /n/disk/ctl
> 0: inquiry SAMSUNG HD320KJ geometry 625142448 512
>
> % disk/fdisk -p /n/disk/0/data
> part linux 63 625137345
you need to use partfs to partition /n/disk.
this will give you /dev/sdXX by default.
disk/partfs /n/disk/0/data
disk/fdisk -p /dev/sdXX/data>/dev/sdXX/ctl
if(test -f /dev/sdXX/plan9)
disk/prep -p /dev/sdXX/plan9>/dev/sdXX/ctl
>
> % ext2srv -f /n/disk/0/data:63 ext2
> % ls /srv/ext2
> /srv/ext2
you would then have
ext2srv -f /dev/sdXX/$partition
> % if(! test -e /n/usb) mkdir /n/usb
> % mount -c /srv/ext2 /n/usb
> mount: mount /n/usb: file does not exist
i think you mean
mount -c /srv/ext2 /n/ext2 /dev/sdXX/$partition
- erik
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] Mount a usb ext2 hd?
2008-04-10 13:24 ` erik quanstrom
@ 2008-04-09 21:48 ` Markus Sonderegger
2008-04-10 15:06 ` cinap_lenrek
2008-04-10 14:03 ` a
1 sibling, 1 reply; 7+ messages in thread
From: Markus Sonderegger @ 2008-04-09 21:48 UTC (permalink / raw)
To: 9fans
Thank you! I works like this:
usb/disk
disk/partfs -m /dev -d sdU0 /n/disk/0/data
disk/fdisk -p /dev/sdU0/data>/dev/sdU0/ctl
blk=`{disk/fdisk -p $disk | awk '/^part linux / {print $3}'}
ext2srv -f /n/disk/0/data:$blk usbdisk
mount -c /srv/usbdisk /n/usb /dev/sdU0/linux
^ permalink raw reply [flat|nested] 7+ messages in thread
* [9fans] Mount a usb ext2 hd?
@ 2008-04-09 18:39 Markus Sonderegger
2008-04-10 13:24 ` erik quanstrom
0 siblings, 1 reply; 7+ messages in thread
From: Markus Sonderegger @ 2008-04-09 18:39 UTC (permalink / raw)
To: 9fans
Any clues or tips? I've tried:
% usb/disk -l
usb/disk: statusread: usb endpoint stalled
% cat /n/disk/ctl
0: inquiry SAMSUNG HD320KJ geometry 625142448 512
% disk/fdisk -p /n/disk/0/data
part linux 63 625137345
% ext2srv -f /n/disk/0/data:63 ext2
% ls /srv/ext2
/srv/ext2
% if(! test -e /n/usb) mkdir /n/usb
% mount -c /srv/ext2 /n/usb
mount: mount /n/usb: file does not exist
Regards,
Markus
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-04-10 15:06 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-09 18:38 [9fans] Mount a usb ext2 hd? Markus Sonderegger
2008-04-10 12:04 ` cinap_lenrek
2008-04-09 18:39 Markus Sonderegger
2008-04-10 13:24 ` erik quanstrom
2008-04-09 21:48 ` Markus Sonderegger
2008-04-10 15:06 ` cinap_lenrek
2008-04-10 14:03 ` a
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).