Author Topic: boot problem from USB flashdrive after update - newbie question  (Read 950 times)

Offline Matsudaira

  • Newbie
  • *
  • Posts: 4
I have installed Sparky on my ultrabook Samsung NP900X3C on 64GB USB pendrive, as a regular installation (NOT LIVE). I have used graphic installer using practicality default settings except that I have  indicated the USB pendrive to install grub on it (as a drive, not any partition). The installation went smooth and without any problems. After rebooting the grub window appeared on the screen and the system booted (and each time after). As I could recognize most devices have been recognized, e.g., WIFI, Bluetooth, Pad, Special Fn keys, Sound.

Then I have updated the system using the tool "system update". As I could see, the system has updated without any problem. From that time the system does not boot at all. After bios check at starup of the laptop, the booting process stops with the screen wherein there is the bar bios check 100%. The process does not go further to load grub.

How can I restore or reinstall grub.

I have searched this forum, but I could not find the relevant information.

Thanks in advance.
« Last Edit: March 19, 2015, 07:45:05 am by Matsudaira »

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1463
    • SparkyLinux
Re: boot problem from USB flashdrive after update - newbie question
« Reply #1 on: March 19, 2015, 12:41:59 pm »
An easy way to fix grub is: run Sparky Live and use Menu-> System-> Boot-Repair tool to do so.

The problem showed up (probably) during grub upgrading. APT used to ask where the new version of grub has to be installed to.
If you did not choose /dev/sda or so it installs grub to nowhere.
« Last Edit: March 19, 2015, 12:45:11 pm by pavroo »
Nothing is easy as it looks.

Offline Matsudaira

  • Newbie
  • *
  • Posts: 4
Re: boot problem from USB flashdrive after update - newbie question
« Reply #2 on: March 20, 2015, 03:48:01 pm »
It would really be too easy. :)

But to be serious.

I have booted Live session of SparkyLinux. I have then started "Boot repair" tool as suggested by Pavroo . I have followed the instructions. They were quite self-explanatory. At the end I have received the info:

Code: [Select]
FSCK detected. Please use Linux-Secure-Remix (www.sourceforge.net/p/linux-secure) which contains a FSCK-compatible version of this software. This will enable this feature.
and then

Code: [Select]
Operation aborted.
I have searched the Internet a little bit and found that I should run fsck.

So i did that and ran "Boot repair". The result was exactly the same.

I have no clue what I should do next. :)

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1463
    • SparkyLinux
Re: boot problem from USB flashdrive after update - newbie question
« Reply #3 on: March 20, 2015, 05:04:19 pm »
Option 1:
Sparky has older version of Boot-Repair tool preinstalled (I have to upgrade it).
Download Linux-Secure-Remix iso, run it from USB/DVD and use the Boot-Repair tool from the live system.

Option 2:
Run Sparky live again, from the first bootloader window choose "Run from HD". If runs and the installed system will start, run Synaptic, refresh package list and reinstall all Grub packages.

Option 3:
Run Sparky live and upgrade Grub manually.
Mount a partition with root file system of installed system in the live system:
Code: [Select]
sudo mount /dev/sda1 /mntIf you have created separated /boot partition mount it too.
Code: [Select]
sudo mount /dev/sda2 /mnt/bootChange sda1/sda2 depends of your partition numbers.
Mount dev and proc:
Code: [Select]
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
Change root:
Code: [Select]
sudo chroot /mntInstall grub:
Code: [Select]
sudo grub-install /dev/sda
sudo update-grub
Then reboot.
Nothing is easy as it looks.

Offline Matsudaira

  • Newbie
  • *
  • Posts: 4
Re: boot problem from USB flashdrive after update - newbie question
« Reply #4 on: April 11, 2015, 01:28:16 pm »
Just recently I had some time to work on the problem again.

I have chosen the first option, as it seems to be the most simple. I have downloaded boot-repair-disk (I could not find the download button for Remix), and I followed the procedure of repair. I have got the info:

"GPT detected. Please crate a BIOS-Boot partition (>1 MB, unformatted filesystem, bios_grub flag). This can be performed via tools such as Gparted. Then try again"

The true is that I have installed sparky using a manual partitioning with GPT partition table.

I have checked bios of my laptop, and it seems that it is a standard bios, but UEFI compatible. So I have reinstalled the sparky using Bios partition table. I also left 2 MiB of empty unallocated space, before the first partition. The installation went without problems, as I could recognize. The system did not boot from the pendrive. The pendrive has not even been recognized as bootable.

So, the problem is not solved.

Additionally, I have found that the kernel works on only one core of the processor (whereas it has 4 cores). It is, therefore, the next problem to solve.

Unfortunately, I do not have so much time to spent on it. So I decided to give up with the sparky for now.

Thanks to all for help.

« Last Edit: April 12, 2015, 10:20:48 am by Matsudaira »