LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-04-2017, 11:40 AM   #1
circus78
Member
 
Registered: Dec 2011
Posts: 273

Rep: Reputation: Disabled
Grub: no such disk


Hi,
I just rebooted my (remove) server.
I logged in KVM and I see this:

Code:
grub rescue> no such disk

if I type ls I obtain:

Code:
grub rescue> ls
(hd0) (hd0,gpt5) (hd0,gpt4) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1) (hd1)
hd1 is the new hard disk that I inserted (previous disk reported failure).

How can I solve this?
OS is ubuntu 12.04
I use software raid (mdadm)

thank you
 
Old 03-04-2017, 11:57 AM   #2
circus78
Member
 
Registered: Dec 2011
Posts: 273

Original Poster
Rep: Reputation: Disabled
If I type:

ls (hd0,gtp1) (or even gpt2... gpt5)

I obtain:

"unknown filesystem"

Last edited by circus78; 03-04-2017 at 11:59 AM. Reason: incomplete
 
Old 03-04-2017, 12:25 PM   #3
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,101
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
I guess since you replied. The zero reply rule does not apply to my post. So here goes nothing.

My guess. Your servers do not go online. Hence the 12.04 LTS which eol'd back in 2014.


Anyhows. what does a live cd run with a parted -l or fdisk -l command say about what file system and partion layout is? A a blkid command for UUID numbers? Since you say

Quote:
I obtain:

"unknown filesystem"
I don't run raid and what problem you have is kinda out of my league on answering.
But I figured since the zero reply was busted. What the heck is the harm in trying some answer?

http://www.supergrubdisk.org/

If my post is out of line. Then just ignore this. Sorry.

Last edited by rokytnji; 03-04-2017 at 12:29 PM.
 
1 members found this post helpful.
Old 03-04-2017, 12:43 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,642
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
Well, don't forget that grub numbers devices from zero while Linux usually numbers them from one.
 
Old 03-04-2017, 01:38 PM   #5
circus78
Member
 
Registered: Dec 2011
Posts: 273

Original Poster
Rep: Reputation: Disabled
Hi, according to command output, it seems that hd0 is "fine", because grub is able to see partitions (gpt1, gpt2, and so on..)
hd1 shows no partition at all because it is a new disk (that makes perfectly sense).

Since this is raid1, I MUST be able to boot with only 1 disk (if grub has been installed on both disks, of course).

Anyway, I can't browse file system on "good" hard disk.. I need help with this.
Thank you!

Last edited by circus78; 03-04-2017 at 01:56 PM. Reason: my mistake
 
Old 03-04-2017, 07:45 PM   #6
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
You have to load grub2 file system modules such as

insmod part_gpt
insmod ext2

at the grub command line if you are using extn. Without these modules grub can't understand the file system and the partition format. These two modules are in all of the boot targets I have.
 
2 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
[SOLVED] changing GRUB from an external hard disk to the internal hard disk of my lap eco123 Linux - Newbie 2 05-15-2010 12:20 PM
Installing GRUB in another disk problem, GRUB Hangs in boot caosxxi Linux - General 7 08-26-2009 01:55 PM
Install grub on a USB hard disk (not disk on key) zvivered Linux - Embedded & Single-board computer 4 07-22-2009 10:30 PM
LXer: Super GRUB Disk--A GRUB Repair Utility LXer Syndicated Linux News 0 09-20-2008 10:20 PM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:16 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