PDA

View Full Version : [ubuntu] Help to Install Ubuntu



Jvinas
May 12th, 2016, 08:34 PM
Hello everyone.
I come to you guys again asking for help to partition my USB drive(500GB) , and i would like to install Ubuntu on it completely . But I do not know which partitions i need create and how much space each partition should have,so I need help.
NOTE: As the flash drive has a lot of space i will also create the SWAP area but i do not know how much space is needed for this partition.
Thank you.

oldfred
May 12th, 2016, 08:54 PM
UEFI or BIOS boot?
Either way I now suggest gpt over the 35 year old MBR partitioning.

GPT Advantages (older but still valid) see post#2 by srs5694:
http://ubuntuforums.org/showthread.php?t=1457901
https://wiki.archlinux.org/index.php/GUID_Partition_Table#Advantages_of_GPT
http://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface
http://askubuntu.com/questions/629470/gpt-vs-mbr-why-not-mbr
UEFI Advantages
http://askubuntu.com/questions/647303/uefi-or-legacy-which-is-advised-and-why/647604#647604
http://askubuntu.com/questions/446968/legacy-vs-uefi-help

But with with UEFI install is a bit more tricky as you have to partition in advance and include an ESP - efi system partition. But grub will only install to ESP on sda, so you have to copy files to sdb's ESP.
If BIOS and gpt partitioning, you must have a 1 or 2MB bios_grub partition.
I normally make all gpt drives with both the ESP & bios_grub, so in future I can install Ubuntu even if currently planned only as data drive and in either boot mode.


For the Total space you want for Ubuntu:
Ubuntu's standard install is just / (root) & swap, but it is better to add another partition for /home if allocating over 30GB.:
Only if gpt - all partitions in gpt are primary (no logicals):
gpt: 300 MB efi FAT32 w/boot flag (for UEFI boot or future use for UEFI, you only can have one per drive, so if already existing do not attempt another)
gpt: 1 or 2 MB No Format w/bios_grub flag (for BIOS boot not required for UEFI)
for gpt(GUID) or MBR(msdos) partitioning
Ubuntu partitions - smaller root only where hard drive space is limited.
If total space less than about 30GB just use / not separate /home or standard install.



20-25 GB Mountpoint / primary or logical beginning ext4
all but 2 GB Mountpoint /home logical beginning ext4
2 GB Mountpoint swap logical

Depending on how much memory you have you may not absolutely need swap but having some is still recommended. I do not hibernate (boots fast enough for me) but if hibernating then you need swap equal to RAM in GiB not GB. And if dual booting with windows a shared NTFS partition is also recommended. But you usually cannot create that as part of the install, just leave some space. Or partition in advance (recommended).
One advantage of partitioning in advance is that the installer will use the swap space to speed up the install. Thanks Herman for the tip.
https://help.ubuntu.com/community/DiskSpace
suggested partitions for just Ubuntu on 3TB drive.
http://askubuntu.com/questions/336439/any-problems-with-this-partition-scheme
Another advanced suggestion from TheFu with Multiple / (root) - Post #5 similar to what I actually do
http://ubuntuforums.org/showthread.php?t=2170308
http://ubuntuforums.org/showthread.php?t=2021534
UEFI/gpt partitioning in Advance:
http://askubuntu.com/questions/743095/how-to-prepare-a-disk-on-an-efi-based-pc-for-ubuntu
http://askubuntu.com/questions/336439/any-problems-with-this-partition-scheme

For any full install to a second internal or external device, drive or flash drive, you must use Something Else.
Any install with Something Else which is required with external drives or any second drive or any install with separate /home

Lots of detail, screenshots and essential info.14.04 Something Else example
http://www.dedoimedo.com/computers/ubuntu-14-04-install-guide.html
http://askubuntu.com/questions/343268/how-to-use-manual-partitioning-during-installation


Also shows combo box with location of grub2 boot loader
https://help.ubuntu.com/community/Grub2/Installing
Does not hightlight changing boot loader to sdb, if external drive, but shows other install screenshots:
http://askubuntu.com/questions/312782/how-to-install-ubuntu-on-separate-hard-drive-in-a-dual-boot
http://askubuntu.com/questions/274371/install-on-second-hard-drive-with-startup-boot-optiond
Install 14.04 Something Else explanation and screenshots (note boot load to VM, most may install to MBR of drive sda, or sdb)
http://www.tecmint.com/ubuntu-14-04-installation-guide/

Jvinas
May 12th, 2016, 09:10 PM
Ok,thanks
Just for info I will not install with dualboot and about your question, I is by BOIS boot selecting to boot by USB Drive(External Drive), without change the boot order in settings.

So, it will be :

Over 30GB for home ext4
25GB fot Mountpoint / ext4
2GB for SWAP

Well i was think that i can use 300 GB for home to save a lot of files and the rest to use for SWAP and SYSTEM reserved (Mountpoint)