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-2004, 04:51 PM   #1
PeO
Member
 
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 56

Rep: Reputation: 15
how do i resize my partitions??


how do i move data between partitions ??? or shouldnt I ??
 
Old 08-17-2004, 06:35 PM   #2
Santas
Member
 
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290

Rep: Reputation: 30
To move data you only have to use cp command or copy/paste in X, your partitions may be in /mnt/.
To resize partitions you can use 'fdisk' or 'cfdisk'
 
Old 08-18-2004, 04:41 AM   #3
PeO
Member
 
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 56

Original Poster
Rep: Reputation: 15
hmm... that dont help me much!

using df gives:
/dev/hda1 3092380 647548 2444832 21% /
/dev/hda6 2096380 2092596 3784 100% /usr
/dev/hda7 3124508 58524 3065984 2% /var
/dev/hda8 21385664 33068 21352596 1% /home

I need to move space from /var or /home to /usr.
Can I move data from /usr and /var to /home before I resize it with fdisk??
What will happen with Linux during the time /usr not exist??

best regards PeO
 
Old 08-18-2004, 05:44 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 18.3+19.0, MX-18
Posts: 4,258

Rep: Reputation: Disabled
cp copies but does not move. I don't know whether there is a move command (probably is) so after copy you have to delete (rm) separately. I suggest you use a file manager (Konqueror, mc ... your choice).

After that, search your system for *parted (may be named GNUparted, sparted, cparted...) and run that. Parted will allow you to resize partitions in a running system, so you can decrease /home in size before inflating /usr .

Consequently, with parted you don't need to move anything .

Last edited by JZL240I-U; 08-18-2004 at 05:47 AM.
 
Old 08-18-2004, 07:52 AM   #5
PeO
Member
 
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 56

Original Poster
Rep: Reputation: 15
nice...

tnx.. ill try it!
maby ill copy the files first anyway... if...

I heard about Murphys law
 
Old 08-18-2004, 08:55 AM   #6
machiner
Member
 
Registered: Jun 2004
Location: New England
Distribution: Debian, straight. No chaser.
Posts: 112

Rep: Reputation: 15
I did the same file/partition shuffle yesterday. create, move, destroy.

DO it the easy way. DOwnload the following rescuedisc. It containg Gentoo distro and apps to let you backup/restore and play with your partitions.

It's best to boot to this because to run a partition manager, you don't want any partitoins you want to effect to be mounted, busy.

So, burn the disk, then boot to it. Type menu. arrow down to run rescue disc. Gentoo will load and you will be able to run partimage to save your stuff prior to modifying the partition.

THen, run run_qtparted to do your thing to your partitions.

Yesterday I was able to perform these tasks with no errors. I wanted to modify my partitions to reflect my current fc2 plan, so I put all the data from my windows partitions into one newly resized one, (for this I used ntfs resize on a floppy - bootable) then I deleted and created a new partition on the hdd for backups. (hdb2)

THen on my master hdd, where windows (hda1) and fc2 (hda5) live, I resized the extended (with logical drives) partition that is my / partition (ext3 - hda6). I then made another partition on this drive for all my music.

It was really quite easy -- it just took some time. Only 'cos I was chickenshit. That was ALL my data.

Running partimage was easy. I mounted the partition I earlier created for backups...we're running the gentoo disc here. Then running partimage I told it to make an image of hda6 and put it in the new partition I just made, and call it...

F5, F5 and 18 minutes later a 1.67gb back up of the 6.3gb worth of files in my / partition.

Resizing that extended partition was easy -- since I booted to gentoo on a disc, I could use qtparted and just drag the slider, man. Choose the partition, right-click, resize...drag the slider.

Committ, reboot (to your hdd, change it back in the bios) and there you go. Now, mount your stuff. Goto your fstab file and write a permanent mount for your new stuff.

computing is cool.
 
Old 08-18-2004, 08:55 AM   #7
Santas
Member
 
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290

Rep: Reputation: 30
Ofcourse there is a move command is 'mv' you have to use it whit '-rf' options to move directories
 
Old 08-25-2004, 11:08 AM   #8
sevi
Member
 
Registered: Aug 2004
Location: Hungary
Distribution: Mandriva 2006.0 Free
Posts: 33

Rep: Reputation: 15
is there a GUI partition manager for linux? (using FC2)
 
Old 08-25-2004, 01:14 PM   #9
Santas
Member
 
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290

Rep: Reputation: 30
yes: qtparted (http://qtparted.sourceforge.net/), and part-gui (http://part-gui.sourceforge.net/)
 
Old 08-25-2004, 07:29 PM   #10
marsques
Member
 
Registered: Jan 2004
Location: Manchester
Distribution: slackware...
Posts: 344

Rep: Reputation: 31
or just boot the pc using knoppix... and use qt parted on it... as this way drives in question are unmounted...
 
Old 08-27-2004, 05:54 AM   #11
Santas
Member
 
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290

Rep: Reputation: 30
you have also the first release of Gparted http://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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Resize partitions in Ubuntu pgsmith Linux - Newbie 16 01-07-2007 11:29 AM
Resize Partitions mramos Red Hat 4 09-12-2005 10:32 AM
How to resize solaris partitions? subaruwrx Solaris / OpenSolaris 2 08-23-2004 06:55 AM
how to resize partitions with slack? marlor Slackware 2 07-27-2004 10:09 PM
resize partitions wolfe2554 Linux - General 1 07-05-2004 09:06 PM

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

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