I have cloned one of my servers (that is about to be shut down) into a VirtualBox machine. I used
rsync for that, remembering to keep the relevant attributes etc. I also modified
fstab. I have cloned a server like that before with success.
The virtual server can boot but only read-only. This is some of the output:
Loading, please wait... INIT: version 2.86 booting mount: only root can do that touch: cannot touch '/lib/init/rw/.ramfs': Read-only file system mkdir: cannot create directory '/lib/init/rw/sendsigs.omit.d/ : File exists mount: only root can do that Starting the hotplug events dispatcher: udevd Synthesizing the initial hotplug events...done Waiting for /dev to be fully populated... [ 6.435055] piix4_smbus 0000:00:08.0 : SMB base address uninitialized - upgrade BIOS or use force_addr=0xaddr [ 6.609103] Error: Driver 'pcspkr' is already registed, aborting.....
It goes on like this a while with tons of errors related to the read-only filesystem, but eventually I get to the login prompt.
I can login, but the system is severely crippled. For example, even though I login as root, for most commands I get "Only root can do that".
I have tried an
fsck but that didn't help.
Any ideas to make it boot normally would be much appreciated.
It's an quite old Debian Lenny, by the way.
EDIT: This is the rsync command:
rsync -azhv --exclude-from=exclude.lst / firstname.lastname@example.org:/backup/
exclude.lst contains the following:
# Exclude - /dev/* - /proc/* - /sys/* - /tmp/* - lost+found/ - /media/* - /mnt/*