Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm totally freaking out right now. I was resizing my partition via GParted on SystemRescueCD and I think I deleted everything on my Linux partition when I accidentally cancelled! Oh my gosh I need that stuff (I don't have an external backup!). My dad has all his students' things on there he needs.
How can I fix this? Grub gives me like error 2 or something. I'm on a Puppy livecd at the moment. I'm freaking out more than I can ever remember freaking out. Please help if you can!
If you did resize the partition in question, there was a good chance Grub would not boot the operating system. You would need to reinstall Grub. Your data "should" still be there, hopefully.
If you formatted the partition, the data is gone forever.
Can you access the partition via live cd to see if it still exists as well as data?
Can you access the partition via live cd to see if it still exists as well as data?
The partition itself exists but there is not report (by GParted) of any data. However, this may simply be that it is corrupted and thus can't tell if there is or isn't data.
I used that a few weeks ago, and it seems to work well. Its a shell based application which will recover your deleted items. If you dig through the menu systems you will see a way of customizing your search. This program has the potential of dumping a very large collection of files into a lot of temp folders.
Know that even if your files are not accessible, they are not deleted either. That is the benefit/curse of a journaled file system. When you are using photorec or any file recovery program, remember to save in a different partition, lest you overwrite something you are trying to save.
At what stage did you cancel? Just as /after the partition was shrunk or while it was already resizing the file system?
If it's the first, recovery should be easy. Just run testdisk on that drive and try to determine the start and end of the partition as they were before you ran gparted. Then delete the partition, run fdisk and recreate it with the proper end/start. Note that fdisk and testdisk seem to measure differently: the former starts counting from 1 while the latter counts from 0 so you have to add 1 to the start/end numbers reported by testdisk before you can type them into fdisk.
In the other case, things could be more painful and recovery of the raw data may be all that you can do.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.