LinuxQuestions.org
Visit Jeremy's Blog.
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 07-18-2010, 07:32 PM   #1
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
Question Resize Partitions


I have 2 partitions on my computer and I want to shift some of the remaining space from sda1 to sda6. Can I just use Gparted to resize the OS partition then allocate to SDA6.

How would I do this without killing either ?


Quote:
joe@Mobile-Tux ~/Desktop $ df -hTl --total
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda1 ext4 28G 7.4G 19G 29% /
none devtmpfs 996M 276K 995M 1% /dev
none tmpfs 1003M 5.2M 997M 1% /dev/shm
none tmpfs 1003M 296K 1002M 1% /var/run
none tmpfs 1003M 0 1003M 0% /var/lock
none tmpfs 1003M 0 1003M 0% /lib/init/rw
/dev/sda6 ext4 199G 172G 17G 92% /home
total - 231G 180G 40G 82%
Any guidance would be appreciated.
 
Old 07-18-2010, 07:53 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
Yes. Boot from a very recent live CD. Resize the partitions using gparted/fdisk/whatever, then if gparted doesn't do it for you, resize the filesystems with resize2fs.
 
1 members found this post helpful.
Old 07-19-2010, 04:30 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,384

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
Be sure to know how to undo your attempt. If it fails then undo it that minute or write down all that is displayed so you can fix it correctly.

Suggest you make a backup just in case.
 
Old 07-20-2010, 12:09 PM   #4
gustavob
LQ Newbie
 
Registered: Apr 2010
Location: La Lonja, Pilar, Argentina
Distribution: Debian, Ubuntu, Suse
Posts: 6

Rep: Reputation: 0
I donīt know if gparted, but pmagic 4.10 (use gparted) may do it.
 
Old 07-20-2010, 12:21 PM   #5
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Quote:
Originally Posted by jv2112 View Post
I have 2 partitions on my computer and I want to shift some of the remaining space from sda1 to sda6.
I assume that means sda2 and sda3 don't exist and sda5 is your swap partition.

Using gparted in a liveCD you can shift free space from sda1 to sda6, but you'll probably need several steps.

You'll need to make sure the liveCD isn't using the swap partition. After booting the liveCD (before starting gparted) you can usually do that with the command
swapoff -a

You need to shrink sda1. Then I think you need to expand sda4 (the extended partition containing sda5 and sda6).

Finally, I think it is easiest to delete the swap partition, then expand sda6, then recreate the swap partition.
 
Old 07-20-2010, 06:31 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,384

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
Had me scared on that so I had to check it. http://gparted.sourceforge.net/larry...e/resizing.htm
 
  


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
resize the partitions piduruviswa Linux - Newbie 8 04-28-2009 09:28 AM
How do I resize partitions? watha SUSE / openSUSE 4 09-28-2006 11:29 PM
Resize Partitions mramos Red Hat 4 09-12-2005 10:32 AM
how do i resize my partitions?? PeO Linux - General 10 08-27-2004 05:54 AM
resize partitions wolfe2554 Linux - General 1 07-05-2004 09:06 PM


All times are GMT -5. The time now is 11:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration