LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-14-2008, 08:08 AM   #1
harry2006
Member
 
Registered: Aug 2006
Location: /hawaii/honolulu/downtown
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201

Rep: Reputation: 30
how to change the disk size on the fly?


Hi All. A couple of years back when I used to use Windows, I used to make heavy use of PartitionMagic to resize the partitions on the fly, obviously not the C: but others. When I installed Linux[fedora9 to be precise]I left around 8/10 GB of disk in windows partition [NTFS] which is accessible in linux. Now my basic disk in which the "/" directory exists is running short of space ( now i've around 2 out of 10GB left). So I want to know of something similar to PartitionMagic or maybe some command which I'm not aware of to do the same, change the root partition on the fly. Please help me. I'm running Fedora9 2.6.26.3-29.fc9.i686 machine with 512MB of memory. Thank you in appreciation.
 
Old 10-14-2008, 08:25 AM   #2
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
Parted or, in one of its graphical incarnations, gparted, does pretty much the same thing as Partition Magic.

Robin
 
Old 10-14-2008, 08:47 AM   #3
harry2006
Member
 
Registered: Aug 2006
Location: /hawaii/honolulu/downtown
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by bitpicker View Post
Parted or, in one of its graphical incarnations, gparted, does pretty much the same thing as Partition Magic.

Robin
yeh, got it , thanks for your quick response. let me try it out, hope it does pretty much the same things as PartitionMagic.
 
Old 10-14-2008, 08:49 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,443

Rep: Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066
Use a liveCD.
 
Old 10-15-2008, 03:18 AM   #5
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,916

Rep: Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777
I'm not sure exactly how you intend using the space in the extra partition but be aware that there is an alternative way of solving the 'running out of space on /' problem. You don't have to make the root partition itself larger to gain space.

You might prefer the partition resizing approach, but you might want to consider the alternative.

Steps
  • back stuff up!
  • using a live cd (ok, this isn't strictly necessary for stuff like /home, but makes it easier to describe the steps)
  • locate a big directory inside the full partition that could solve the problem by being relocated (stuff like /var, /tmp, and /usr are often good candidates, but it could be anything; partic /home or /home/big_user, if that hasn't happened already)
  • prepare a partition that is big enough to take the victim partition and then some
  • copy data
  • adjust fstab to mount new partition and remove old directory from directory structure

And then proceed with a / that is effectively bigger because it has had a big lump taken out of it and moved onto the new partition.
 
Old 10-15-2008, 04:50 AM   #6
harry2006
Member
 
Registered: Aug 2006
Location: /hawaii/honolulu/downtown
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by salasi View Post
I'm not sure exactly how you intend using the space in the extra partition but be aware that there is an alternative way of solving the 'running out of space on /' problem. You don't have to make the root partition itself larger to gain space.

You might prefer the partition resizing approach, but you might want to consider the alternative.

Steps
  • back stuff up!
  • using a live cd (ok, this isn't strictly necessary for stuff like /home, but makes it easier to describe the steps)
  • locate a big directory inside the full partition that could solve the problem by being relocated (stuff like /var, /tmp, and /usr are often good candidates, but it could be anything; partic /home or /home/big_user, if that hasn't happened already)
  • prepare a partition that is big enough to take the victim partition and then some
  • copy data
  • adjust fstab to mount new partition and remove old directory from directory structure

And then proceed with a / that is effectively bigger because it has had a big lump taken out of it and moved onto the new partition.
sounds pretty cool. will try it out. thank you very much.
 
Old 11-02-2008, 01:17 AM   #7
andjohn2005
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Rep: Reputation: 0
I love gparted

gparted.sourceforge.net
 
  


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
change disk size after dd honk307 Linux - General 5 08-16-2007 04:50 AM
How to increase the size of solaris on the fly rajaniyer123 Solaris / OpenSolaris 1 06-03-2007 01:03 PM
Change swap space on the fly RajRed Linux - Newbie 2 04-26-2005 05:45 PM
change the priority on the fly alaios Linux - General 1 12-14-2004 11:19 AM
cant change any display settings on the fly. this Linux - Newbie 0 12-14-2001 08:01 AM


All times are GMT -5. The time now is 03:43 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration