shrinking linux guest disks mount error

Discussions about using Linux guests in VirtualBox.
Post Reply
Kevin666
Posts: 11
Joined: 26. Oct 2009, 16:24
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: LinuxMint MATE, Windows 7, Windows XP, SUSE

shrinking linux guest disks mount error

Post by Kevin666 »

As many have there are plenty of internet instructions on how to use zerofree to shrink your guest disks but I am having a problem with mine being able to unload the disk and remount in read only mode so I do :-

Code: Select all

mount -n -o remount,ro -t ext4 /dev/sda1 /
it thinks about and then comes back with :-

Code: Select all

mount: / is busy
so anybody got any reason why or am i missing something

have used dd instead but there are some issues apparently with it and zerofree has been given the thumbs up

TIA
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: shrinking linux guest disks mount error

Post by fixedwheel »

man zerofree
To remount the root file-system readonly, you can first switch to single user runlevel (telinit 1) then use mount -o remount,ro filesystem.
Post Reply