LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-11-2018, 06:41 PM   #1
zillur
Member
 
Registered: Apr 2015
Posts: 217

Rep: Reputation: Disabled
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
 
Old 02-11-2018, 07:09 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by zillur View Post
Hi there,
I deleted my linux partition from my centos 7 os.
OOOOOOOOOPPPPP's

Quote:
Originally Posted by zillur View Post
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.
 
1 members found this post helpful.
Old 02-11-2018, 10:43 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
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.
 
1 members found this post helpful.
Old 02-11-2018, 11:05 PM   #4
roy_lt_69
Member
 
Registered: Aug 2006
Location: Vancouver, BC, Canada
Distribution: Slackware, Mint, Debian
Posts: 238

Rep: Reputation: 29
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?
 
1 members found this post helpful.
Old 02-12-2018, 12:24 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
are you sure the bootable DVD actually works? how did you create it?
 
1 members found this post helpful.
Old 02-12-2018, 05:37 AM   #6
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
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.

Last edited by thorkelljarl; 02-12-2018 at 05:40 AM.
 
1 members found this post helpful.
Old 02-12-2018, 05:51 AM   #7
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,972
Blog Entries: 32

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
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.
 
1 members found this post helpful.
Old 02-12-2018, 12:26 PM   #8
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Thank you very much to all.
The problem was with the dvd. It is working perfectly now.

Thanks again.
Best Rgards
Zillur
 
Old 02-12-2018, 03:31 PM   #9
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,967

Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by zillur View Post
Thank you very much to all.
The problem was with the dvd. It is working perfectly now.
Then you should mark it as solved.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accidentally deleted Linux partition karya174 Linux - Newbie 4 08-04-2013 12:41 PM
accidentally deleted jfs partition berrance Linux - Software 7 01-06-2010 06:49 AM
Accidentally Deleted Partition Table jani_fedora Linux - Hardware 3 03-27-2008 05:24 PM
Accidentally Deleted my Linux Partition...Need Help ASAP robbs Linux - Newbie 3 07-10-2005 07:26 PM
accidentally deleted /boot partition, yet it boots timsch75 Linux - General 6 04-08-2004 02:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration