Mailinglist Archive: opensuse (1188 mails)

< Previous Next >
Re: [opensuse] conflicting partition size
James D. Parra said the following on 01/27/2012 01:57 PM:

Hello,

A while ago I cloned a smaller hard dive with my Suse OS to a larger 1 TB
drive. Every thing works well how ever the "/" partition
still shows the original partition size and not the true size of the
partition.

For example, 'df' shows the partition as 359 GB;

#df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/sda4 359G 309G 51G 87% /
<snip>

No. DF shows the file system size and utilization.
RTFM

<quote>
df displays the amount of disk space available on the file system
containing each file name argument.
</qiote>



However parted shows the correct size and 670GB;

(parted) print
Model: ATA WDC WD1002FBYS-0 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
<snip>
4 330GB 1000GB 670GB primary xfs type=83
<snip>

You you have a 359G file system on a 670G physical partition.
Seems silly but makes sense.

What can I do to fix this?

I dunno about XFS sine I use ext3/4 and resiserFS, both of which can be
grown, the latter on a live system.

But then I don't go for such huge root file systems either and use LVM
where grwing and shrinking a FS is pretty normal.

Try xfs_growfs
I found that by reading the XFS man page.
RTFM first


--
There is no use whatever trying to help people who do not help
themselves. You cannot push anyone up a ladder unless he be willing to
climb himself.
- Andrew Carnegie
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References