Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


mdf



2287 posts

Uber Geek

Trusted
Subscriber

# 248032 7-Mar-2019 21:04
Send private message

I'm in over my head here. I've always used the guided partitioning approach so have never engaged on best practice for manual partitioning and now need some help. I have a single board computer (Udoo x86). I'm trying to install Ubuntu to a new 32GB SSD. I'm installing Ubuntu desktop but intend to use it primarily headless as a home automation server (currently planning OpenHAB but might change that). I'm currently thinking:

 

 

sda1 512 MB - Primary - Beginning - swap

 

sda2 20 GB - Logical - Beginning - ext4 - /

 

sda3 512 MB - Logical - Beginning - ext4 - /boot

 

sda4 (remainder - 11GB-ish) - Logical - Beginning - ext4 - /home

 

 

Does this sound about right? Sizes? Does the order of partitions matter? Do I need a /var or /tmp mount point? Am I completely missing something crucial?


Create new topic
Mr Snotty
8768 posts

Uber Geek

Moderator
Trusted
Lifetime subscriber

  # 2193273 7-Mar-2019 22:07
Send private message

Doesn't matter too much on the position of the partitions from experience however would recommend Home Assistant over OpenHAB. They do have their own distribution (https://www.home-assistant.io/hassio/installation/).

 

I'd personally keep it simple and have 2 partitions. Use a swapfile (1gb) instead of a swap partition (https://wiki.debian.org/Swap) and just have a large root filesystem instead of splitting it into /home and /.





198 posts

Master Geek


  # 2193275 7-Mar-2019 22:07
Send private message

The Arch wiki is always my goto. Everyone should setup an Arch machine at least a few times just to see what actually goes into building a Linux environment from scratch.

 

The full install guide: https://wiki.archlinux.org/index.php/Installation_guide

 

And what you really want, recommended partition layouts: https://wiki.archlinux.org/index.php/Partitioning#Example_layouts

 

Note: it depends whether you use EFI or BIOS.

 

 

 

-e- Agree with Michael's advice to have a large root partition rather than split /home.


 
 
 
 


Mr Snotty
8768 posts

Uber Geek

Moderator
Trusted
Lifetime subscriber

  # 2193277 7-Mar-2019 22:11
One person supports this post
Send private message

Yes Arch Linux is a good way to learn. I was also going to recommend Debian over Ubuntu (personal preference on my side) and just follow the default install which installs things quite nicely and in a clean manner. That way you end up with a minimal system ready for whatever you want to do with it.

 

Don't go installing a full desktop - basically install it with the standard system utilities and SSH only. It is better to keep Linux distributions as light as possible when you're dealing with running it headless anyway. You'll find you're going to be using the terminal for any and all configuration regardless (however, hass.io does have some nice features to do a bulk of this in the browser now).





6 posts

Wannabe Geek


  # 2193324 8-Mar-2019 07:20
Send private message

I'd keep it simple. Install a standard hard drive alongside the SSD. Place Root on the SSD and Home and swap on the hard drive. Swap need not be large but most distros insist on one. You can partition the HD as many ways as you need depending on the final use of the box.

 

Hope this helps.


6850 posts

Uber Geek

Trusted
Subscriber

  # 2193345 8-Mar-2019 08:24
Send private message

Hi if it does not require a full desktop then I recommend webmin if your not comfortable driving by shell alone.

Cyril

mdf



2287 posts

Uber Geek

Trusted
Subscriber

  # 2193438 8-Mar-2019 10:03
One person supports this post
Send private message

Thanks all. Will proceed accordingly and have a bigger swap and everything else in root. 👍

 

The single board computer I'm using is fairly unique (kickstarter project I backed, forgot about, received, put in drawer, forgot about again, and am now finally trying to do something with). It has an embedded Arduino microcontroller among other things. I'm not confident enough in my ability not to Stuff Things Up to try going straight to the Arduino CLI inside shell-only access so wanted to set it up using (a) the recommended distro for the funky hardware and (b) have the ability to drop into a GUI.

 

Longer term, once I know I can make it work, I will look to do a clean install (clearing out all the mistakes made previously) with server only.


JWR

762 posts

Ultimate Geek


  # 2193481 8-Mar-2019 10:57

The latest versions of Ubuntu no longer creates swap partitions by default. Ubuntu does the same as Windows and uses a swap file instead.

 

I'd recommend sticking with that scheme for home use. It is much easier to setup and maintain.

 

 


Create new topic



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Intel expands 10th Gen Intel Core Mobile processor family
Posted 23-Aug-2019 10:22


Digital innovation drives new investment provider
Posted 23-Aug-2019 08:29


Catalyst Cloud becomes a Kubernetes Certified Service Provider (KCSP)
Posted 23-Aug-2019 08:21


New AI legaltech product launched in New Zealand
Posted 21-Aug-2019 17:01


Yubico launches first Lightning-compatible security key, the YubiKey 5Ci
Posted 21-Aug-2019 16:46


Disney+ streaming service confirmed launch in New Zealand
Posted 20-Aug-2019 09:29


Industry plan could create a billion dollar interactive games sector
Posted 19-Aug-2019 20:41


Personal cyber insurance a New Zealand first
Posted 19-Aug-2019 20:26


University of Waikato launches space for esports
Posted 19-Aug-2019 20:20


D-Link ANZ expands mydlink ecosystem with new mydlink Mini Wi-Fi Smart Plug
Posted 19-Aug-2019 20:14


Kiwi workers still falling victim to old cyber tricks
Posted 12-Aug-2019 20:47


Lightning Lab GovTech launches 2019 programme
Posted 12-Aug-2019 20:41


Epson launches portable laser projector
Posted 12-Aug-2019 20:27


Huawei launches new distributed HarmonyOS
Posted 12-Aug-2019 20:20


Lenovo introduces single-socket servers for edge and data-intensive workloads
Posted 9-Aug-2019 21:26



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.