LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-21-2011, 09:18 AM   #1
kumar Saurabh
LQ Newbie
 
Registered: Jun 2011
Location: Camerino
Distribution: 2.6.35-22-generic #33-Ubuntu SMP
Posts: 19

Rep: Reputation: Disabled
Partition size


Hi,

I need to increase the size of my /home directory. I am working with Ubuntu(2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686 i686 i386 GNU/Linux

I checked the partitons with df -h command...the output is :

Filesystem Size Used Avail Use% Mounted on
/dev/sda7 11G 4.3G 6.2G 42% /
none 1001M 560K 1000M 1% /dev
none 1006M 188K 1006M 1% /dev/shm
none 1006M 100K 1006M 1% /var/run
none 1006M 0 1006M 0% /var/lock
/dev/sda5 92M 47M 41M 54% /boot
/dev/sda8 145G 3.7G 134G 3% /usr



Clearly /usr has loads of space here...and I dont know /home is mounted with which partiton...I read somewhere that tune2fs command could be useful here...I dont want to experiment and mess up here...nd thought to get some expert assistance first and then proceed....

I would appreciate if anyone could help me here??
 
Old 06-21-2011, 09:40 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Seems to me that you don't have a separate home partition.
I would recommend the following:
1. Boot from a live-medium.
2. Shrink the /dev/sda8-partition to 10 or 15 GB.
3. Create a new partition for /home.
4. Mount the /-partition (/dev/sda7) and the new /home-partition.
5. Move (not copy) all contents of the old /home to the new partition.
6. Create an entry for the new /home-partition in /etc/fstab.
7. Reboot.
 
Old 06-21-2011, 10:54 AM   #3
kumar Saurabh
LQ Newbie
 
Registered: Jun 2011
Location: Camerino
Distribution: 2.6.35-22-generic #33-Ubuntu SMP
Posts: 19

Original Poster
Rep: Reputation: Disabled
Dear TobiSGD,

Thank you for the reply.

The thing is.. I am new to linux...the steps you mentioned is out of my radar.....could you please elaborate..like how to boot from live medium, shrink, create new partition in /home and Mounting..

It will be a great help...

Thanks


Quote:
Originally Posted by TobiSGD View Post
Seems to me that you don't have a separate home partition.
I would recommend the following:
1. Boot from a live-medium.
2. Shrink the /dev/sda8-partition to 10 or 15 GB.
3. Create a new partition for /home.
4. Mount the /-partition (/dev/sda7) and the new /home-partition.
5. Move (not copy) all contents of the old /home to the new partition.
6. Create an entry for the new /home-partition in /etc/fstab.
7. Reboot.
 
Old 06-21-2011, 02:38 PM   #4
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
I think that you would be better off, with the partition setup that you now have, to back up your data and reinstall using just 2 partitions. Make those / and /home.

There are very good reasons to have more partitions than that but you are not at the stage to need them at all. All those extras will do is cause problems for you.

EDIT
Make your / partition about 4G and leave the rest for /home.

You could use less for / but it may get cramped.

With as little space as you are using you may just want to install on 1 partition (/) and wait for more drive space before installing in a multi partition way.

Last edited by widget; 06-21-2011 at 02:41 PM.
 
Old 06-21-2011, 02:46 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
4GB on / for a Ubuntu standard install is to less go at least for 10 GB to be safe.
 
  


Reply


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
partition size detected by testdisk bigger than disk size Person_1873 Linux - Hardware 2 03-17-2011 11:11 PM
Solaris 8 - file size and partition size discrepancy noir911 Solaris / OpenSolaris 1 02-10-2009 04:43 PM
file system size larger than fysical size:superblock or partition table corrupt klizon Linux - General 0 06-18-2004 04:18 PM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
fdisk partition size differs from mounted partition size jimieee Linux - General 3 10-15-2003 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:09 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