Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to increase the size of root partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
sayub76
n00b
n00b


Joined: 18 Aug 2013
Posts: 4
Location: Saudi Arabia

PostPosted: Sun Aug 18, 2013 8:45 am    Post subject: How to increase the size of root partition Reply with quote

Hi

I am using gentoo linux on virtual machine and short of space in root partition, every time i need to clear some logs to free some space.Need your support to increase the size of root partition as I have lot of free space available in the system.
Will someone please guide me if it is possible through command line without any partition software?


Thanks & Regards,
Shahzad Ayub
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Aug 18, 2013 12:15 pm    Post subject: Reply with quote

sayub76,

Please post the output of
Code:
fdisk -l
for your virtual machine and tell which filesystems you have in use on which partitions.
It may be possible.

You can use
Code:
eclean -d distfiles
to remove old downloaded files you no longer need. Its also worth removing the content of
Code:
/var/tmp/portage/*
when emerge is not running. Both tend to grow without limit. The former with downloaded source files, the latter with failed emerges.
_________________
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
sayub76
n00b
n00b


Joined: 18 Aug 2013
Posts: 4
Location: Saudi Arabia

PostPosted: Sun Aug 18, 2013 12:58 pm    Post subject: Reply with quote

NeddySeagoon,

Thanks for reply.

fdisk -l command is not working on the system.Its gentoo not redhat, some commands are not supported in gentoo.

Is there any way to increase the size of root partition???

Shahzad
Back to top
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 771
Location: over here

PostPosted: Sun Aug 18, 2013 1:32 pm    Post subject: Reply with quote

sayub76 wrote:

fdisk -l command is not working on the system.Its gentoo not redhat, some commands are not supported in gentoo.


fdisk returns
Code:
bash: fdisk: command not found
if run as user, try it as root or with sudo
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Aug 18, 2013 3:12 pm    Post subject: Reply with quote

sayub76,

fdisk is a part of the gentoo stage3. It should be in /sbin. You will need to run it as root, since it wants raw access to your HDD.

We need to understand the layout of your data on disk, the filesystems you use and the virtual machine you use to determine if and how you can extend the root filesystem.
The answer is probably yes but te how will vary depending on your answers to the above.
_________________
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
sayub76
n00b
n00b


Joined: 18 Aug 2013
Posts: 4
Location: Saudi Arabia

PostPosted: Tue Aug 20, 2013 5:26 pm    Post subject: How to increase the size of root partition Reply with quote

Thanks to all for your suggestion.I've achieved my target through Gparted....... 8)
Back to top
View user's profile Send private message
creaker
l33t
l33t


Joined: 14 Jul 2012
Posts: 651

PostPosted: Mon Sep 22, 2014 11:02 am    Post subject: Reply with quote

Gparted can resize partitions.
Back to top
View user's profile Send private message
Irre
Guru
Guru


Joined: 09 Nov 2013
Posts: 434
Location: Stockholm

PostPosted: Sat Sep 27, 2014 7:00 am    Post subject: Reply with quote

I think you should add a new virtual disk for "distfiles" and for /var/tmp/portage. Then there is no need for expansion of root partition.

/sbin/fdisk belongs to sys-apps/util-linux. Run: emerge util-linux
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Sat Sep 27, 2014 10:01 am    Post subject: Reply with quote

A better thread title is appreciated => virtual machine, increase root fs ...

Because virtual machines are a different issue.

as said, parted, gparted, or add a new virtual drive to a new mount point
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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