Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
changing the size of the gentoo partition after installation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
marinosk_81
n00b
n00b


Joined: 20 Dec 2016
Posts: 14

PostPosted: Thu Feb 23, 2017 6:30 pm    Post subject: changing the size of the gentoo partition after installation Reply with quote

When I first installed gentoo on my Macbook Pro I only freed around 50G for this partition and kept 200G for my MacOs X partition. Now I realise that I spend more time on the gentoo partition and that it'd be great having a bit more space there.. I can easily re-format the MacOsx partition to free some space. Then, what would be the easiest and safest way to add this to my gentoo partition?
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1746

PostPosted: Thu Feb 23, 2017 8:02 pm    Post subject: Reply with quote

Show us results of "lsblk"
I guess "fdisk -l /dev/sda" (or whatever your disk is) will be the next question. Once we know your layout we will be able to give you some hints. There are many possible cases and many ways to handle them.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Thu Feb 23, 2017 8:17 pm    Post subject: Reply with quote

marinosk_81,

Make a new partition in the free space you get from shrinking MacOS.
As the root user, with no normal users logged in, copy your /home to the new free space.
Update /etc/fstab, so it mounts the new partition at /home

Reboot to test.

Provided thats OK you can remove the contents of your old home, which is on the root partition.
However, its not quite straight forward as the new /home is maunted over the top of it, so you can't see it any more.

Its much safer to add a branch to the filesystem tree than to resize partitions.
Do validate your backups before you start.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
grumblebear
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2008
Posts: 141

PostPosted: Sat Feb 25, 2017 11:23 am    Post subject: Reply with quote

The easiest way is to boot a live / rescue cd and use gparted to grow the partition and resize the filesystem. It depends on the filesystem type, but most are supported.
The operation is relatively safe, but it does not hurt to have a backup.

Afterwards pay attention to the bootloader you use, as it may need some action.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum