LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-06-2007, 05:53 PM   #1
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Rep: Reputation: 30
Moving free space to /home partition


How would I go with moving the free space (sda5) to /home on sda8? Heres a screenshot I took... Hope this helps!

http://img128.imageshack.us/my.php?i...apshot2ml6.png
 
Old 09-06-2007, 05:54 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
drag the sliders?

for best results run gparted from a LiveCD
 
Old 09-06-2007, 06:24 PM   #3
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Original Poster
Rep: Reputation: 30
nah it wont let me... I can only use the free space to the next right or left...
 
Old 09-06-2007, 06:44 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Semantic quibble maybe, but you cannot "move free space". To increase the size of a partition, you have to create free space adjacent to it. This may require deleting, resizing, or moving one or more other partitions.

For more detailed help, post the output of "fdisk -l" (or otherwise give us a description of your current partitioning)
 
Old 09-06-2007, 08:22 PM   #5
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by pixellany View Post
Semantic quibble maybe, but you cannot "move free space". To increase the size of a partition, you have to create free space adjacent to it. This may require deleting, resizing, or moving one or more other partitions.

For more detailed help, post the output of "fdisk -l" (or otherwise give us a description of your current partitioning)
Yeah that I know, but how do I go about it WITHOUT formating my / partition?
 
Old 09-06-2007, 08:54 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
You'll have to tell us your partition setup--using fdisk -l or by some other means.
 
Old 09-06-2007, 09:03 PM   #7
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I haven't used Qtparted, but I'm sure it's no different from Gparted. As mentioned in both other replies, you should be able to delete /dev/sda5 to create free space, then resize the swap to take up the free space, then resize swap back to it's original size moving the right slider to the left which will put the free space to the right of swap, then resize Linux / to take up the free space moving the left slider to the left, then resize it again to it's original or whatever size by moving it's right slider to the left which will put the free space to the right of /. Then resize home to take up the free space.
Then you'll have to do some editing in Linux so it can enable swap as the swap partition will have changed position on the drive. I would google that information before going through the motions.
 
Old 09-06-2007, 09:11 PM   #8
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Original Poster
Rep: Reputation: 30
Yeah but it wont let me put more than 2g for the swap partition...

Code:
Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         637     5116671    7  HPFS/NTFS
/dev/sda2             638       12161    92566530    f  W95 Ext'd (LBA)
/dev/sda5             638        5737    40965718+   b  W95 FAT32
/dev/sda6            5738        5996     2080386   82  Linux swap / Solaris
/dev/sda7            5997        7275    10273536   83  Linux
/dev/sda8            7276       12161    39246763+  83  Linux

Disk /dev/sdb: 1024 MB, 1024966656 bytes
32 heads, 63 sectors/track, 993 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         992      999813+   b  W95 FAT32
 
Old 09-06-2007, 09:20 PM   #9
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Actually,
I rearrange my partition scheme often, but I use a boot manager which has partition tools, and I have images of the operating systems. I usually just delete partitions, recreate in the layout I want and reload the images of the operating systems and boot them up without editing anything. I can even load the image multiple times in multiple partitions and boot them all up without editing anything within the OS.
Because I work on large files, I use swap. The fastest part of the drive is the first partition, so I moved swap from the center of the drive to the front for performance reasons. The only Linux operating system I kept "as is from it's image file" was Mandriva 2007.1, I only enabled the new swap in the boot menu for Mandriva in my boot manager and booted it up, it enabled swap without editing anything. But I also have an all primary partition scheme, not sure if this makes a difference, probably not.
 
Old 09-06-2007, 09:21 PM   #10
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Quote:
Originally Posted by lonecrow View Post
Yeah but it wont let me put more than 2g for the swap partition...
Resize it sixteen times if required.
 
Old 09-06-2007, 09:25 PM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
OK...

Your disk is fully partitioned. The FIRST thing you need to do is either delete or re-size an existing partition.

I assume all critical data is backed up.

Curiosity: Windows installed in only 5GB?? Neat trick
 
Old 09-06-2007, 09:34 PM   #12
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by pixellany View Post
OK...

Your disk is fully partitioned. The FIRST thing you need to do is either delete or re-size an existing partition.

I assume all critical data is backed up.

Curiosity: Windows installed in only 5GB?? Neat trick
I just keep it to backup my dvds on my external HD, since I need Anydvd and didnt find a way to wine it properly.

The sda5 is going to be deleted, but once done, it will not let me move it to the right more than 2g. I cannot to that 16times as someone said, since the MAXIMUM for my swap is 2g (for an unknown reason)...
 
Old 09-06-2007, 09:41 PM   #13
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I don't understand....

First, delete the partition you don't want and click on "apply" or whatever the command is to actually execute the change. You will get to a display that shows empty space.

If the swap partition causes any confusion, delete it and re-create later. BTW, it would be rare to EVER need more than 1 GB of swap.
 
Old 09-07-2007, 03:08 AM   #14
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Quote:
Curiosity: Windows installed in only 5GB?? Neat trick
My sentiments exactly. You can install XP on 5GB, but you might not have room to add much extra software, and because Windows needs 15% free space to de-fragment, you need at least 6GB in an effective minimal XP installation.
Not that de-fragmentation is a good thing. If one was to do some benchmark testing before and after de-fragmenting on a fresh XP installation, you'd be surprised at the results.
I use 1-click-dvd_copy to backup my DVD's. I paid the best price one could imagine for it --->$0.00
Same price anybody in the world has to pay, through on-line distributors.
 
Old 09-08-2007, 02:38 PM   #15
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Junior Hacker View Post
My sentiments exactly. You can install XP on 5GB, but you might not have room to add much extra software, and because Windows needs 15% free space to de-fragment, you need at least 6GB in an effective minimal XP installation.
Not that de-fragmentation is a good thing. If one was to do some benchmark testing before and after de-fragmenting on a fresh XP installation, you'd be surprised at the results.
I use 1-click-dvd_copy to backup my DVD's. I paid the best price one could imagine for it --->$0.00
Same price anybody in the world has to pay, through on-line distributors.
My installation is 5g. This is perfect for me, and was definitely not my question. I use it to run my Palm application as well as my Motorola phone.
 
  


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
Ambiguity in free disk space in /home partition vharishankar Linux - General 15 02-22-2013 03:58 PM
Creat free space from /home partition, how? hraposo Mandriva 1 09-22-2004 01:09 PM
Partition Free Space - Move /home to the new partition gregkise Linux - General 5 12-16-2003 11:19 PM
moving /home partition bhodi Linux - Newbie 2 11-22-2003 08:57 AM
Moving/using new /home partition concoran Linux - General 1 05-20-2002 10:32 PM


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