Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Stuff happens. It just happens just so that this time I accidently mistaked my backup partition for another partition.
The partition was in the beginning of the drive and was formated to ReiserFS. How can I recover it? Surely its possible and perhaps simple??
If it was a Windows partition then I would be sweating right now. I had some important documents on there and would strongly prefer not to lose them. However I have faith in the Linux community and I hope that they something up their sleeves for dumb mistakes like mine.
????.
Nothing to do with it.
Deleting a partition (using normal means) is merely deleting the partition table entry. This only defines the start and extent (sector count) of the partition.
No data is touched, and the filesystem is irrelevant. Yes, ignore the comment above - we are not talking filesystem recovery here, merely part table entries.
testdisk.
Or if you are sure of your sizing, just add a new partition of the same size from fdisk. Works fine.
One last thing: If the new partition is roughly maybe one or two megs off or say a few bytes off it shouldn't matter?? It should have any extra since its in the beginning and the second partition is still there.
Also if I add a new partition through fdisk how do I define the partition type??
I know that there are tools which can search a disk to look for partitions... the contents of various types of filesystem labels are fairly well known.
It's a good idea .. a little late to mention it now, perhaps .. to print the partition-table of a disk to a file, and store it in the root directory of the first partition of that disk. (And in a nice filing-cabinet...)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.