On Wed, Apr 13, 2011 at 12:15 AM, Ali Lown <a...@lown.me.uk> wrote:
> I am using btrfs-progs latest git head in gentoo, along with a 2.6.37 kernel.
> I am unable to resize the filesystem online (or offline - though that
> doesn't seem to be an option).
>
> with brtfs:
> ---------------------------------------------------------------------------------------------------------------
> alipc-gentoo% sudo btrfs filesystem resize +20g ~/.wine/drive_c
> Resize '/home/ali/.wine/drive_c' of '+20g'
> ERROR: unable to resize '/home/ali/.wine/drive_c'
> ---------------------------------------------------------------------------------------------------------------
>
> with btrfs-ctl:
> ---------------------------------------------------------------------------------------------------------------
> alipc-gentoo% sudo btrfsctl -r +20g ~/.wine/drive_c
> ioctl:: File too large
> ---------------------------------------------------------------------------------------------------------------
>
> fdisk -l of the the drive that partiion is on (sda9 = ~/.wine/drive_c):
> ---------------------------------------------------------------------------------------------------------------
> Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
> 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
> Units = sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x000e3826
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sda1              63  1953520064   976760001    5  Extended
> /dev/sda5      1009797705  1953520064   471861180   83  Linux
> /dev/sda6       642391218  1009797704   183703243+  83  Linux
> /dev/sda7             189    41945714    20972763    7  HPFS/NTFS
> /dev/sda8        41945778   104856254    31455238+  83  Linux
> /dev/sda9       104856318   209712509    52428096   83  Linux
> /dev/sda10      386250858   468166229    40957686   83  Linux
> Partition table entries are not in disk order
> ---------------------------------------------------------------------------------------------------------------
> For help in comprehending this, here is an image from gparted:
> http://img833.imageshack.us/i/gpartedd.png/
>
> Apart from the hideous numbering and arrangement - I used gparted, and
> made it up gradually, as and when I needed partitions.
> In short for sda9, it is a logical partition inside an extended
> partion (sda1), and has approximately 85GB of unpartioned space
> (inside the extended partition) following it, into which I would like
> to resize it.
> Thanks.
> -Ali
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

btrfs resizing (like resize2fs) does not manipulate the size of partitions.

First, you need to expand the partition using fdisk or gparted.
Afterwards you can use "btrfs filesystem resize max ~/.wine/drive_c"
to grow the filesystem to the size of the partition.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to