LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-17-2012, 07:26 AM   #1
kox444
Member
 
Registered: Aug 2012
Posts: 128

Rep: Reputation: Disabled
joining 2 unallocated spaces


So here's brief story, nearly an hour ago ma 110GB hdd was composited of 55GB Windows XP, extended parttion 35GB (a partition for media and swap), 2GB puppy linux partition and 18GB for debian (whole /).

I wanted to join 10GB from debian/ to media partition and create new 45GB home partition. Unfortunately, unnalocated spaces and extended partitions are bit**es.
So I moved files from mediapartition to windows. Daleted extended partion, shrink debian/. And I ended up with 2 unallocated spaces at different sectors. How can I move them and join into one unallocated space?



Edit: I just got an idea. I will copy debian and puppy linux to first unallocated space. Delete orginal puppy and debian, and the spaces will be close to each other and join. But that's later, I don't have time now. What you guys think?

Last edited by kox444; 08-17-2012 at 07:30 AM.
 
Old 08-17-2012, 07:43 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
In the typical partitioning tool, you do not move unallocated space-----you move existing partitions. If you move and/or re-size existing partitions, the unallocated space will take care of itself.

If you don't already have it, get the GParted Live CD. Best tool of its kind (IMNSHO)
 
Old 08-17-2012, 07:45 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
I will copy debian and puppy linux to first unallocated space. Delete orginal puppy and debian, and the spaces will be close to each other and join.
Not a good plan....
 
Old 08-17-2012, 08:09 AM   #4
kox444
Member
 
Registered: Aug 2012
Posts: 128

Original Poster
Rep: Reputation: Disabled
I have gparted live. But I used gparted from puppy linux live cd. I din't see any difference. I already moved puppy linux (edited fstab of course) the only difference is I have drive mounter in tray. I wanted to delete original puppy using copied puppy. But I didn't realized that gparted in puppy had again problems with ext4 filesystem, error showed and 2GB space I wanted to delete is missing. (I had same problem with gparted in original puppy, but while I was looking for solution it fixed itself). I installed e2fsprogs, but it still doesn't support ext4. But screw puppy, I have few live cds. I don't know what happened to the space though.

Why it's not a good plan?
And I can't move it. Exactly I moving partitions (copy and paste in gparted) so it will take care of itself, I don't see options to move it. Well there's align to cylinder or mib, is that what you talking about? And the first partitions in gparted are the ones closest to the centre (best read/write)? I could move debian to the top, I'm not using windows almost at all.

Edit: I didn't missed any space. I didn't considered that now I have exact copy of partition. And free spaces will be same as before copy/delete process

Last edited by kox444; 08-17-2012 at 08:17 AM.
 
Old 08-17-2012, 11:58 AM   #5
kox444
Member
 
Registered: Aug 2012
Posts: 128

Original Poster
Rep: Reputation: Disabled
Ok now I know how to move a partition and understand how it works. But I still have a few questions/

The only way to move primary partition inside to extended partition is to copy and paste, isn't it?

Is the partition that begins in sector 0 have the fastest data access?

If yes, I would have to copy and paste sda1 to last sectors, and then delete original sda1?

I have xp on SDA1 it takes up half the total space, so it would be better if debian would be at first sectors.
My current set up is:
sda1 (windows)
sda2 (puppy linux)
sda4 (debian)
unallocated space.

I want it to be
sda3 (extended:: sda4, swap and home)
sda2
sda1
But I don't know if it's worth the mess. Maybe if I would reinstall XP. I would have hell of unallocated space at first sectors and I could move it forward. Then install xp on unallocated space on last sectors.

I think I'm gonna do it like that:
move sda2 and sda4 towards the end of HDD
move sda1 towards them
create extended partition at unallocated space
copy sda2 and sda4 to exteneded
create a new partition and swap in extended
delete original sda2 and sda4, move sda1 towards the end
grow extended and grow the new partition

What you think?

Last edited by kox444; 08-17-2012 at 12:59 PM.
 
Old 08-17-2012, 01:08 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I've never seen copy and paste in GParted---you simply MOVE the partitions.

You cannot move a primary partition into an extended one. The way to think of it is that an "extended" partition must be one of the first 4 that is allowed, and logical partitions then live within the extended.

Basically, anything that GPArted will allow you to do is probably OK----just be sure all your data is backed up first.
 
1 members found this post helpful.
Old 08-17-2012, 01:14 PM   #7
kox444
Member
 
Registered: Aug 2012
Posts: 128

Original Poster
Rep: Reputation: Disabled
Right click on partition and there option copy, right click on unnalocated and there's option paste.
Well, I can copy primary partition and paste it in unnalocated space in extended and then it's gonna be logical I guess. I will try it out.
But do you confirm the closer the partition to left, the faster it's accessed?
I don't want to turn my hdd upside down just for nothing.
 
Old 08-17-2012, 01:24 PM   #8
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by kox444 View Post
Is the partition that begins in sector 0 have the fastest data access?
Yes. It has more data per physical track, meaning both a higher transfer rate and more total data accessible within a short seek distance (which typically results in fewer and/or shorter seeks).

The outer edge of the drive is used for the low addresses and nearer the center for higher addresses.

Modern disk drives have near constant bits per inch. But there are more inches per revolution nearer the outer edge than near the center. So the electronics need to adjust the data rate based on the physical cylinder number, with a higher data rate for low numbered (outer edge) cylinders.

Long ago, disk drives had constant data rates, so bits near the outer edge were physically wider than bits near the center. That makes the electronics simpler, but reduces the total capacity. One of the still in use standards for communicating with the disk assumes that obsolete design with every cylinder the same size, so for a very long time disk drive electronics have translated between fake cylinder/track/sector addressing (with every cylinder the same size) and true varying size cylinders.

Last edited by johnsfine; 08-17-2012 at 01:33 PM.
 
1 members found this post helpful.
Old 08-17-2012, 01:41 PM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Moderator Response

Moved: This thread is more suitable in <Linux-General> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 08-17-2012, 04:48 PM   #10
kox444
Member
 
Registered: Aug 2012
Posts: 128

Original Poster
Rep: Reputation: Disabled
I'm almost done. I just need to move windows once again to the right. But I'll do it tomorrow. I will keep the thread unsolved till I'm done with everything.

Last edited by kox444; 08-17-2012 at 04:50 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing white spaces between words and joining the words in a given format Priyabio Linux - General 4 08-20-2009 07:42 AM
How i make unallocated spaces in the usb stick ? lse123 Linux - Newbie 5 05-11-2009 11:26 PM
Spaces and escaped spaces pslacerda Linux - Newbie 13 12-20-2008 09:03 AM
Unallocated Partitions oldmartian Linux - Software 8 02-24-2007 01:22 PM
fdisk and unallocated sectors Alien_Hominid Linux - Hardware 2 02-06-2006 11:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:50 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
Open Source Consulting | Domain Registration