9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] Mount a usb ext2 hd?
Date: Thu, 10 Apr 2008 09:24:42 -0400	[thread overview]
Message-ID: <212463bc3b45783438c77206142403da@quanstro.net> (raw)
In-Reply-To: <4d5e00cd3064ea3919af04ae6e63cd56@yourdomain.dom>

> % 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



  reply	other threads:[~2008-04-10 13:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-09 18:39 Markus Sonderegger
2008-04-10 13:24 ` erik quanstrom [this message]
2008-04-09 21:48   ` Markus Sonderegger
2008-04-10 15:06     ` cinap_lenrek
2008-04-10 14:03   ` a
  -- strict thread matches above, loose matches on Subject: below --
2008-04-09 18:38 Markus Sonderegger
2008-04-10 12:04 ` cinap_lenrek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=212463bc3b45783438c77206142403da@quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).