LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-16-2009, 12:06 AM   #1
fwc
LQ Newbie
 
Registered: Dec 2008
Posts: 19

Rep: Reputation: 0
Redistribute space


Hello,
I have 3 partitions in NTFS which I would like to rearrange. I moved the data off one of the partitions into the other two and created unallocated space from that partition's extra space. Now I can't move the unallocated space from the old partition to any of the new partitions because it seems as if the new ones will not accept more space beyond their original size. Can anyone help me figure out how to expand the other two or am I stuck with three partitions? (I am using the gui for GParted and Im running Linux Mint) Thanks!
 
Old 03-16-2009, 03:16 AM   #2
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 291Reputation: 291Reputation: 291
Are these primary or logical partitions? Post the output of:
Code:
sudo fdisk -l
Since you have moved all the data off the partition you could just delete it and then create a new partition (or partitions) in the newly created unallocated free space.
 
Old 03-16-2009, 09:44 AM   #3
fwc
LQ Newbie
 
Registered: Dec 2008
Posts: 19

Original Poster
Rep: Reputation: 0
Hello, sorry I did not realize all the technical aspect of the operation.

Here is my fdisk list
Quote:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x86c386c3

Device Boot Start End Blocks Id System
/dev/sda1 * 1 3824 30716248+ 7 HPFS/NTFS
/dev/sda2 3825 19457 125572072+ f W95 Ext'd (LBA)
/dev/sda5 3825 7648 30716248+ 7 HPFS/NTFS
/dev/sda6 7649 12110 35840983+ 7 HPFS/NTFS
/dev/sda7 12111 16708 36933403+ 7 HPFS/NTFS
/dev/sda8 16709 19457 22081311 83 Linux

Disk /dev/sdb: 2029 MB, 2029518848 bytes
243 heads, 32 sectors/track, 509 cylinders
Units = cylinders of 7776 * 512 = 3981312 bytes
Disk identifier: 0xc3072e18

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 510 1981936 b W95 FAT32
Partition 1 has different physical/logical endings:
phys=(249, 242, 32) logical=(509, 184, 32)
I would like to take the now empty sda7 and add it onto the end of sda6. I see that its not possible to add it onto multiple partitions as there is a definite start and end to each partition (consecutive rings).
I suppose that I will have to boot off of the CD because sda8 will change its number. I would also like to know the risks involved sda8 and sda6 for files and functionality. Thanks very much again.
Edit: I realize that I will probably have to change the grub, can anyone tell me which files to change exactly. Thanks very much

Last edited by fwc; 03-16-2009 at 10:16 AM.
 
Old 03-18-2009, 02:55 AM   #4
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 291Reputation: 291Reputation: 291
As far as I know, you should be able to add sda7 to sda6 since they are contiguous to each other. You are using GParted from within Mint, is that correct? If, so, are these partitions mounted when you try this? You can not partition a disk when the partitions are mounted. To simplify this try a GParted live CD or the Parted Magic live CD:
http://gparted.sourceforge.net/livecd.php
http://partedmagic.com/
Personally, I prefer Parted Magic; but GParted live CD is fine.

As far as grub is concerned, I assume Mint uses UUIDs to boot partitions in grub and mount them in fstab since that is what Ubuntu uses. The advantage of UUIDs is that if the ordering of your partitions changes (like they will if you eliminate sda7) the UUIDs stay the same, so it *should* have no effect on booting Mint. I assume Mint is sda8. Is that correct?
To identify the UUIDs of each partition run:
Code:
blkid
in terminal. It will give something like this:
Code:
[tom@arch ~]$ blkid
/dev/sda1: UUID="420CB81A0CB80B45" TYPE="ntfs" 
/dev/sda2: UUID="11ae0c53-a8d7-464c-aa29-60a828be8ab3" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sda3: TYPE="swap" UUID="4533b483-1af3-455e-8ef4-9936467fc292" 
/dev/sda5: UUID="54e761dc-3847-4f90-9ea8-5f466c893c0a" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sda6: UUID="9d10d416-c356-4b87-907c-2f5e3bc62594" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sda7: UUID="1c82c3df-d1de-4d0a-a20c-2321803b4410" SEC_TYPE="ext2" TYPE="ext
If you have trouble booting with grub you can reinstall grub like this:
http://ubuntuforums.org/showthread.p...highlight=fsck
Sorry I took so long to get back to you on this.

Last edited by tommcd; 03-18-2009 at 02:57 AM.
 
  


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
How to redistribute net bandwidth landysaccount Linux - Newbie 1 10-18-2008 06:25 PM
LXer: Worms in space: NASA confirms International Space Station infected LXer Syndicated Linux News 0 08-28-2008 10:40 AM
Redistribute Swap file space to main partition stuartornum SUSE / openSUSE 11 10-30-2006 04:49 PM
Can we use Xorg and redistribute it without license fee? wwlxmai Linux - Software 1 10-10-2005 04:42 AM

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

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