LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Accidentally deleted linux partition, Now, can't boot, even using dvd (https://www.linuxquestions.org/questions/linux-newbie-8/accidentally-deleted-linux-partition-now-cant-boot-even-using-dvd-4175623555/)

zillur 02-11-2018 06:41 PM

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)

Any suggestions? Thanks in advance.

Best regards
Zillur

BW-userx 02-11-2018 07:09 PM

Quote:

Originally Posted by zillur (Post 5818644)
Hi there,
I deleted my linux partition from my centos 7 os.

OOOOOOOOOPPPPP's

Quote:

Originally Posted by zillur (Post 5818644)
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.

syg00 02-11-2018 10:43 PM

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.

roy_lt_69 02-11-2018 11:05 PM

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?

ondoho 02-12-2018 12:24 AM

are you sure the bootable DVD actually works? how did you create it?

thorkelljarl 02-12-2018 05:37 AM

In case I'm not writing what you know already...

First, write nothing to the HDD.

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.

beachboy2 02-12-2018 05:51 AM

zillur,

What is the make and model of your laptop/desktop?

As syg00 suggests, immediately after switching on you need to press the appropriate key for Boot Order priority (Del, F2, F10, F12 etc).

Then select DVD.

zillur 02-12-2018 12:26 PM

Thank you very much to all.
The problem was with the dvd. It is working perfectly now.

Thanks again.
Best Rgards
Zillur

RandomTroll 02-12-2018 03:31 PM

Quote:

Originally Posted by zillur (Post 5818916)
Thank you very much to all.
The problem was with the dvd. It is working perfectly now.

Then you should mark it as solved.


All times are GMT -5. The time now is 09:54 AM.