Koozali.org: home of the SME Server

lost everything on boot partition

Offline pinascode

  • 1
  • +0/-0
lost everything on boot partition
« on: February 15, 2008, 12:48:29 PM »
Hi to you all

Configuration:
2 x 500 GB Sata drives running RAID1
PIV 3.4 GHZ
512 MB RAM

I am running SME 7.2 and just two days ago I plugged in my USB Backup Drive. I ran the backup program using putty as admin. then when i shut down the machine and rebooted, i got an error message,
grub loader stage 1.5
error 15
I found that i was missing some files that were on the boot partition.
I then took out the first drive and plugged it into another machine, using the Gparted boot CD with Gnome Editor, i was able to see the two partitions on the drive. I then used a live CD with Ubuntu on it and was able to see the bot drives but i could only mount the boot partition, looking at it, it was completely empty, no Lost and Found, no kernel no nothing, except the grub folder.
Now i rechecked the drive today and everything is gone. The grub folder is missing too.
Is there any way to restore the data off the second partition at all?
My last backup went awry and i am missing about two months worth of data. If there is any way of getting the data off the second partition i would really be glad for your help.
Max






Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: lost everything on boot partition
« Reply #1 on: February 15, 2008, 12:52:59 PM »
Hi to you all

Configuration:
2 x 500 GB Sata drives running RAID1
PIV 3.4 GHZ
512 MB RAM

I am running SME 7.2 and just two days ago I plugged in my USB Backup Drive. I ran the backup program using putty as admin. then when i shut down the machine and rebooted, i got an error message,
grub loader stage 1.5
error 15
I found that i was missing some files that were on the boot partition.
I then took out the first drive and plugged it into another machine, using the Gparted boot CD with Gnome Editor, i was able to see the two partitions on the drive. I then used a live CD with Ubuntu on it and was able to see the bot drives but i could only mount the boot partition, looking at it, it was completely empty, no Lost and Found, no kernel no nothing, except the grub folder.
Now i rechecked the drive today and everything is gone. The grub folder is missing too.
Is there any way to restore the data off the second partition at all?
My last backup went awry and i am missing about two months worth of data. If there is any way of getting the data off the second partition i would really be glad for your help.
Max
Download the ISO, burn it to CD and try the upgrade from CD option. It should leave your data intact and might restore your /boot partition... no warranties what so ever unfortunately as I luckily have not experienced this ever.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline victor

  • *
  • 6
  • +0/-0
Re: lost everything on boot partition
« Reply #2 on: July 18, 2008, 12:27:15 PM »
same thing happened to me, now i am trying get my data back.
Does anyone know  which software i have to use?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: lost everything on boot partition
« Reply #3 on: July 18, 2008, 12:31:39 PM »
same thing happened to me, now i am trying get my data back.
Does anyone know  which software i have to use?


have you tried
Quote
Download the ISO, burn it to CD and try the upgrade from CD option. It should leave your data intact and might restore your /boot partition... no warranties what so ever unfortunately as I luckily have not experienced this ever.
?

Ciao
Stefano

Offline victor

  • *
  • 6
  • +0/-0
Re: lost everything on boot partition
« Reply #4 on: July 18, 2008, 12:58:37 PM »
yes that was the first thing i did. other problem, i've tried to recover the data with knoppix but i wasn;t able to mount the sda2.

i had already 7.3

Thanks Victor

« Last Edit: July 18, 2008, 01:01:38 PM by victor »

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: lost everything on boot partition
« Reply #5 on: July 18, 2008, 03:56:10 PM »
I am running SME 7.2 and just two days ago I plugged in my USB Backup Drive. I ran the backup program using putty as admin.

What backup program did you run?

Offline victor

  • *
  • 6
  • +0/-0
Re: lost everything on boot partition
« Reply #6 on: July 30, 2008, 12:06:15 PM »
I had all my data left on the disk. A unix proffesional got it back for me so i don not know what he excactly did. But i am happy

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: lost everything on boot partition
« Reply #7 on: July 30, 2008, 12:15:51 PM »
victor

good to hear your data are back :-)

please answer CharlieBrady question, thank you

Ciao
Stefano

Offline victor

  • *
  • 6
  • +0/-0
Re: lost everything on boot partition
« Reply #8 on: July 30, 2008, 03:34:26 PM »
I will  answer the question but is wasn't asked at me but the TS.

I ran the backup in the admin control panel >backup to usb< but the UNIX pro explained to me that maybe that wasn't the problem but something in the grub loader. I reboot the server and then the server hang on

