LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-16-2011, 12:46 AM   #1
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Rep: Reputation: 30
Smile How to shrink partition in Ubuntu?


How to shrink partition in Ubuntu?
I want to free up some space for other purpose.
 
Old 12-16-2011, 12:53 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

What partition are you talking about? There's a lot of difference for example if you did use (or not) LVM to set up your partitions. If not, then look at GParted for example. If you've set your partitions up with LVM then look at Google for a manual such as this one.

Kind regards,

Eric
 
Old 12-16-2011, 12:55 AM   #3
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Original Poster
Rep: Reputation: 30
The root "/" partition, want to make it smaller.
 
Old 12-16-2011, 03:45 AM   #4
newlinuxal
LQ Newbie
 
Registered: Aug 2006
Distribution: LinuxMint & Puppy
Posts: 7

Rep: Reputation: 2
When organising my partitions I use either the gParted Live Cd or gParted from within the PuppyLinux Live CD. Depending upon where your swap partition is located on the drive you may also have to disable "Swap".

Edit, I should imagine that gParted is also included on your Ubuntu Live Cd.

Last edited by newlinuxal; 12-16-2011 at 03:47 AM.
 
Old 12-16-2011, 04:15 AM   #5
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Hello Tiger,

This link will help you definitely : http://www.howtoforge.com/linux_resi...xt3_partitions
 
Old 12-16-2011, 08:43 AM   #6
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Original Poster
Rep: Reputation: 30
Any software can do it easily?
 
Old 12-16-2011, 08:52 AM   #7
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Use gParted live CD.
 
Old 12-16-2011, 09:11 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Please backup your system before proceeding.

Kind regards
 
Old 12-16-2011, 09:20 AM   #9
asipper
Member
 
Registered: Oct 2011
Distribution: Fedora 17
Posts: 138

Rep: Reputation: 0
Parted Magic is really easy. Simply burn the iso to a bootable object. Then boot from it and hit enter at the boot screen. When it finishes loading open the partition editor and shrink it the / down
 
Old 12-16-2011, 12:39 PM   #10
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Post output of fdisk -l
 
Old 12-16-2011, 07:36 PM   #11
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Original Poster
Rep: Reputation: 30
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda5 154758124 7007504 139889324 5% /
udev 3004508 4 3004504 1% /dev
tmpfs 1206120 920 1205200 1% /run
none 5120 0 5120 0% /run/lock
none 3015296 240 3015056 1% /run/shm
 
Old 12-16-2011, 07:39 PM   #12
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Original Poster
Rep: Reputation: 30
Clonezilla can do it or not?
 
Old 12-16-2011, 10:30 PM   #13
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
This is what mines look like, may be someone else can decipher the 1 you posted.
Quote:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x34fe34fd

Device Boot Start End Blocks Id System
/dev/sda1 63 6554519 3277228+ 12 Compaq diagnostics
/dev/sda2 6554520 48789404 21117442+ c W95 FAT32 (LBA)
/dev/sda3 48789502 312580095 131895297 5 Extended
/dev/sda5 * 48789504 50122799 666648 83 Linux
/dev/sda6 50122863 67697909 8787523+ 83 Linux
/dev/sda7 67697973 73561634 2931831 83 Linux
/dev/sda8 73561698 80967599 3702951 82 Linux swap / Solaris
/dev/sda9 80979968 81758207 389120 83 Linux
/dev/sda10 81760256 312580095 115409920 83 Linux
Also I had to run as root because an upgrade took out my sudoers file, Gnome 3 is really proving to be quite an experience.
 
Old 12-17-2011, 03:15 AM   #14
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Originally Posted by TigerLinux View Post
Clonezilla can do it or not?
Clonezilla is used to clone a partiton/disk
As said before, use gparted.

Kind regards
 
  


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
Shrink my partition to new disk amol28kulkarni Red Hat 4 10-09-2010 01:57 PM
shrink LVM partition bcbotha Fedora 4 06-09-2009 05:00 PM
shrink root partition kickdgrass Linux - General 5 02-04-2009 06:03 AM
shrink ext3 partition ZaphyR Linux - Software 2 04-23-2007 03:39 PM
Can you shrink a partition? ericcarlson Linux - Software 1 01-22-2002 05:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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