Opened 15 years ago

Closed 15 years ago

#5493 closed defect (invalid)

Compacting is not possible any more: mount command returns error: mount / is busy

Reported by: grof Owned by:
Component: other Version: VirtualBox 3.0.12
Keywords: Cc:
Guest type: Linux Host type: other


I would like to compact VDI file on Ubuntu 9.10 guest running on top of Windows XP sp3 host using VirtualBox 3.0.11.

I have followed tutorial - written by me :) - about compacting VDI files:, but when I execute command: mount -n -o remount,ro -t ext2 /dev/sda1 /
I get error message: "mount: / is busy".

This instructions were working fine on previous version of Ubuntu and VirtualBox - but I have upgraded both the same day, so I don't know which one is causing the problem. Most probably this is Ubuntu 9.10 problem, because it does not permits to remount disk as read-only. But no mather if this is Ubuntu or VirtualBox problem, no more compacting is posible

The only work-around I have found is to use third-party tool CloneVDI:[[BR]] But this is tool only works on Windows hosts, because it is Windows application. It also works on Wine, but we can't expect Linux admin to install Wine, because there are so many problems with it and also a lot of disk would be taken. Regards

Change History (1)

comment:1 by Klaus Espenlaub, 15 years ago

Resolution: invalid
Status: newclosed

To me this looks like a guest OS setup issue. VirtualBox has very little influence on why a guest OS would refuse to remount a filesystem as readonly. Maybe Ubuntu 9.10 starts something really early which opens a file for writing, as that blocks the remount. Check with lsof...

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use