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

mdf

3516 posts

Uber Geek

Trusted

#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
michaelmurfy
meow
13257 posts

Uber Geek

Moderator
ID Verified
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 /.





Michael Murphy | https://murfy.nz
Referral Links: Quic Broadband (use R122101E7CV7Q for free setup)

Are you happy with what you get from Geekzone? Please consider supporting us by subscribing.
Opinions are my own and not the views of my employer.




Tracer
343 posts

Ultimate 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.


michaelmurfy
meow
13257 posts

Uber Geek

Moderator
ID Verified
Trusted
Lifetime subscriber

  #2193277 7-Mar-2019 22:11
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).





Michael Murphy | https://murfy.nz
Referral Links: Quic Broadband (use R122101E7CV7Q for free setup)

Are you happy with what you get from Geekzone? Please consider supporting us by subscribing.
Opinions are my own and not the views of my employer.




ancientwithanattitud
9 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.


cyril7
9058 posts

Uber Geek

ID Verified
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

mdf

3516 posts

Uber Geek

Trusted

  #2193438 8-Mar-2019 10:03
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

JWR
821 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





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

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



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.