How to create a partition for FreeBSD 9.0?
Ralf Mardorf
ralf.mardorf at rocketmail.com
Tue Nov 27 15:13:21 UTC 2012
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 at q:~$ echo "$ ls -l" >> logfile
spinymouse at q:~$ ls -l >> logfile
spinymouse at 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
etc.?
I would like to post the output to the list.
TIA
Ralf
More information about the freebsd-questions
mailing list