Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2012 16:15:52 +0100
From:      Ralf Mardorf <ralf.mardorf@rocketmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: How to create a partition for FreeBSD 9.0?
Message-ID:  <1354029352.2827.12.camel@q>
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, 2012-11-27 at 16:13 +0100, 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
> spinymouse@q:~$ cat logfile
> $ ls -l
> total 2644
> -rw-rwxr-- 1 test_user_q spinymouse    2614 Nov 24 03:43 bak_q_arch-mail
> drwxr-xr-x 2 spinymouse  spinymouse    4096 Oct 13 22:47 Desktop
> drwxr-xr-x 2 spinymouse  spinymouse    4096 Nov  1 18:19 Documents
> drwxr-xr-x 2 spinymouse  spinymouse    4096 Nov 24 15:56 Downloads
> -rw-rw-r-- 1 spinymouse  spinymouse   53724 Nov 24 14:39 freebsd_logo1.png
> -rw-rw-r-- 1 spinymouse  spinymouse  127098 Nov 24 14:39 freebsd_logo1.xcf
> -rw-r--r-- 1 spinymouse  spinymouse 2492653 Nov 12 09:54 hdsp.1.mix
> -rw-rw-r-- 1 spinymouse  spinymouse       8 Nov 27 15:57 logfile
> drwx------ 7 spinymouse  spinymouse    4096 Nov 15 18:50 Spinymouse
> 
> So how can I mount e.g. an USB stick?
> 
> And could I then run something similar to
> 
> # echo "gpart show ada0s1" >> /path/to/usbstick/logfile
> # gpart show ada0s1 >> /path/to/usbstick/logfile
> # echo "gpart add -t freebsd -i1 ada0" >> /path/to/usbstick/logfile
> # echo gpart add -t freebsd -i1 ada0 >> /path/to/usbstick/logfile
   ^^^^ oops, but I guess you know what I mean
> etc.?
> 
> I would like to post the output to the list.
> 
> TIA
> Ralf





Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?1354029352.2827.12.camel>