[SOLVED] Accidentally deleted linux partition, Now, can't boot, even using dvd
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.
Accidentally deleted linux partition, Now, can't boot, even using dvd
Hi there,
I deleted my linux partition from my centos 7 os. I tried to install using DVD, but it doesn't work. Every time I reboot with os.iso dvd, I am getting redirected to grub rescue. What should I do? I don't have any other os in this machine. I have edited my boot priorities into dvd in BIOS but the problem persists.
Code:
set
prefix=(hd0,msdos2)/grub2
root=hd0,msdos2
ls
(hd0) (hd1) (fd0)
Hi there,
I deleted my linux partition from my centos 7 os.
OOOOOOOOOPPPPP's
Quote:
Originally Posted by zillur
I tried to install using DVD, but it doesn't work. Every time I reboot with os.iso dvd, I am getting redirected to grub rescue. What should I do? I don't have any other os in this machine. I have edited my boot priorities into dvd in BIOS but the problem persists.
Code:
set
prefix=(hd0,msdos2)/grub2
root=hd0,msdos2
ls
(hd0) (hd1) (fd0)
Any suggestions? Thanks in advance.
Best regards
Zillur
what are you booting EFI, I've never seen nor heard of such silliness. It maybe not catching your boot DVD but instead bypassing it to grub rescue because grub is still installed on your hdd.
Make sure you're getting the BOIS to boot DVD fist on your boot list order. even turn off everything else it could boot from if your BIOS lets you do something like that to force it to use your dvd drive.
Try finding the key that lists the boot devices (not via BIOS menus). Might be F10 or F12 - check the PC splash screen.
From there you should be able to select the DVD.
You need to be able to boot from the DVD / USB, from there you might be able to recover the deleted partition without needing to re-install Linux.
Just curious, what is your hardware?
Next, make a clone copy of your HDD to another medium. You can use one of the many live rescue CD/DVDs for this. There is Clonezilla, but the command 'dd' is easiest, though in case of a mistake, the most consequential. Find examples and warnings on the Internet.
Thereafter use TestDisk on the clone copy to search for and re-establish your deleted partition. If you fail or fumble the job, make another clone and try again.
Upon success, repeat the restoration process on your deleted original partition, or copy the restored partition to replace what was deleted.
Last edited by thorkelljarl; 02-12-2018 at 05:40 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.