(solved)Re: Can I resize partition?



Sorry, my memory fails.

After entering fdisk, I find free disk space is just before /dev/sda2, not after it.

It seems that I can't resize it. Thanks anyway!

--- Raj Kiran Grandhi <grajkiran@xxxxxxxxx> wrote:

Serena Cantor wrote:
My sarge is installed at /dev/sda2. There is some disk space just behind /dev/sda2.
Can I let sarge use that space by resizing /dev/sda2?

Yes you can! Just use fdisk to delete /dev/sda2 and rectreate it with
the same starting point and the new size (that includes the free space)
Then use resize2fs to resize the filesystem to the new size. You might
also want to look into gparted, as it has a very nice gui that is a lot
less intimidating than fdisk. You can even boot off a gparted livecd and
fix your partition.

Saving data and reformatting /dev/sda2 and reinstalling sarge takes too much time.

Even though gparted and the fdisk method have never failed on me, I
usually backup my most critical data when I muck around with the
partitioning. If you have enough space on another disk or on a remote
machine, you might want to consider clonezilla-live take a backup. It
uses partimage and is much faster than cp, tar, rsync or dd.

You can find gparted and clonezilla live cds at
[gparted|clonezilla].sourceforge.net (a multi boot cd offering both is
also available)

--
Raj Kiran Grandhi



__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Size Problem
    ... But here is what I did with fdisk and mkfs.ext3 earlier today: ... You need to resize the filesystem to match the new partition size. ...
    (Ubuntu)
  • Re: [SLE] Need to resize XP partition
    ... > resize the XP partition. ... managable, then ntfsresize, noting the beginning and ending of the current ... partitions, followed by fdisk. ...
    (SuSE)
  • Re: Size Problem
    ... But here is what I did with fdisk and mkfs.ext3 earlier today: ... You need to resize the filesystem to match the new partition size. ...
    (Ubuntu)
  • Re: Size Problem
    ... But here is what I did with fdisk and mkfs.ext3 earlier today: ... You need to resize the filesystem to match the new partition size. ...
    (Ubuntu)
  • Re: Upgrading Hard Drives
    ... The a command in fdisk says to toggle a boot flag. ... While have used fdisk many times, cfdisk is a bit new to ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)