grub loader error

anyway the backup did not work

Victor

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: lost everything on boot partition
« Reply #9 on: July 30, 2008, 04:55:59 PM »
I think we need to somehow thoroughly test the admin console>backup to USB option. I have seen >5 posts in the forums on this recently. Either it is not used at it was intended, Users are not understanding how it works and making incorrect choices/assumptions of how the drives are mounted or it is buggy.

I personally have never used it. I always thought it was there more to create a base backup on install rather then a daily type of backup.

Offline victor

  • *
  • 6
  • +0/-0
Re: lost everything on boot partition
« Reply #10 on: July 30, 2008, 05:33:16 PM »
ok, nicely explained.

So i have to look for a better way to backup my files

Victor

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: lost everything on boot partition
« Reply #11 on: July 30, 2008, 05:45:15 PM »
I am not making a statement with my post. I am voicing my personal assumptions (I am not a Dev) and do not know what that option was intended for. If you are using the server-manager panel, that was definitely designed for a more "regular" backup. I personally use either the contrib DAR2 or Backup with Dar to make backups to a workstation share.

http://wiki.contribs.org/DAR2
http://wiki.contribs.org/Backup_with_dar

There are issues with USB drive mounting that make me quite shy of using any backup options that use USB disks mounted on the server.

Offline victor

  • *
  • 6
  • +0/-0
Re: lost everything on boot partition
« Reply #12 on: July 30, 2008, 05:58:39 PM »
i have looked at your links and that is excactly what i am looking for,

I try to install on my (newly installed after the above problems) testserver

thanks

Offline Bozely

  • *
  • 75
  • +0/-0
Re: lost everything on boot partition
« Reply #13 on: November 16, 2009, 05:37:03 PM »
And just for anyone reading the post the upgrade doesn't fix much  :shock:

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: lost everything on boot partition
« Reply #14 on: November 16, 2009, 11:12:47 PM »
Dear All

In a situation where a boot partition fails, and the partition cannot be recreated ie because the drive is faulty, here is a quick recipe to possibly recover your data.

Say your faulty sata drive is connected to sda, then connect another clean drive to sdb.
Boot your server using the sme current CD, and start up in Rescue mode. Mount your system as prompted.
Format the new drive connected to sdb as ext3.
Then mount that drive
mount /dev/sdb /mnt/newdrive

Initially test your drive or drives using smarctl, see the Howto. You can also seperately download the Ultimate Boot CD (UBCD) and use that to run various tests on your system including drive diagnostic testing for a variety of manufacturers drives.

Back to the mounted system. Ascertain with smartctl short and long tests the status of your drive ie it's really faulty or just spat out of an array or lost the partition for some unknown reason.

Assuming you can mount the faulty drive as well as your new drive, you can then copy data from the faulty mounted drive to the newdrive using standard tools eg cp command, mc and tar (to preserve ownership & permissions).
Copy files from their source locations to /mnt/newdrive

When finished umount the newdrive
umount /mnt/sdb
Shutdown

Build a new server from scratch and configure it as required.
Then attach the newdrive with the retrieved data on it,  say to sdb (on a single drive machine), or to sdc (on a RAID1 machine).
Mount the drive
mount /dev/sdc /mnt/retrieved
Copy data to working system.
Make sure you set ownership and permissions correctly if using the cp command. Use chown & chmod to do this.
Note it's better to use the mc (midnight commander) move function as original permissions & ownership are retained, or alternatively tar and untar folders & files.

When finished unmount the newdrive
umount /mnt/retrieved
Shutdown and disconnect newdrive
Reboot server and check all is OK.

Refer to the various Howtos for info about RAID, testing drives and formatting drives (see USB howto). Google is also your friend if unsure of any commands or usage syntax. I will add more detailed steps later when time permits.

Having retrieved your data now say a BIG THANKYOU to the powers that be of your own personal religious or non religious choosing. Rush out and buy a big USB drive, attach it to your server and configure the built in backup to run daily incremental backups, and NEVER make the mistake of having inadequate backups again.

Oh and the other Golden Rule, before you touch your server to replace faulty drives (eg in a RAID array) or do any work on it, or for that matter even breathe on it, manually instigate a full backup (by changing backup schedule settings or from the admin console), and wait until that backup has finished before doing maintenance work. That way you have a full backup of the machine as at the time you shut it down, rather than 1 day ago. A lot of data can change in one day.
« Last Edit: November 17, 2009, 08:22:46 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.