LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-02-2021, 10:38 AM   #1
makem
Member
 
Registered: Nov 2013
Posts: 209

Rep: Reputation: Disabled
How to extend a / directory after install


I need to extend the / directory to enable me to install a .deb file of Steam.

This is my current setup:

https://www.dropbox.com/s/cp4w79y26o...ayout.png?dl=0

Is it possible to do this now or should I start from scratch (Oh no!) and make /; /lib; /bin; /home and /data partitions?

I promise to do this in future but hopefully not this time.
 
Old 06-02-2021, 10:54 AM   #2
biker_rat
Member
 
Registered: Feb 2010
Posts: 369

Rep: Reputation: 220Reputation: 220Reputation: 220
Shrinking /home first (shink it to the right to make room for / to grow)and then after that worked, growing / with gparted should work. There are no guarantees though. You need to be using gparted booting from a linux liveusb and not booting from your hard drive to accomplish this as a mounted partition cannot be shrunk/grown.

Last edited by biker_rat; 06-02-2021 at 10:59 AM.
 
Old 06-02-2021, 11:06 AM   #3
makem
Member
 
Registered: Nov 2013
Posts: 209

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by biker_rat View Post
Shrinking /home first (shink it to the right to make room for / to grow)and then after that worked, growing / with gparted should work. There are no guarantees though. You need to be using gparted booting from a linux liveusb and not booting from your hard drive to accomplish this as a mounted partition cannot be shrunk/grown.
Thank you.
 
Old 06-02-2021, 06:11 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
IMHO there is very little to be gained by carving out separate system partitions unless you know you have a specific requirement. The current size of the root should be plenty in normal circumstances. Certainly add a separate partition (now) for whatever when you free up the space as suggested. I have my photos like that. That big NTFS partition might also be a good candidate to donate some space - gparted will handle that too.
 
Old 06-02-2021, 07:53 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,665
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
But first, check out LVM = Logical Volume Management, which your Linux distro might have installed by default. (For example, in a command-line shell, does the lspv command do anything?) If not, it is possible to convert to it.

To satisfy this requirement, you would simply "add a new physical volume (partition?) to the appropriate "physical storage pool," then extend the filesystem to recognize the new space." Done. Zero downtime. All of the drives work in tandem, but anonymously, to provide space to the pool.

LVM disconnects logical volumes ("mount points") such as "/" from any direct correspondence with physical devices or partitions. Physical resources are assigned to "physical storage pools," and multiple devices can contribute space to the same pool. Logical volumes are assigned to a pool, which means that any particular file could be on any – or, several – physical device(s), "and it would be none the wiser."

LVM can also do a lot of other cool tricks. For instance, if one particular drive starts "making ominous clicking noises," you can migrate all of the data off of it without downtime, as long as sufficient space is available elsewhere in the same pool for whatever it now actually contains. If you've just bought a new solid-state drive and want to move everything from a particular spinning-drive or drives onto it, you can do that also ... without shutting the system down.

In short, LVM allows you to manage both the logical picture ("what Linux applications see") and the physical picture ("what storage devices see") independently. And, "without downtime."

If you're not using LVM on your system right now – and it's quite likely that you actually are – move to it at once. You'll be very glad that you did.

Last edited by sundialsvcs; 06-02-2021 at 07:59 PM.
 
Old 06-02-2021, 10:11 PM   #6
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by sundialsvcs View Post
If you're not using LVM on your system right now – and it's quite likely that you actually are – move to it at once. You'll be very glad that you did.
I like your touting LVM. I have used it for years and love it. However, if you looked at the disk arrangement shown in the post you can see the OP is not presently using LVM. Also, LVM has nothing to do at present with his current question.

To @makem
The 35G of space with only ~8G used in / should leave a great plenty space to install steam with no worries. If the space starts to run short later then maybe it would be time to adjust things, but I would not do that now just because you think it might happen.
 
Old 06-02-2021, 11:37 PM   #7
Bonzoo
Member
 
Registered: Sep 2018
Location: Costa Rica
Distribution: Antix21a2,Parrot rolling,MXfce19.4,Sparky Openbox
Posts: 233

Rep: Reputation: 48
HMMMMM ? I just created a thread as to why everyone should have 2 distros on their drive.
This thread explains it.
 
Old 06-03-2021, 12:22 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Serious overkill. As mentioned a liveUSB works just fine - most people can probably use the USB they installed from without having to do anything extra. Easy.
 
Old 06-03-2021, 07:05 AM   #9
makem
Member
 
Registered: Nov 2013
Posts: 209

Original Poster
Rep: Reputation: Disabled
Thank you all, I now have enough to continue.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cannot extend c:\win on dualboot as no unallocated space nextdoor partition, extend is greyed out on disk mgt, cyno77 Linux - Newbie 68 05-15-2021 09:11 PM
Extend Linux Partition (Extend LVM) osama.mansoor Linux - Newbie 5 11-27-2015 01:09 AM
[SOLVED] VMware - Linux - How to extend spaces - root directory brjohnsmith Linux - General 7 03-11-2015 07:04 AM
How to extend root directory on size wise previously it was 15gb i want to increase venkatesh51 Linux - Newbie 5 04-08-2014 07:06 AM
Extend Active Directory with OpenLdap Felipe Linux - Server 6 04-04-2008 03:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration