LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-22-2014, 09:34 PM   #1
prashant.saraf
Member
 
Registered: Mar 2009
Location: Hartford US
Distribution: Ubuntu and Fedora
Posts: 39

Rep: Reputation: 0
No Boot device found error


Hi,

I have this latop with Windows 8.1 and Ubuntu 14.04 with EFI booting.. working like charme till yesterday. on restart I got error saying no boot device found.
In Bios it shows my ssd details.
On live CD it show hdd but did not show any details about any partsion.

when I try boot-repair command I got below report
http://paste.ubuntu.com/9187103/

I tried this command

sudo dd if =/usr/lib/syslinux/mbr.bin of=/dev/sda
but no fixed

Please help me to fix this.

Thanks
Prashant Saraf

Last edited by prashant.saraf; 11-22-2014 at 09:37 PM.
 
Old 11-23-2014, 04:48 AM   #2
AndrewAmmerlaan
LQ Newbie
 
Registered: Feb 2014
Location: Lent
Distribution: Gentoo
Posts: 28

Rep: Reputation: 0
It looks like boot-repair tries to use fdisk, but you have a gpt partition table, and fdisk doesn't support that. I don't know if ubunut has a boot-repair tool for gpt partition tables, but I do know a method to restore the boot loader

Start a terminal on the live-cd and use the following commands

first mount your partitions
Code:
# mount /dev/sdax /mnt/ubuntu        (replace sdax with your root partition)
# mount /dev/sdax /mnt/ubuntu/boot(if you have a separate boot partition than use this command too, and replace sdax with your boot partition)
# mount /dev/sdax /mnt/ubuntu/boot/efi (since you have efi, you need to mount the efi partition as well)
now mount the proc sys and dev folders

Code:
# mount -t proc proc /mnt/ubuntu/proc
# mount --rbind /sys /mnt/ubuntu/sys
# mount --rbind /dev /mnt/ubuntu/dev
now chroot into your ubuntu installation

Code:
# chroot /mnt/ubuntu /bin/bash
# source /etc/profile
# export PS1="(chroot) $PS1"
now you are typing commands into your ubunut instaltion, so now you can install grub with the following command

Code:
# grub2-install --target=x86_64-efi
now generate a grub config file

Code:
#  update-grub2
this command should detect your ubuntu installation, and add an entry to the grub. reboot, and your ubuntu installation should boot fine.

Last edited by AndrewAmmerlaan; 11-23-2014 at 05:00 AM.
 
Old 11-23-2014, 08:24 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Note that boot-repair also tried to use parted - which is gpt aware.
None of the above will work as the disk is unusable in that state.

Using dd to force a MBR onto a gpt disk isn't such a good idea - who knows what resulted from that. Might explain the "Error: Can't have a partition outside the disk!" message though.
gpt maintains a secondary partition header at the end of the disk that might be usable for recovery, but that presumes the SSD itself is still usable.

Last edited by syg00; 11-23-2014 at 08:25 PM. Reason: typo
 
Old 11-23-2014, 11:18 PM   #4
prashant.saraf
Member
 
Registered: Mar 2009
Location: Hartford US
Distribution: Ubuntu and Fedora
Posts: 39

Original Poster
Rep: Reputation: 0
I would not like to risk my data here. can anyone suggest some more options.

Thanks foe Help..

Thanks
Prashant Saraf
 
Old 11-24-2014, 08:08 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,508

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
When using EFI to boot as you were with windows8 and Ubuntu, you should not have boot code in the mbr so using dd to write syslinux boot code to the master boot record didn't help anything. You should have had an EFI partition with both windows and Ubuntu efi boot files. Your boot repair output shows a small part of what is normally shown with that script. Your blkid and parted output don't show any partitions. If you have data on it I would suggest you try to recover it either from the Ubuntu Live CD or something like testdisk.

Were any changes made just prior to this problem occurring?
 
Old 11-24-2014, 07:31 PM   #6
prashant.saraf
Member
 
Registered: Mar 2009
Location: Hartford US
Distribution: Ubuntu and Fedora
Posts: 39

Original Poster
Rep: Reputation: 0
my windows partions has 10GB left so I did windows disk cleanup
and then powercfg –h off to turn off hibernate.
 
Old 12-03-2014, 01:52 PM   #7
prashant.saraf
Member
 
Registered: Mar 2009
Location: Hartford US
Distribution: Ubuntu and Fedora
Posts: 39

Original Poster
Rep: Reputation: 0
Can I please get some help here. my HDD is still crashed. Any way to recover data?
 
Old 12-04-2014, 03:11 AM   #8
AndrewAmmerlaan
LQ Newbie
 
Registered: Feb 2014
Location: Lent
Distribution: Gentoo
Posts: 28

Rep: Reputation: 0
Quote:
Originally Posted by prashant.saraf View Post
Can I please get some help here. my HDD is still crashed. Any way to recover data?
I'm sorry but if you can't access your date using a live-cd, I'm afraid it's lost forever, maybe someone else knows something I don't know, but as far as I know your data is lost.
 
  


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
No suitable device found: no device found for connection System eth0 eribudi Linux - Networking 8 07-07-2014 11:08 AM
NO boot device found !!!! error when tried dual booting asa88 Ubuntu 8 04-07-2010 11:42 AM
No root device found on boot up treydock Linux - Software 6 03-18-2007 01:34 AM
UL 1.0 GRUB: could not find device for /boot: not found or not a block device cma Linux - General 4 12-12-2005 03:35 AM
Xorg error: device not found Ephracis Linux - Software 1 03-23-2005 01:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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