Hi all,
How are you doing? I am trying to play around by installing FreeBSD onto a USB drive and I seem to have come across a rather simple problem... (or challenge if you like).
Currently I am running FreeBSD 9.0-RELEASE on my netbook in a XFCE environment, from where I am trying the install-to-usb approach.
What I did was using gpart(8) to create a new partition scheme on my USB drive:
I installed the gptboot instructions to the first slice using:
(pwd = /boot)
So far so good!
Next I used the links browser to find and download the following packages: base.txz and kernel.txz. In order to have a place to extract I decided to make a new filesystem on da0p2. Using this code:
My next undertaking involved creating a proper mountpoint for the filesystem, which now resides on /dev/da0p2 (a simple UFS by default I learned, when newfs is used without any options). I created a new folder; /mnt/freebsd.
Now when I want to mount my new filesystem using the command:
I read an error:
I did partition using gpart and I created a filesystem with newfs. I tried the procedure a couple of times and with different settings and all.
Could anyone help me in the right direction here? I have done searches on Google but somehow I can't fit all the bits and pieces of information in the right order :-(
Thanks in advance,
Niels
How are you doing? I am trying to play around by installing FreeBSD onto a USB drive and I seem to have come across a rather simple problem... (or challenge if you like).
Currently I am running FreeBSD 9.0-RELEASE on my netbook in a XFCE environment, from where I am trying the install-to-usb approach.
What I did was using gpart(8) to create a new partition scheme on my USB drive:
Code:
=> 34 31293373 da0 GPT (14G)
34 1024 1 freebsd-boot (512k)
1058 25165824 2 freebsd-ufs (12G)
25166882 6126525 3 freebsd-swap (2.9G)
I installed the gptboot instructions to the first slice using:
Code:
bootcode -b pmbr -p gptboot -i 1 da0
So far so good!
Next I used the links browser to find and download the following packages: base.txz and kernel.txz. In order to have a place to extract I decided to make a new filesystem on da0p2. Using this code:
Code:
newfs /dev/da0p2
My next undertaking involved creating a proper mountpoint for the filesystem, which now resides on /dev/da0p2 (a simple UFS by default I learned, when newfs is used without any options). I created a new folder; /mnt/freebsd.
Now when I want to mount my new filesystem using the command:
Code:
mount /dev/da0p2 /mnt/freebsd
I read an error:
Code:
mount: /dev/da0p2 : Invalid argument
I did partition using gpart and I created a filesystem with newfs. I tried the procedure a couple of times and with different settings and all.
Could anyone help me in the right direction here? I have done searches on Google but somehow I can't fit all the bits and pieces of information in the right order :-(
Thanks in advance,
Niels