how to find which partion has the grub file or os image

General support questions
Post Reply
knzzz
Posts: 144
Joined: 2017/02/25 12:41:42

how to find which partion has the grub file or os image

Post by knzzz » 2017/08/09 06:27:26

Hi Team,

When ever the mbr got corrupted we will be installing it using grub-install /dev/sda in the rescue mode but how to ensure that mbr is in /dev/sda after switching to rescue mode

Regards
Kannappan M

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: how to find which partion has the grub file or os image

Post by gerald_clark » 2017/08/09 07:12:57


knzzz
Posts: 144
Joined: 2017/02/25 12:41:42

Re: how to find which partion has the grub file or os image

Post by knzzz » 2017/08/11 03:27:29

Appreciate your response could you please tell how to find grub.conf file and how to find when we are in rescue mode

Regards
Kannappan M

Whoever
Posts: 1114
Joined: 2013/09/06 03:12:10

Re: how to find which partion has the grub file or os image

Post by Whoever » 2017/08/11 05:34:15

Code: Select all

file -s <device>
may give you the information you need, where <device> is /dev/sda or perhaps the partition (for example /dev/sda1)

If you are looking for specific files, you should be able to mount each partition in rescue mode and examine the files present.

Post Reply

Return to “CentOS 6 - General Support”