![]() |
[SOLVED] N9: Accidentally cancelled MyDocs partition
Hallo,
i need some help for recovering the MyDocs partition, because i accidentally cancelled this partition. I guess that all my files are lost, but now i can not save anything on my N9 or can not even use the camera because the camera doesn't find the place where to save the pictures. When trying to start the camera it says: "Camera can not be used bedause the device is attached to a computer". A sfdisk shows me: Code:
~ # /sbin/sfdisk -l Thanks! Best egc |
Re: N9: Accidently cancelled MyDocs partition
Apparently a partition is there. What did you do exactly?
|
Re: N9: Accidently cancelled MyDocs partition
If you had plugged the N9 to a Windows PC and not done a safety removal this can happen so just plug it back in and once it's detected on your PC, do a safety removal of device.
If the above was/is not the case, you could do a manual mount as prescribed in /etc/fstab for /dev/mmcblk0p1 |
Re: N9: Accidentally cancelled MyDocs partition
Quote:
i had attached the N9 on the computer and wanted to repatition an external hard disc, but then i accidentally repartitioned the N9 partition. The program i used is gparted. I'm not sure anymore, but i think i repartitioned it to ext4 and now put it back on fat32, but it doesn't recognize the partition anymore :( Somehow the N9 doesn't seem to like the partition table that geparted saved on N9 ... |
Re: N9: Accidently cancelled MyDocs partition
Quote:
i work on Linux and i did, unfortunately, more than only an incorrect unplug of the device (see above) ... I will try tomorrow the mount like in fstab, thanks for the hint! |
Re: N9: Accidently cancelled MyDocs partition
best solution is reflash with --no-preserve option to restore factory partitions layout
|
Re: N9: Accidently cancelled MyDocs partition
Quote:
Like now it looks like i've lost "only" my pictures, videos and documents. So it would be great if i would be able, with your help, to just hang in again the lost MyDocs partition. You see i would like to avoid reflashing, if any possible ... *PRAY* |
Re: N9: Accidently cancelled MyDocs partition
Well, did you tried to attach phone in mass storage and just format in in fat32?
|
Re: N9: Accidently cancelled MyDocs partition
Quote:
|
Re: N9: Accidently cancelled MyDocs partition
Err, FileManager - N9 - LongTap :confused:
Which file manager? ;) But to the OP: it is possible to recover from that on device. But possibly you need opensh or be in open mode. devel-su develsh /sbin/sfdisk -l /dev/mmcblk0 will show you partition layout. You need 'c' (W95 Fat32) for first partition /dev/mmcblk0p1. Change that with sfdisk. And then recreate file system with mkfs.vfat. /sbin/mkfs.vfat -n MyDocs /dev/mmcblk0p1 |
Re: N9: Accidently cancelled MyDocs partition
Quote:
|
Re: N9: Accidently cancelled MyDocs partition
Quote:
|
Re: N9: Accidently cancelled MyDocs partition
Erm, yes. ;)
You are welcome. Forgot to tell that you may also have had a chance (still have, but lesser chance) to recover the old files on MyDocs with testdisk or any other recovery tool from PC. |
Re: N9: Accidently cancelled MyDocs partition
Quote:
How do i do that? Just mount MyDocs as Mass storage on PC and then run testdisk from PC on it? Thanks! |
Re: N9: Accidently cancelled MyDocs partition
Yep.
(For N900 there is testdisk available in repos. But for N9 I do not know availability, maybe in openrepos.net?) |
Re: N9: Accidently cancelled MyDocs partition
Quote:
I'm very glad i don't have to reinstall everything :-) Thanks!! |
Re: [SOLVED] N9: Accidentally cancelled MyDocs partition
I've never had much success with testdisk. I ended up writing my own recovery utility to read deleted directory entries, follow them and copy the appropriate number of clusters to a new file. It is very crude and not fit for public consumption. And it only works on deleted files, not on formatted partitions. But, if there is enough interest, I can share the source and let people use it at their own risk.
|
All times are GMT. The time now is 17:26. |
vBulletin® Version 3.8.8