Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2012 09:05:46 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Ralf Mardorf <ralf.mardorf@rocketmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to create a partition for FreeBSD 9.0?
Message-ID:  <alpine.BSF.2.00.1211270901130.56247@wonkity.com>
In-Reply-To: <1354029192.2827.11.camel@q>
References:  <1353795280.2662.12.camel@q> <20121124233520.7ad4b4be.freebsd@edvax.de> <1353798889.2662.46.camel@q> <20121125002717.11a61c8d.freebsd@edvax.de> <1353807268.2773.16.camel@q> <20121125131908.671f6d31.freebsd@edvax.de> <1353846552.2508.23.camel@q> <alpine.BSF.2.00.1211251322500.23965@wonkity.com> <1353877782.2508.225.camel@q> <alpine.BSF.2.00.1211251421160.23965@wonkity.com> <1354029192.2827.11.camel@q>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 27 Nov 2012, Ralf Mardorf wrote:

> All instructions failed. Is there a way to mount a linux partition or
> USB-stick and to redirect the output of the gpart commands to a log
> file?
>
> In linux after mounting a partition or usb-stick I would do it like
> that:
>
> spinymouse@q:~$ echo "$ ls -l" >> logfile
> spinymouse@q:~$ ls -l >> logfile

Too much work.  Use script(1):
$ script /tmp/session.log
$ (do a bunch of stuff)
$ exit

And session.log will contain everything.  Including control characters, 
so edit it before posting.

> So how can I mount e.g. an USB stick?

This is in the Handbook somewhere, but a quick look didn't find it, so:

# mount -t msdosfs /dev/da0s1 /mnt

That assumes there is a FAT filesystem in the first partition of the 
memory stick, a common setup.  Please don't use NTFS.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1211270901130.56247>