Re: Size Problem



Felipe Figueiredo wrote:
On Thursday 12 June 2008 11:15:26 Derek Broughton wrote:

Felipe Figueiredo wrote:

On Wednesday 11 June 2008 21:31:59 Karl Larsen wrote:

I have a real problem with /dev/sda5. I put the /karl directories on
it and got a 100% full warning. But for gods sake I had doubled the size
with fdisk and saved it. Here is what df says:
/dev/sda5 8657308 8216216 1316 100% /mnt

But here is what I did with fdisk and mkfs.ext3 earlier today:

/dev/sda5 2193 4625 19543041 83 Linux

according to fdisk.

Which of these is correct?

Both of them.

One is reporting the partition size, and the other is reporting the
filesystem size. Fdisk doesn't mess with filesystems, which is why it's
not recommended for those who don't know exactly what they're doing. You
could avoid this by using parted, or something higher level like that.

You need to resize the filesystem to match the new partition size.
man resize2fs is your friend.

While you're right about the partition size, I don't think parted would do
any better job.


Maybe I'm assuming too much here, but I really thought it did the whole thing.
Isn't parted the partitioner used in the graphical installer?



However, Karl says he used mkfs - so it really should be
using the whole partition.


I'd think so, too. But in light of what he said, it would also make sense that
mkfs would just reformat the existing filesystem, instead of creating a whole
new one. I don't have the time to experiment and try to find out why this
happened to him, but his solution is a fair and simple resize.

Mea culpa, as per P.Garret's and K.Auer's recent emails (both of which I agree
to) I should've stated that I *thought* parted would prevent it, instead.

regards
FF


I am sure gparted would have caught the problem. I did not have it
loaded at that time.

Karl


--

Karl F. Larsen, AKA K5DI
Linux User
#450462 http://counter.li.org.
PGP 4208 4D6E 595F 22B9 FF1C ECB6 4A3C 2C54 FE23 53A7


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: problem using parted on partition containing a logical volume
    ... This document states that one should reduce the size of the partition first, before reducing the size of the logical volume group. ... Filesystem has incompatible feature enabled ... Error: Could not detect filesystem. ... indicates that it is not possible to resize the partition as it is, because of incompatible features in the filesystem that make it incompatible with parted and partition magic. ...
    (RedHat)
  • Re: What are the advantages of LVM?
    ... but that's not the case - you'll be able to resize ... I couldn't resize the / partition (which is what I thought ... actually have gained with LVM: I thought it was supposed to allow more ... Trouble is that you need to unmount the filesystem to resize it (at ...
    (Ubuntu)
  • Re: partition extends past end of disk
    ... > partition extends past the end of the disk, ... > up when the filesystem gets nearly full. ... How do I tell it to resize to the real end ...
    (comp.os.linux.hardware)
  • Re: How to resize ext3 partitions?
    ... What software can I use in FC5 to resize an ext3 partition? ... Ext3 is a filesystem and not a partition. ...
    (Fedora)
  • Re: Re: Ex3 Partition Resize program...help!
    ... >> the manual and thought it would resize partition size for me as well as ... >> with fdisk after using the program). ... And I was decreasing filesystem size back then. ...
    (alt.os.linux)