TurnKey Linux Virtual Appliance Library

LAMP Joomla Hacked Reinstall

Hello,

My dev Joomla server has been hacked and now Turnkey 10.04 LAMP wont boot it hangs at initramfs prompt. I thought I was covered as had virtualbox snapshot but somehow thats got corrupted too. Can a kind person out there advise how to reinstall Tunrkey LAMP from the Iso but without losing the existing data in var/www/. Dont mind losing mysql etc but I have recent Joomla backups in the partition.

Thanks

Paul

I found this post which is

I found this post which is same problem

http://www.turnkeylinux.org/forum/support/20110906/turnkey-lamp-vmware-e...

Tried solution but get

mount -n -o remount,rw /

mkdir /var/run/network /etc/init.d/networking restart

cannot create directory /etc/init.d/networking

 


Resolved this issue by

Resolved this issue by booting from slax live cd and running

fsck -y /dev/mapper/turnkey-root  


It did not work from Turnkey live cd as partitions are mounted ?


Jeremy's picture

Glad you got it sorted...

And thanks for posting back with your solution. Not sure why the drive was being mounted by the Live CD? Perhaps that's the default behaviour of Ubuntu? Theoretically you should be able to just unmount them ('mount' to see what's mounted, 'umount /dev/mapper/whatever' to unmount it)...

TKLBAM backups are a good solution to keep your data safe!

Saved my site!

I had a power outage which corrupted my appliance. I ran the fsck command above (once it errored out, a second run went without a hitch) and my appliance is back up and running. Thanks!

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)