I could unmount sda4 with no problem. External drive shouldn’t affect it. You shouldn’t worry about the running WD services if you want to recover your data. Longer the partition is mounted more risk that those files will be permanently overwritten. Extundelete is able to recover files with their full name and meta data, photorec is only recognizing files by their file start. Some files might be incorrect if they were partial (it means that some data was placed at the different disk sectors etc). So I would recommend to try extundelete as first and then if it fails - photorec. Once again, extundelete documentation says that the partition must be unmounted before it will work.
You could use the lsof command. This will list files opened by processes.
I’m not sure whether you think the ‘6’ bit in the sda6 is anything to do with the size.
But, in case you do, it isn’t. sdax are partitions on the disk, whatever size it is. The user data partition is always sda4, and only its size changes to support different disk sizes.
When i try to unmount i get the reply: “umount: /DataVolume: device is busy. (In some cases useful info about the processes that use the device is found by lsof(8) or fuser(1)”
I am concerned if i force the unmount, i may not be able to remount without loss of existing data.
Well, if the worst comes to the worst…
Whoa…! mine was a simple delete human error, yours truly. I knew something was up when it took so long to delete…wrong bloody folder. I didn’t take to time to set up the recycle bin or back up restore program that comes with WD Mycloud NAS…
The implications are huge and the chance for data loss…well lets just say this will become a very popular forum.
Partition unmounting won’t cause any data loss… Simply it won’t be available to read/write by other processess until My Cloud reboot or manual partition re-mount. You should read a little bit more what mounting/unmounting is on Linux.
Thanks Mona, I have reading about the linux processes all day. Just doing a total backup before I attempt using extundelete.
Still trying to unmount the sda4. I have attached a screenshot. Do you have any other ideas as extundelete will reportedly only work when the /dev/sda4 is unmounted. Thanks for you persistence.
Hey Ged. Please type: “lsof /dev/sda4” and show the output.
Sorry for the delay. I turn the device off when I am not using it so it won’t be running processes. When I restart, it takes forever to initialise. Now I am in via ssh.
Now that I have initialised the device, here is the p/o AFTER I logged out…
and then try to unmount (umount) it.
This will only stop the service, not disable, so in case of problems this service will be restarted after My Cloud restart. I personally have this service stopped by my startup script, because I don’t use remote access to MyClould, so I’m sure it’s safe to stop this service.
Thanks. Worked. Now I will go back to your original post and run extundelete (i have it on the attached external drive to the wd cloud.
Great! Good luck with extundelete. If you remember the folder name, try to recover only this folder (I think I posted a command for this in my big post). Should be quicker and hopefully folder structure can be recovered.
Seems to be working (can hear device crunching). There is a red light on the device and I can no longer access the external drive (as it is connected to the device).
I forgot to mention that when sda4 is unmounted it might be impossible to browse all shares by SMB. So you could try using WinSCP to browse files by SSH.
About the screenshot, I think something went wrong. Try to check the log file (in another putty window command: nano ExtundeleteFullRestoreLog.txt). When the process is running you shouldn’t see another line for typing, that’s why I think it finished restoring too fast and something went wrong.
Was unable to start another putty session. So typed on next line as per attached. May have to unplug cloud and external drive, re-initialise the cloud and replug the seagate. Then have a look at the folder on the seagate external drive.
You could use a program called WinSCP to access files on My Cloud by SSH (something like putty but for files exploring). Then external drive should be accessible in /nfs/driveName.
It should be possible to start multiple putty sessions with no problem. Make sure you typed address/root username/password correctly.
If not enough files were restored, try to remove “–after NUMBER” from the restore command. Maybe it doesn’t know deletion time that’s why doesn’t restore it.