LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-14-2012, 06:35 AM   #1
Cinnamint
Member
 
Registered: Feb 2012
Posts: 32

Rep: Reputation: Disabled
Help required to re-partition drives


Greetings,

I re-did my machine a little while ago, first putting Fedora 16 on, and then Mint 12. It's a 150gb hdd. For Fedora I partitioned during setup myself, as previously I'd used default settings and ended up with LVM. I messed up somehow and allocated 50gb to root, only 2gb to home (2gb swap which is fine). I let Mint install using its default options.

I need more space for fedora's home partition and 50gb is too much for fedora file system, so I would to re-allocate that space to fedora's home. First step was to shrink the file system partition, which I did fine in gparted, down to 20gb. But now I'm stuck with unallocated space that I can't seem to re-allocate anywhere useful

From lsblk I get the following:

NAME MAJ:MIN RM SIZE RO MOUNTPOINT
sda 8:0 0 149.1G 0
├─sda1 8:1 0 500M 0
├─sda2 8:2 0 19.5G 0
├─sda3 8:3 0 2G 0
├─sda4 8:4 0 1K 0
├─sda5 8:5 0 2G 0
├─sda6 8:6 0 93.7G 0 /
└─sda7 8:7 0 1011M 0 [SWAP]

From gparted (I've got a screenshot but don't see anywhere to upload it?) the info is:
sda1 - ext4 500mb (boot)
sda2 - ext4 - 19.5gb (fedora root)
unallocated -30gb
sda3 - swap - 2gb (fedora swap)
sda4 - extended
- sda5 - ext4 - 2gb (fedora home)
- sda6 - ext4 - 94gb (I'm guessing mint home+root)
- sda7 - swap - 1gb (mint swap?)

(not sure if it's clear above, but sda5, 6 and 7 are all on sda4? I don't know how that happened)

Is there any way for me to get that unallocated space usable? Without re-installing everything, that is :/ Only thing I seem to be able to do with it is make the fedora root 50gb as it was.

Help appreciated!

Last edited by Cinnamint; 02-16-2012 at 08:23 AM.
 
Old 02-14-2012, 07:03 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,840

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Let's see the output of (as root) "fdisk -l" (lower case ell).
gparted should allow you to move things around, but let's see where things are actually (physically) located before offering advice "from the hip".
 
1 members found this post helpful.
Old 02-14-2012, 11:27 AM   #3
Cinnamint
Member
 
Registered: Feb 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
fdisk -l gives us:
Code:
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000686f2

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     1026047      512000   83  Linux
/dev/sda2         1026048    41986047    20480000   83  Linux
/dev/sda3       105883648   110012415     2064384   82  Linux swap / Solaris
/dev/sda4       110014462   312580095   101282817    5  Extended
/dev/sda5       110014464   114110463     2048000   83  Linux
/dev/sda6       114112512   310507519    98197504   83  Linux
/dev/sda7       310509568   312580095     1035264   82  Linux swap / Solaris

Disk /dev/sdb: 2000.4 GB, 2000398843904 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907028992 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: 0x4f3e4998

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          64  3907024064  1953512000+   7  HPFS/NTFS/exFAT

Last edited by Cinnamint; 02-14-2012 at 11:28 AM.
 
Old 02-14-2012, 01:31 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Using gparted-live move sda3 to the left, then resize or move sda4 to the left also.
 
1 members found this post helpful.
Old 02-14-2012, 04:44 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,840

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Adding a little detail.
The "extended" partition (sda4) is a container for logical partitions (sda5/6/7 etc). As it adds flexibility, it generally makes sense to add extra/free space to it. To enlarge any partition, the free space must be contiguous (next to) the partition being enlarged. So there may be a need to move other partitions first (think sliding block game).
Given you want to enlarge the /home, do as suggested, but make sure you enlarge sda4 by moving the left-hand boundary left. This will "move" the free space next to sda5 which can then be enlarged. Do this one operation at a time so you can see what happens - use the "Apply" button each time.
 
1 members found this post helpful.
Old 02-15-2012, 07:13 AM   #6
Cinnamint
Member
 
Registered: Feb 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
Thank you kindly, will attempt moving later when I get home.
 
Old 02-16-2012, 05:33 AM   #7
Cinnamint
Member
 
Registered: Feb 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
Thank you for your help, the moving as described worked perfectly.
 
  


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
Mounting partition(s) by label - Reboot required?? amn Linux - Newbie 17 05-16-2010 09:13 AM
is it required for /bin to be mounted as separate partition?? kirtikjr Linux - Software 3 07-12-2007 06:18 PM
/boot partition required? ksun Fedora 4 11-12-2005 05:41 PM
SuSE 9.2 DualBoot with XP and Partition Help/Advice Required kidprawn SUSE / openSUSE 2 11-20-2004 06:47 PM


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