Size Problem

Karl Larsen k5di at zianet.com
Thu Jun 12 15:18:52 UTC 2008


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.  However, Karl says he used mkfs - so it really should be
> using the whole partition.
>   
    I think this happened. I used fdisk to make a new partition and 
write it. It did but said the kernel will not use this new partition 
until a reboot, or words to that effect.
    When I rebooted it looked odd so I made a new file system and now it 
looks fine on df. I also remembered I like gparted so got it and I still 
like it.

Karl


-- 

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





More information about the ubuntu-users mailing list