Koozali.org: home of the SME Server

Data recovery via Knoppix?

Offline bas

  • **
  • 31
  • +0/-0
Data recovery via Knoppix?
« on: December 29, 2005, 12:30:24 AM »
I'm trying to recover some data form my sme 6.01 server.
It crashed and fails to boot, i think the harddisk is broken.

I booted the system using a knoppix cd and found my data partition intact. I am able to browse through the directories but when i get to a 'files' directory the system says 'You do not have enough permissions to read'.

Is it possible to maybe change my username or to change the permissions so i can get the data and copy it over my lan to a workstation?

Thanks Bas.
......

cc_skavenger

Data recovery via Knoppix?
« Reply #1 on: December 29, 2005, 02:27:46 AM »
are you using the programs in super user? If you do, you should be able to do almost everything.  I use INSERT, and do this all the time.

djhomeless

Data recovery via Knoppix?
« Reply #2 on: December 29, 2005, 09:07:29 PM »
Last month I had to do a recovery of my SME box using Knoppix. I didn't run into that error, but remember that Knoppix mounts each partition by default in read-only format. So, for each partion that you want to backup data for, just right-click on the partition and under options there should be a selection to make the partition readable.

Im still not sure what your error is about, but you might want to pop over to the Knoppix forums and see if they know what it might mean.

Geoffrey

Offline Boris

  • *
  • 783
  • +0/-0
Data recovery via Knoppix?
« Reply #3 on: January 01, 2006, 06:50:59 AM »
The dafault user in knoppix well.. "knoppix" and it doesn't exist in sme.
You can drop in to "root" shell and try to recover from there, or as root change permissions for "files" folders.
...

pcm

Use mount in stead of Knoppix
« Reply #4 on: January 01, 2006, 12:21:37 PM »
You are in luck (I hope)

This is the hard way to reinstall your machine
You reinstall a fresh copy of sme but not the 7.x because it has a different mail system/structure.
You have to create all users manually but be smart and use the lazyadmin tool: http://mirror.contribs.org/smeserver/contribs//mblotwijk/Contribs/lazy-admin-tools/
And remember to install user panel first:  http://mirror.contribs.org/smeserver/contribs/dungog/files/userpanel/
Then you install the old disk in your box 2nd IDE
You create a directory called oldsme under the directory /mnt/ “mkdir /mnt/oldsme”
Then mount the disk “mount /dev/hda3 /mnt/oldsme” if this doesn’t work then try some other disks hdd3, hde3 or scsi/usb sda3, sdb3 until you find the right (the number 3 points to your data partition).  
You can also use a external usb box with your disk then you mont as it was a usb disk “mount /dev/sda3 /mnt/oldsme”.
Then you rename the users to users-1 and i-bays to i-bays-1.
Next step is to copy  /mnt/oldsme/home/e-smith/files/i-bays and /mnt/oldsme/home/e-smith/files/users to /home/e-smith/files.
Now you only have to change the rights on the user folders using chOwn (one by one (or write a small script) if the user is john then you have to issue the command
“chown john:john -R /mnt/oldsme/home/e-smith/files/users/john”

If you want to use Knoppix to move the files then you have to use the “knoppix superuser shell” this is the only one that can move the files with out hassle. I prefers to use the mount in stead