is it possible to recover data from formatted ext3 partition. Actually while installing ubuntu 9.04 , installer misbehaved with me and formatted my /home partition and thus i lost my valueble data. the new partition is ext4 type. I tried with testdisk but unable to recover any bit !! anythought ??
On Fri, Aug 7, 2009 at 1:24 PM, narendra sisodiya < narendra.sisodiya@gmail.com> wrote:
is it possible to recover data from formatted ext3 partition. Actually while installing ubuntu 9.04 , installer misbehaved with me and formatted my /home partition and thus i lost my valueble data. the new partition is ext4 type. I tried with testdisk but unable to recover any bit !! anythought ??
Run ext3undel on that partition and see if it helps in any recovery. However chances are very slim.
On Fri, 07 Aug 2009, narendra sisodiya wrote:
is it possible to recover data from formatted ext3 partition. Actually while installing ubuntu 9.04 , installer misbehaved with me and formatted my /home partition and thus i lost my valueble data. the new partition is ext4 type. I tried with testdisk but unable to recover any bit !! anythought ??
Simple, restore from a backup. oh wait, you DO have a backup don't you ?
:)
repeat after me:
I will ALWAYS do a backup BEFORE I install.
That was mistake no 1.
Mistake no 2 was to keep using the partition.
What you need to do is:
remount the partition ro
dd the partition over to another disk
work on the dd'd image
google for undeletion howto, though it is pretty outdated the last time I checked.
then google some more.
hth,
Sharukh.
On Sat, Aug 8, 2009 at 9:24 PM, Dr. Sharukh K. R. Pavri. lists@pavri.netwrote:
On Fri, 07 Aug 2009, narendra sisodiya wrote:
is it possible to recover data from formatted ext3 partition. Actually
while
installing ubuntu 9.04 , installer misbehaved with me and formatted my
/home
partition and thus i lost my valueble data. the new partition is ext4
type.
I tried with testdisk but unable to recover any bit !! anythought ??
Simple, restore from a backup. oh wait, you DO have a backup don't you ?
:)
repeat after me:
I will ALWAYS do a backup BEFORE I install.
That was mistake no 1.
Mistake no 2 was to keep using the partition.
What you need to do is:
remount the partition ro
dd the partition over to another disk
work on the dd'd image
google for undeletion howto, though it is pretty outdated the last time I checked.
then google some more.
hth,
Sharukh.
Dr. Sharukh K. R. Pavri. Homoeopath, Linuxer. A clean desk is a sign of a cluttered desk drawer. -- http://mm.glug-bom.org/mailman/listinfo/linuxers
Thanks, I noticed that murphy's law is working with me with 100% probability. (If something can go wrong, it will) I did not took backup because I always do same practise with fedora. I always keep data in /home and while installing a new version , I just put a mount point for /home *without formatting option *to that partition in installer. I was trying to install Ubuntu 9.04 (on friend's lappy) and was expecting same. I did not ticked the format option for /home partition but still it ruined my /home ,
I lost my laptop last month and one external hardisks and lost most the data even having external harddisk. It was my friend's lappy. Now he also lost data because of me !!
Got a lesson that , Always Keep data backup with keep in mind your system is going to meet highest nature's calamity tomorrow.
On Saturday 08 August 2009, narendra sisodiya wrote:
I lost my laptop last month and one external hardisks and lost most the data even having external harddisk. It was my friend's lappy. Now he also lost data because of me !!
The "find stolen laptop" feature involves a rootkit in bios which phones home and is present in several branded laptops. So if you have the serial num. you might still get it back.
On Sat, Aug 8, 2009 at 9:40 PM, narendra sisodiya < narendra.sisodiya@gmail.com> wrote:
I lost my laptop last month and one external hardisks and lost most the data even having external harddisk. It was my friend's lappy. Now he also lost data because of me !!
As they say 'Bad luck kharab chal raha hai'. Anyway did you try out ext3undel?
On Sun, Aug 9, 2009 at 12:37 AM, Rony Bill gnulinuxist@gmail.com wrote:
they say 'Bad luck kharab chal raha hai'. Anyway did you try out ext3undel?
--
Yup... I did, and thanks I was able to recover a lot of data but with disarrange and numbered file names. full data is not recovered. I am just transferring them to other drive because after running it I am now unable to open some presentation which i created 2 days back. some more problem I noticed after recovery process. So I planned to reinstall(with backup) Fedora 11 again.
PS: Actually the trouble started when i clicked the upgrade process (using preupgrade) for upgrading my friend's system from fedora 10 to fedora 11. Upgrade did not worked fully. something went wrong system was unable to boot properly. So my friend asked to install ubuntu. Now after this he is again " *yaar vo fedora hi theek tha, vo hi install kar de*"
On Sun, Aug 9, 2009 at 12:59 AM, narendra sisodiya < narendra.sisodiya@gmail.com> wrote:
On Sun, Aug 9, 2009 at 12:37 AM, Rony Bill gnulinuxist@gmail.com wrote:
they say 'Bad luck kharab chal raha hai'. Anyway did you try out ext3undel?
--
Yup... I did, and thanks I was able to recover a lot of data but with disarrange and numbered file names. full data is not recovered.
As long as the extension is correct, the file can be opened, identified and renamed later.
I am just transferring them to other drive because after running it I am now unable to open some presentation which i created 2 days back. some more problem I noticed after recovery process. So I planned to reinstall(with backup) Fedora 11 again.
PS: Actually the trouble started when i clicked the upgrade process (using preupgrade) for upgrading my friend's system from fedora 10 to fedora 11. Upgrade did not worked fully. something went wrong system was unable to boot properly. So my friend asked to install ubuntu. Now after this he is again "
*yaar vo fedora hi theek tha, vo hi install kar de*"
Some time back I had mentioned on the list that I avoid upgrading Ubuntu and prefer a clean install.
narendra sisodiya wrote:
On Sat, Aug 8, 2009 at 9:24 PM, Dr. Sharukh K. R. Pavri. lists@pavri.netwrote:
On Fri, 07 Aug 2009, narendra sisodiya wrote:
is it possible to recover data from formatted ext3 partition. Actually
while
installing ubuntu 9.04 , installer misbehaved with me and formatted my
/home
partition and thus i lost my valueble data. the new partition is ext4
type.
I tried with testdisk but unable to recover any bit !! anythought ??
Simple, restore from a backup. oh wait, you DO have a backup don't you ?
:)
repeat after me:
I will ALWAYS do a backup BEFORE I install.
That was mistake no 1.
Mistake no 2 was to keep using the partition.
What you need to do is:
remount the partition ro
dd the partition over to another disk
work on the dd'd image
google for undeletion howto, though it is pretty outdated the last time I checked.
then google some more.
hth,
Sharukh.
Dr. Sharukh K. R. Pavri. Homoeopath, Linuxer. A clean desk is a sign of a cluttered desk drawer. -- http://mm.glug-bom.org/mailman/listinfo/linuxers
Thanks, I noticed that murphy's law is working with me with 100% probability. (If something can go wrong, it will) I did not took backup because I always do same practise with fedora. I always keep data in /home and while installing a new version , I just put a mount point for /home *without formatting option *to that partition in installer. I was trying to install Ubuntu 9.04 (on friend's lappy) and was expecting same. I did not ticked the format option for /home partition but still it ruined my /home ,
I lost my laptop last month and one external hardisks and lost most the data even having external harddisk. It was my friend's lappy. Now he also lost data because of me !!
Got a lesson that , Always Keep data backup with keep in mind your system is going to meet highest nature's calamity tomorrow.
This is how I take backup of my data. Might be useful. I have 8GB pen drive, with encrypted partition. On boot partition is mounted manually with root password. Data is backed up every 10 minutes to the USB disk. Yes 8GB is enough for my work mostly c,c++ code, pdfs. On login one script runs, causing beep,beep... on PC speaker, this reminds me to mount backup partition.
1. Script to create encrypted partition. This is done once when creating backup partition. #!/bin/sh
#Usage #create_crypt_fs.sh Device_Path Size
DEV=$1 SIZE=$2
dd if=/dev/zero of=$DEV bs=1024 count=$SIZE chmod 600 $DEV
losetup /dev/loop0 $DEV cryptsetup -y luksFormat /dev/loop0 cryptsetup luksOpen /dev/loop0 $DEV
mke2fs -j /dev/mapper/$DEV #1 end script
2. Script to take backup every 10minutes. This is run from cron. #/bin/sh
#put your backup dir here DIRS="/home/bal/Projects/ .gnupg .kde /home/bal/WindowsProjects /home/bal/.gnome2"
SIZE=0 TOTAL_SIZE=0 BACKUP_DIR="/mnt/backup/bal"
#for DIR in $DIRS; do # SIZE=`du -sb $DIR|cut -f1` # echo -e "$DIR \t\t\t\t$SIZE"; # TOTAL_SIZE=$((TOTAL_SIZE+SIZE)) #done #echo -e "Total \t\t\t\t\t$TOTAL_SIZE"
cd $BACKUP_DIR for DIR in $DIRS;do echo "Syncing $DIR" rsync -a -e --delete $DIR $BACKUP_DIR done echo `date` > $BACKUP_DIR/backup.time #2 end script
3. Alert to mount script on every login, this is run from system->preferences->sessions as 'xterm /home/bal/Projects/Scripts/backup_monitor.sh'
#!/bin/sh while [ "1" ]; do if [ ! -f "/mnt/backup/bal/backup.time" ]; then echo -n "Backup error" echo $'\a' sleep 1 else cat /mnt/backup/bal/backup.time; sleep 10 fi clear done
Thanks and Regards Balwinder Singh
This is how I take backup of my data. Might be useful. I have 8GB pen drive, with encrypted partition. On boot partition is mounted manually with root password. Data is backed up every 10 minutes to the USB disk. Yes 8GB is enough for my work mostly c,c++ code, pdfs. On login one script runs, causing beep,beep... on PC speaker, this reminds me to mount backup partition.
- Script to create encrypted partition. This is done once when creating
backup partition. #!/bin/sh
#Usage #create_crypt_fs.sh Device_Path Size
DEV=$1 SIZE=$2
dd if=/dev/zero of=$DEV bs=1024 count=$SIZE chmod 600 $DEV
losetup /dev/loop0 $DEV cryptsetup -y luksFormat /dev/loop0 cryptsetup luksOpen /dev/loop0 $DEV
mke2fs -j /dev/mapper/$DEV #1 end script
- Script to take backup every 10minutes. This is run from cron.
#/bin/sh
#put your backup dir here DIRS="/home/bal/Projects/ .gnupg .kde /home/bal/WindowsProjects /home/bal/.gnome2"
SIZE=0 TOTAL_SIZE=0 BACKUP_DIR="/mnt/backup/bal"
#for DIR in $DIRS; do # SIZE=`du -sb $DIR|cut -f1` # echo -e "$DIR \t\t\t\t$SIZE"; # TOTAL_SIZE=$((TOTAL_SIZE+SIZE)) #done #echo -e "Total \t\t\t\t\t$TOTAL_SIZE"
cd $BACKUP_DIR for DIR in $DIRS;do echo "Syncing $DIR" rsync -a -e --delete $DIR $BACKUP_DIR done echo `date` > $BACKUP_DIR/backup.time #2 end script
- Alert to mount script on every login, this is run from
system->preferences->sessions as 'xterm /home/bal/Projects/Scripts/backup_monitor.sh'
#!/bin/sh while [ "1" ]; do if [ ! -f "/mnt/backup/bal/backup.time" ]; then echo -n "Backup error" echo $'\a' sleep 1 else cat /mnt/backup/bal/backup.time; sleep 10 fi clear done
Thanks and Regards Balwinder Singh -- http://mm.glug-bom.org/mailman/listinfo/linuxers
Thanks a lot for sharing this !!
This is how I take backup of my data. Might be useful. I have 8GB pen drive, with encrypted partition. On boot partition is mounted manually with root password. Data is backed up every 10 minutes to the USB disk. Yes 8GB is enough for my work mostly c,c++ code, pdfs. On login one script runs, causing beep,beep... on PC speaker, this reminds me to mount backup partition.
- Script to create encrypted partition. This is done once when creating
backup partition. #!/bin/sh
#Usage #create_crypt_fs.sh Device_Path Size
DEV=$1 SIZE=$2
dd if=/dev/zero of=$DEV bs=1024 count=$SIZE chmod 600 $DEV
losetup /dev/loop0 $DEV cryptsetup -y luksFormat /dev/loop0 cryptsetup luksOpen /dev/loop0 $DEV
mke2fs -j /dev/mapper/$DEV #1 end script
- Script to take backup every 10minutes. This is run from cron.
#/bin/sh
#put your backup dir here DIRS="/home/bal/Projects/ .gnupg .kde /home/bal/WindowsProjects /home/bal/.gnome2"
SIZE=0 TOTAL_SIZE=0 BACKUP_DIR="/mnt/backup/bal"
#for DIR in $DIRS; do # SIZE=`du -sb $DIR|cut -f1` # echo -e "$DIR \t\t\t\t$SIZE"; # TOTAL_SIZE=$((TOTAL_SIZE+SIZE)) #done #echo -e "Total \t\t\t\t\t$TOTAL_SIZE"
cd $BACKUP_DIR for DIR in $DIRS;do echo "Syncing $DIR" rsync -a -e --delete $DIR $BACKUP_DIR done echo `date` > $BACKUP_DIR/backup.time #2 end script
- Alert to mount script on every login, this is run from
system->preferences->sessions as 'xterm /home/bal/Projects/Scripts/backup_monitor.sh'
#!/bin/sh while [ "1" ]; do if [ ! -f "/mnt/backup/bal/backup.time" ]; then echo -n "Backup error" echo $'\a' sleep 1 else cat /mnt/backup/bal/backup.time; sleep 10 fi clear done
Thanks and Regards Balwinder Singh
Sorry, I missed this script. 4. To mount encrypted FS when you login.
#!/bin/sh DEV=`ls /dev/disk/by-id/| grep SanDisk_Cruzer_43215213BA824F0A|grep part1` if [ "$DEV" ]; then echo "Trying to mount /dev/disk/by-id/$DEV as backup device" mount /dev/disk/by-id/$DEV /mnt/usb losetup /dev/loop0 /mnt/usb/backup cryptsetup luksOpen /dev/loop0 backup mount /dev/mapper/backup /mnt/backup/ else echo "Backup USB device not found" echo "Please insert proper usb disk" fi
Thanks And Regards Balwinder Singh