LinuxQuestions.org
Visit Jeremy's Blog.
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 08-06-2014, 04:02 AM   #1
Jzarecta
Member
 
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 118

Rep: Reputation: 15
Question Running out of space on root partition


I am running out of space with >1.1GB available. I have almost 44G free on my home. I want to change the mountpoint on my fstab but I am still a bit nervous if it will work.

Currently there is 7GB between /usr and /lib, I want to create an ISO file, and mouth it and change the mount points to that partition.

Another more traditional way is to resize my home and create new partitions for folders like /var/ or /usr/

Please help me decide which course of action to take.
 
Old 08-06-2014, 05:40 AM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Try gparted-live-cd/usb to resize partitions
http://gparted.org/

post output of
Quote:
fdisk -l
 
Old 08-06-2014, 07:50 AM   #3
Jzarecta
Member
 
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 118

Original Poster
Rep: Reputation: 15
I need to be non-destructive resizing.
 
Old 08-06-2014, 08:27 AM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
gparted has that ability to non-destructive resize, however there is no guarantee that everything goes well so backup recommended (it is recommended anyway). When I get into free space on / problem due underestimation of partition size, I have created on my /home folders for /usr, /opt, /srv etc. and symlinked them to /. This is temporary solution, but there is nothing wrong with this (besides someone can have for example noexec on home, probably bind mount can help, but I did not tested it).
 
Old 08-06-2014, 08:51 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,047

Rep: Reputation: 2624Reputation: 2624Reputation: 2624Reputation: 2624Reputation: 2624Reputation: 2624Reputation: 2624Reputation: 2624Reputation: 2624Reputation: 2624Reputation: 2624
Quote:
I am running out of space with >1.1GB available. I have almost 44G free on my home
Running out of space on what, the / partition. If you have free space in the separate /home partition, you should be able to use GParted from a Live CD/flash drive to shrink it. Don't do it from GParted installed on your system.

Quote:
I want to change the mountpoint on my fstab but I am still a bit nervous if it will work.
Change the mount point of what to what? You say you have 7GB between /usr and /lib meaning each is on a separate partition. If that is the case, just create a mount point somewhere (/mnt directory) and then use to create a partition there and mount the filesystem. You could also shrink your home partition and do the same. I'm not sure exactly what you are trying to do, what your end goal is. If you want to create an iso and mount it you can do that in your /home partition. You might post more details on your final goal.

Changing partitions is not something trivial so if you have any important data, you need to back up before doing anything. For new users, it is generally a lot simpler to have a / and swap partitions then create different partitons for all these directories.
 
Old 08-07-2014, 01:00 AM   #6
Jzarecta
Member
 
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 118

Original Poster
Rep: Reputation: 15
Well is exactly cuz I dont have the means to backup a 100GB partition atm that I want to do it the less intrussive possible. someone suggested to do a binary ball.

Like mkisofs -T -O <somefile>.iso /var; then edit the fstab as in mount -o loop <somefile>.iso /var

That way I dont really mess up with the partition table and can always make quick fixes if problems arrise in the future, like extending the filesize or generating other iso files.


Can anyone share any possible risk on going this route?
 
Old 08-07-2014, 04:03 AM   #7
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Can you post output of
Quote:
fdisk -l
&
Quote:
cat /etc/fstab
Also use code or Quote tags around commands.

Last edited by EDDY1; 08-07-2014 at 04:05 AM.
 
Old 08-07-2014, 06:49 AM   #8
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
As I known iso filesystem is not writable. It also include additional garbage data (headers, etc.). Why just not make copy of /var into directory on free space and mount it with "mount --bind /partition_with_free_space/var /var".
 
  


Reply

Tags
partitionssize


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Space in / partition running out geeeoner Linux - Newbie 4 07-27-2011 12:19 PM
where did the space under the root partition go? gongtech2006 Debian 6 01-19-2007 04:37 PM
Where did root partition space go? username is already Linux - General 3 12-15-2005 03:16 PM
Root partition space @ 0% jbrashear Linux - Newbie 1 04-03-2004 01:52 AM
running out of space on root partition timsch75 Linux - Newbie 5 03-23-2004 04:49 PM

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

All times are GMT -5. The time now is 11:49 AM.

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