Unix Technical Forum

Resizing partition with its content

This is a discussion on Resizing partition with its content within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hi there, I was wondering if there were tools to resize the size of a partition under linux. I ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 06:52 AM
xm
 
Posts: n/a
Default Resizing partition with its content

Hi there,
I was wondering if there were tools to resize the size of a
partition under linux. I know there is one for Windows called
PartitionMagic, and I was wondering if there were the same kind of
thing for linux.

In other words, what I would like to do, is free the end of a
partition (fdisk says it is a HPFS/NTFS) so I can resize the partition
with fdisk, then in the free space I can put a swap partition...

It is not possible for me to backup the stuff on the partition, I am
ready to play with fire, but I would like to have reliable tools if
possible, and I am ready to test it on another computer before I try
it on this one.

I will be using KNOPPIX for this...

Thanks in advance!
Simon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 06:52 AM
Michael Heiming
 
Posts: n/a
Default Re: Resizing partition with its content

In comp.os.linux.setup xm <xm@ca.inter.net>:
[..]

> In other words, what I would like to do, is free the end of a
> partition (fdisk says it is a HPFS/NTFS) so I can resize the partition
> with fdisk, then in the free space I can put a swap partition...


> It is not possible for me to backup the stuff on the partition, I am
> ready to play with fire, but I would like to have reliable tools if
> possible, and I am ready to test it on another computer before I try
> it on this one.


man ntfsresize

*WARNING*
There's no guarantee that it works, albeit it usually does, you
shouldn't start without a backup if the data has any worth to
you.

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 312: incompatible bit-registration operators
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 06:52 AM
szcs@abuse.co.uk
 
Posts: n/a
Default Re: Resizing partition with its content

> man ntfsresize
>
> *WARNING*
> There's no guarantee that it works, albeit it usually does, you
> shouldn't start without a backup if the data has any worth to
> you.


Ntfsresize does guarantee non-destructive resizing and no data loss. It
doesn't guarantee that it always resizes the partition because there
are cases when it doesn't make sense. For example if NTFS has bad
sectors (hardware disk damage) or inconsistent (ntfsresize includes and
runs a severe, built-in NTFS checker before resizing). In these cases
it refuses resizing and will not modify NTFS at all.

But I agree about the backup. No guarantee for power loss and died
harddisk either or if the repartitioning (not the fileystem resizing)
goes bad:
http://mlf.linux.rulez.org/mlf/ezaz/...l#troubleshoot

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 06:52 AM
Jean-David Beyer
 
Posts: n/a
Default Re: Resizing partition with its content

szcs@abuse.co.uk wrote (in part):

> For example if NTFS has bad
> sectors (hardware disk damage) or inconsistent (ntfsresize includes and
> runs a severe, built-in NTFS checker before resizing). In these cases
> it refuses resizing and will not modify NTFS at all.


In this case, what you should do is make a total backup, replace the hard
drive with a new one, make the partitions the sizes you want, and then
restore from the backup. If you have bad blocks that the file system
notices, it is a warning to order the new hard drive right away.
>
> But I agree about the backup. No guarantee for power loss and died
> harddisk either or if the repartitioning (not the fileystem resizing)
> goes bad:
> http://mlf.linux.rulez.org/mlf/ezaz/...l#troubleshoot
>



--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 09:40:00 up 3 days, 12:21, 3 users, load average: 4.33, 4.27, 4.24

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-18-2008, 06:52 AM
Daniel Ganek
 
Posts: n/a
Default Re: Resizing partition with its content

xm wrote:
> Hi there,
> I was wondering if there were tools to resize the size of a
> partition under linux. I know there is one for Windows called
> PartitionMagic, and I was wondering if there were the same kind of
> thing for linux.
>
> In other words, what I would like to do, is free the end of a
> partition (fdisk says it is a HPFS/NTFS) so I can resize the partition
> with fdisk, then in the free space I can put a swap partition...
>
> It is not possible for me to backup the stuff on the partition, I am
> ready to play with fire, but I would like to have reliable tools if
> possible, and I am ready to test it on another computer before I try
> it on this one.
>
> I will be using KNOPPIX for this...
>
> Thanks in advance!
> Simon


You don't need windoze for PM - You can boot then PM 8.0 CD. The GUI isn't
as slick as the windoze one but that's probably a feature :-)


/dan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-18-2008, 06:53 AM
Simon L
 
Posts: n/a
Default Re: Resizing partition with its content

Jean-David Beyer wrote:
> szcs@abuse.co.uk wrote (in part):
>
>> For example if NTFS has bad
>> sectors (hardware disk damage) or inconsistent (ntfsresize includes and
>> runs a severe, built-in NTFS checker before resizing). In these cases
>> it refuses resizing and will not modify NTFS at all.

>
>
> In this case, what you should do is make a total backup, replace the
> hard drive with a new one, make the partitions the sizes you want, and
> then restore from the backup. If you have bad blocks that the file
> system notices, it is a warning to order the new hard drive right away.
>
>>
>> But I agree about the backup. No guarantee for power loss and died
>> harddisk either or if the repartitioning (not the fileystem resizing)
>> goes bad:
>> http://mlf.linux.rulez.org/mlf/ezaz/...l#troubleshoot
>>

>
>


Thank you all, I will try and check the disk for errors and I believe it should
be alright, the data has no value to me, but it's an OS installed and working,
it would just represent the hassle of reinstalling it.

Thanks again!

Simon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-18-2008, 06:54 AM
John Thompson
 
Posts: n/a
Default Re: Resizing partition with its content

On 2004-12-06, xm <xm@ca.inter.net> wrote:

> I was wondering if there were tools to resize the size of a
> partition under linux. I know there is one for Windows called
> PartitionMagic, and I was wondering if there were the same kind of
> thing for linux.


"parted" is a ncurses program that can do this for you; "qtparted" is a
GUI front end for parted that looks and acts a great deal like Partition
Magic. "System Rescue CD (http://www.sysresccd.org) has both on a bootable
linux CD.

--

-John (john@os2.dhs.org)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:30 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com