LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-25-2017, 07:43 AM   #1
TheDucksheep
LQ Newbie
 
Registered: Dec 2017
Posts: 1

Rep: Reputation: Disabled
Debian server won't boot after reseating drives (no bootable device)


Hello guys


I have a server with 8 hdds on raid 1 running on Debian.

I ran into a problem, a few weeks ago I was rearranging my drives in my debian file server, I took them all out of the case without taking a picture first...

And now I reseated them back into the case (probably not in the right sata spot where they were before...)

And when I try to boot, I'll get the error "no bootable device found"...

Do any of you know how to fix this. It might be a stupid mistake, but I'm trying to learn :-)

Thank you in advance...
 
Old 12-25-2017, 08:53 AM   #2
davstar
LQ Newbie
 
Registered: Dec 2017
Posts: 1

Rep: Reputation: Disabled
Have you tried turning it on and off again?
 
Old 12-25-2017, 03:42 PM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
It is likely the drive letters have been changed. Boot up your machine using any live distro and find the /dev/sd? your boot sector and OS resides on.

Rather than writing a whole essay while not knowing yet this is the solution, refer to this: https://www.gnu.org/software/grub/ma...dmkconfig.html
and see if it takes you any further.

After this, fstab might or might not mount the root partition correctly. If it is UUID based, it might. If not, you might need to edit /etc/fstab on the root disk to correct this. I am emphasizing root disk because you are running on a live USB. You need to mount this disk the root file system is on and edit /etc/fstab there. Not on the USB.

jlinkels
 
Old 12-26-2017, 05:32 AM   #4
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
from another forum (i hate it when people double-post) i know that there's a RAID problem present.
knowing nothing of raid, all i can offer is a search for "linux raid recovery".
 
Old 12-26-2017, 05:51 AM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
The OP did not state if the boot disk is also on RAID1. It can be because Debian can boot from RAID1.

If "no boot device found" error occurs, no boot device has been found. That is before RAID assembly or repair becomes in picture. Once a boot device has been found and the machine starts to boot, it will try to assemble the RAID. If it cannot, it will start with a degraded RAID, but it will still start.

The most common mistake I have seen in mdadm RAID1 configurations is that during installation it is overlooked to write a boot sector on both disks. Redundancy is there, but no boot redundancy. The problems is minor, because you can boot from a live USB and the RAID will assemble.

RAID5 does not have this problem because you can't boot from RAID5 anyway.

I hope the OP did not have a 4+4 RAID1 configuration with all disks now in random order. That is an interesting problem to state it nicely.

jlinkels
 
Old 12-26-2017, 09:15 AM   #6
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
Quote:
Originally Posted by jlinkels View Post
The OP did not state if the boot disk is also on RAID1.
s/he did so on another forum.
same username, same topic.
 
Old 12-26-2017, 09:44 AM   #7
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
I found and checked the other forum. Some members were so smart to question the type of RAID (hardware RAID, fake RAID or mdadm), something which I overlooked. But fortunately there was at least one member who suggested to boot from a live USB and examine the disk contents. Like I did.

Since the OP does respond on the other forum I assume he will continue to discuss solutions there.

Now I hope it was mdadm he had, because mdadm arrays are virtually indestructible. As in you can hardly damage disks so much that it will not assemble anymore. I mean damaging the contents, not physically.

However... this being a server with probably an installed RAID controller it could have been HW RAID. No idea what the RAID controller with embedded proprietary software has done to disks in the wrong sequence. That is why I hate this proprietary stuff.

OTOH, if the system does not boot, it will let you access the RAID manager from the BIOS. Just for interest I will follow the other forum to see how this develops.

jlinkels
 
Old 12-29-2017, 02:41 PM   #8
_roman_
Member
 
Registered: Dec 2017
Location: _Austro_Bavaria_
Distribution: gentoo / linux mint
Posts: 433

Rep: Reputation: 29
Quote:
Originally Posted by jlinkels View Post

After this, fstab might or might not mount the root partition correctly.
Fstab is parsed much later in the boot process. After root is already mounted by the kernel/initramfs. We have for some reason the real_root kernel parameter which was previous called root. We also utilise dolvm and rootfstype sometimes for this purpose
 
  


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
Ubuntu Server 12.04 - SAS system drive, and won't boot with more than two SATA drives munaye Ubuntu 3 11-04-2013 04:22 PM
With 2 bootable drives in one system, view files on non-boot drive?? lakedude Linux - Newbie 3 11-19-2008 12:00 AM
boot pc from a bootable-iso without a cd or usb-device psytroll Linux - General 1 02-23-2006 01:27 PM
Suse 10 on NetVista won't boot to bootable CD gtennant Linux - General 1 02-14-2006 03:02 PM
'Bootable' CD I burnt won't boot ron1 Linux - Newbie 16 10-31-2003 01:46 PM

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

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

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