Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'd like to expand my disk space in Ubuntu. Right now, it has 30 GB space which is the maximum allowable installation size in Wubi.

I wanted to extend it to 50 GB so I've done a live resizing according to this website

I've already executed the first command which is:

sudo dd if=/dev/zero bs=1MiB of=/host/ubuntu/disks/root.disk conv=notrunc oflag=append count=20480

After 10 minutes I've executed the 2nd command:

sudo losetup -c /dev/loop0/

But it outputs an error:

loop: can't set capacity on device /dev/loop0/: Not a directory

Is there anything I can do to work this around?

share|improve this question

1 Answer 1

I've solved it.

It seems I've put it an extra slash at the code:

sudo losetup -c /dev/loop0/

Whereas it should it be:

sudo losetup -c /dev/loop0

I've successfully expanded my partitions with no problems.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.