LinuxQuestions.org
Review your favorite Linux distribution.
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 02-23-2004, 08:55 AM   #1
celeron2002
LQ Newbie
 
Registered: Feb 2004
Location: chile, colonia estadounidense :P
Posts: 19

Rep: Reputation: 0
resize_reiserfs question


when i resize a partition, i am deleting the files of partition adjacent??
 
Old 02-23-2004, 01:09 PM   #2
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
I'm under the impression that you can only resize a partition into unallocated space - before you can make a partition bigger, you need to make adjacent partitions smaller - hopefully without data loss.

Resizing can be tricky - filesystems can be resized at the end, but not from the beginning. So if you have
|----hda1---|----hda2----|----hda3---|
and you want to make hda2 bigger, you need to make 1 or 3 smaller. If you make 1 smaller, that's easy. But then you have
|-hda1-|-empty-|----hda2---|----hda3----|
... and you need to move hda2 before you can make it bigger. The safest way to do this is if you can find enough free space on your drive to back it up: resize hda3, format a new hda4 and put everything from hda2 on the new partition.
|-hda1-|-empty-|-hda2-|-hda3-|-hda2backup-|
Then delete hda2 and create a new partition that uses all the empty space in the middle.
|-hda1-|---bighda2---|-hda3-|-hda2backup-|
Copy over from hda4, and then put hda3 back to normal.
|-hda1-|---bighda2---|-----hda3-----|

Please, correct me if I'm wrong!

--Rounan

EDIT: actually, if you can clear enough space from hda1 in the first step, just move hda2 in its entirety to the new empty space, then resize that partition. only one bigass file move, instead of two.

Last edited by Rounan; 02-23-2004 at 01:11 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question, Apples Contribution to Open Source + MacOs file structure question Higgy3k Other *NIX 5 07-25-2005 04:23 AM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 01:51 PM
using resize_reiserfs hamish Linux - General 0 06-10-2004 03:52 PM
login prompt question & kde scheme question JustinCoyan Slackware 2 06-09-2004 02:02 PM
RE: Suse 8.0 hardware question {newbie question, pls help} Radiouk Linux - Distributions 2 06-04-2002 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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