Vctrsnts
Posts: 23
Joined: Mon Sep 02, 2013 10:20 am
Contact: Website

FreeBSD in RPI and HDD

Wed Feb 22, 2017 9:52 pm

Hi.

I currently have a Raspberry PI B with Raspbian, but I'm thinking of switching to FreeBSD.

Right now, the RPI is connected to a hard drive along with the SD. The /boot is in the SD where I have modified the /boot/config.txt file so that the rest of the system is on the HDD. In this way, only the SD is used for the boot and the rest of applications is in the HD, this way the SD does not have as much use, lengthening the life of this one.

So, my question is if this can be done in FreeBSD, because if it does, it would change to FreeBSD.

I comment, because I am testing with another SD that I have installed FreeBSD and if I edit the file /boot/msdos/CONFIG.txt I do not see the site where I would have to add or modify to indicate that the rest of the system is on the HDD. am looking for information on this and I can not find anything

Can it be done??

Thanks for everything

PS: If this could be done, I comment, because I am thinking of changing the RPI for an RPI 3

k-pi
Posts: 138
Joined: Sun Feb 12, 2017 1:46 pm
Location: Upper Hale, Surrey, UK.

Re: FreeBSD in RPI and HDD

Thu Feb 23, 2017 10:23 am

As long as your boot media is looking for & loading the kernel & init from the drive, I don't see any reason for it not to work. Linux & BSD are quite similar systems - but the kernels have different names.

Vctrsnts
Posts: 23
Joined: Mon Sep 02, 2013 10:20 am
Contact: Website

Re: FreeBSD in RPI and HDD

Fri Feb 24, 2017 6:50 pm

Thank you. :D :D

I wonder, because in the case of Raspbian, in the file /boot/config.txt is where it is indicated that the system (not boot) is in another site, but in FreeBSD I do not see that option in the file /boot/msdos/config.txt.

That's why I ask. :roll: :roll:

Thanks again, I'll keep investigating to see if I can find anything.

k-pi
Posts: 138
Joined: Sun Feb 12, 2017 1:46 pm
Location: Upper Hale, Surrey, UK.

Re: FreeBSD in RPI and HDD

Sat Feb 25, 2017 10:08 am

In case you didn't know there is a FreeBSD image for the Pi, might be worth looking at. :)

http://www.raspbsd.org/
https://www.freebsdfoundation.org/freeb ... pberry-pi/

stderr
Posts: 2174
Joined: Sat Dec 01, 2012 11:29 pm

Re: FreeBSD in RPI and HDD

Sat Feb 25, 2017 6:51 pm

k-pi wrote:In case you didn't know there is a FreeBSD image for the Pi, might be worth looking at. :)
http://www.raspbsd.org/
Have you used this? Is it set up to ssh into from ethernet and if so what is the default name and password? The normal freebsd image is

freebsd freebsd
root root

and it does allow ssh in from the ethernet.

Vctrsnts
Posts: 23
Joined: Mon Sep 02, 2013 10:20 am
Contact: Website

Re: FreeBSD in RPI and HDD

Sat Feb 25, 2017 8:25 pm

k-pi wrote:In case you didn't know there is a FreeBSD image for the Pi, might be worth looking at. :)
http://www.raspbsd.org/
https://www.freebsdfoundation.org/freeb ... pberry-pi/
Sorry?? I dont understand??

My question is how I can configure the config.txt file. I ask, because in the case of Raspbian, this operation is very easy, it only has to be changed:

Code: Select all

root=/dev/mmcblk0p2
by

Code: Select all

root=/dev/sda1
That is where the rest of the system is except for the boot directory that would be in the SD.

Thanks for everything

balanga
Posts: 21
Joined: Sat Aug 23, 2014 6:56 pm

Re: FreeBSD in RPI and HDD

Sun Jun 18, 2017 6:23 am

stderr wrote:
k-pi wrote:In case you didn't know there is a FreeBSD image for the Pi, might be worth looking at. :)
http://www.raspbsd.org/
Have you used this? Is it set up to ssh into from ethernet and if so what is the default name and password? The normal freebsd image is

freebsd freebsd
root root

and it does allow ssh in from the ethernet.
I'm new to this forum so have only just read this msg.

To see if sshd is started on boot you can check /etc/rc.conf to see if it has the line

sshd_enable="YES"

I think mine already had it set when I installed FreeBSD.

You'll have to change /etc/ssh/sshd_config to enable root login. You need to change this line

#PermitRootLogin no

frender
Posts: 2
Joined: Sun Jul 16, 2017 7:41 am

Re: FreeBSD in RPI and HDD

Sun Jul 16, 2017 8:30 am

Hi!

Any success with this? I'm thinking of doing something similar and have moved /usr, /var and /etc to my HDD. Now I only have to move / as well (though I'm having some other problems with the installation that I have to figure out before I can do that).

Best regards

Return to “FreeBSD”

Who is online

Users browsing this forum: No registered users and 2 guests