LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-22-2016, 06:37 PM   #16
kiyop
Member
 
Registered: Jun 2015
Distribution: Debian, Arch
Posts: 56

Rep: Reputation: Disabled

To yancek,

zoolee4 does not understand correctly and does wrong things. If zoolee4 can correctly generate boot-info URL and if s/he posts it ... we may be able to give a good advice.

I wonder if zoolee4 did not mount separate /boot partition correctly when s/he executed grub-install command on chrooted debian circumstance or if /boot/grub/stage1 is really corrupted.

Last edited by kiyop; 10-22-2016 at 06:57 PM.
 
Old 10-22-2016, 06:47 PM   #17
kiyop
Member
 
Registered: Jun 2015
Distribution: Debian, Arch
Posts: 56

Rep: Reputation: Disabled
Quote:
Originally Posted by zoelee4 View Post
Thank you! I can boot into rescue
What "rescue"? Do you mean "grub rescue>"? Or do you mean "recovery mode" = "Single user mode"?

Or ... did you execute commands on gentoo live?
Or ... did you try to chroot into the installed debian? If so, write the concrete commands you executed to chroot.
Or ... did you try rescue mode on live debian?

Quote:
Originally Posted by zoelee4 View Post
However in recovery there is no boot command.
I guess that you mean "recovery mode" = "Single user mode" on the installed debian. If not, write so.

Quote:
Originally Posted by zoelee4 View Post
Also when I install grub2 I have the same problem, it will get stuck at "The file /boot/grub/stage1 not read correctly.
Execute
Code:
dpkg -l|grep grub
cat /etc/fstab
df
and post the results.

Can you generate boot-info URL and post it?
Read https://help.ubuntu.com/community/Boot-Info

Last edited by kiyop; 10-22-2016 at 07:26 PM.
 
Old 10-23-2016, 10:02 AM   #18
zoelee4
Member
 
Registered: Aug 2016
Distribution: Debian, Ubuntu, BLFS
Posts: 116

Original Poster
Rep: Reputation: Disabled
Hello, firstly I am a noob and I do not know how to generate a boot info url (I don't know what this even is, I would love if you could teach me though ). Here is the output of grub2 install.

Code:
root@localhost:/# apt-get install --reinstall grub2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  grub-efi-amd64-bin lib32ncurses5 lib32tinfo5
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/2,578 B of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 224927 files and directories currently installed.)
Preparing to unpack .../grub2_2.02~beta2-22+deb8u1_amd64.deb ...
Unpacking grub2 (2.02~beta2-22+deb8u1) over (2.02~beta2-22+deb8u1) ...
Setting up grub2 (2.02~beta2-22+deb8u1) ...
Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PackageKit was not provided by any .service files
now here is where I hit the error;

Code:
root@localhost:/# fdisk -l

Disk /dev/nvme0n1: 477 GiB, 512110190592 bytes, 1000215216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0A2CDB5F-2433-4F65-9474-59C5DC16611C

Device             Start        End   Sectors   Size Type
/dev/nvme0n1p1      2048   24578047  24576000  11.7G Windows recovery environmen
/dev/nvme0n1p2  24578048   24782847    204800   100M EFI System
/dev/nvme0n1p3  24782848   24815615     32768    16M Microsoft reserved
/dev/nvme0n1p4  24815616  637167615 612352000   292G Microsoft basic data
/dev/nvme0n1p5 637167616  965863423 328695808 156.8G Linux filesystem
/dev/nvme0n1p6 965863424  997142527  31279104  14.9G Linux swap
/dev/nvme0n1p7 999190528 1000214527   1024000   500M Windows recovery environmen

root@localhost:/# grub-install /dev/nvme0n1
Searching for GRUB installation directory ... found: /boot/grub
The file /boot/grub/stage1 not read correctly.
And lastly I do mean "grub rescue>_" (sorry for the confusion)

Thank you! and sorry for the late reply

Last edited by zoelee4; 10-23-2016 at 10:55 AM.
 
Old 10-23-2016, 10:54 AM   #19
zoelee4
Member
 
Registered: Aug 2016
Distribution: Debian, Ubuntu, BLFS
Posts: 116

Original Poster
Rep: Reputation: Disabled
Okay I figured out that I have to remove normal grub. After removing grub I can reinstall grub2. Here's the output error when I reinstall grub2:
Code:
grub-install /dev/nvme0n1
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
Thanks!
 
Old 10-23-2016, 03:20 PM   #20
zoelee4
Member
 
Registered: Aug 2016
Distribution: Debian, Ubuntu, BLFS
Posts: 116

Original Poster
Rep: Reputation: Disabled
Sorry Kiyop, just saw the link you posted. I will look into that! Thanks
 
Old 10-25-2016, 07:03 PM   #21
kiyop
Member
 
Registered: Jun 2015
Distribution: Debian, Arch
Posts: 56

Rep: Reputation: Disabled
I guess that /dev/nvme0n1p2 is not mounted on /boot/efi. Mount it and try again.
But, you should write how to chroot, otherwise, it may fail again. Without detail info on the situation of your PC and on what you did, I cannot give you good help.
 
Old 10-25-2016, 08:19 PM   #22
zoelee4
Member
 
Registered: Aug 2016
Distribution: Debian, Ubuntu, BLFS
Posts: 116

Original Poster
Rep: Reputation: Disabled
thank you for the help, however I just decided to install fedora. I am having some trouble with that too unfortunately I do not seem to be able to boot the iso from the website. thanks for the help!
 
Old 10-25-2016, 08:40 PM   #23
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by zoelee4 View Post
thank you for the help, however I just decided to install fedora. I am having some trouble with that too unfortunately I do not seem to be able to boot the iso from the website. thanks for the help!
You should start a fresh thread concerning your issue with FC in the Fedora Forum.
 
Old 10-25-2016, 09:12 PM   #24
zoelee4
Member
 
Registered: Aug 2016
Distribution: Debian, Ubuntu, BLFS
Posts: 116

Original Poster
Rep: Reputation: Disabled
My thread is here:http://www.linuxquestions.org/questi...93#post5622993
 
Old 10-25-2016, 09:12 PM   #25
zoelee4
Member
 
Registered: Aug 2016
Distribution: Debian, Ubuntu, BLFS
Posts: 116

Original Poster
Rep: Reputation: Disabled
Thanks!
 
Old 11-07-2016, 04:40 PM   #26
xaxlm
LQ Newbie
 
Registered: Nov 2016
Location: México City
Distribution: Debian & Slackware
Posts: 25

Rep: Reputation: Disabled
Guarda la calma quizá te pueda ayudar...

1 - Monta DVD Debian en "Modo Rescate"

NOTA: debes seleccionar el "modo rescate" en la misma arquitectura en que esta instalada tu distribución.

2 - Sigue los pasos hasta que te pregunte que partición deseas montar y eliges en donde se encuentra grub.
2.1 - El grub no se encuentra en la partición >> volver a intentar con otra partición.
2.2 - El grub se encuentra en la partición. >> Seleccionar "Reinstalar grub"

3 - Enseguida debes teclear la ruta. Normalmente es /dev/sda

NOTA: Sin poner 1.

REINICIAR

Si por alguna razón extraña, ya sea que los gnomos o los rayos solares hacen que tire error, haces lo siguiente sin salir del dvd.

a) Identifica la localización del grub

#fdisk -l

b) Montas la partición en donde "x" es el numero de la partición

#mount /dev/sdax/ /mnt

c) Reinstalas el grub

#grub-install --root-directory=/mnt/ /dev/sda

NOTA: ../sda (sin poner el número)

d) Reiniciar

NOTA: Al reiniciar el sistemas se va a detener 1:30 minutos porque la UUID de swap ha cambiado. Entonces una vez cargado el sistema hacer el ajuste en "fstab" como superusuario.

a) Identifica y copia la UUID actual de la partición swap

#blkid

b) Borra la UUID anterior y pega la UUID actual de la partición swap en fstab

# vim /etc/fstab

# update-grub (aunque no es necesario)

*************************************************************************************
Keep calm ... maybe I can help you ...

1 - Mount Debian DVD in "Rescue Mode"

NOTE: You must select the "rescue mode" in the same architecture in which your distribution is installed.

2 - Follow the steps until I ask you which partition you want to mount and choose where you find grub.
2.1 - The grub is not in the partition >> try again with another partition.
2.2 - The grub is in the partition. >> Select "Reinstall grub"

3 - Next, type the route. Usually it is /dev/sda

NOTE: Without setting 1.

RESTART

If for some strange reason, whether the gnomes or the sun rays make you throw error, you do the following without leaving the dvd.

A) Identify the location of the grub

#fdisk -l

B) Mount the partition where "x" is the number of the partition

#mount /dev/sdax/ /mnt

C) Reinstall the grub

# Grub-install --root-directory = /mnt/ /dev/sda

NOTE: ../sda (without entering the number)

D) Restart

NOTE: Restarting the system will stop 1:30 minutes because the swap UUID has changed. Then once loaded the system make the setting in "fstab" as superuser.

A) Identify and copy the current UUID of the swap partition

#blkid

B) Delete the previous UUID and paste the current UUID of the swap partition in fstab

# Vim /etc/fstab

# Update-grub (although not necessary)

Last edited by xaxlm; 11-07-2016 at 04:44 PM.
 
1 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] Dual boot jessie/mint lvm, grub shows debian and mint, all only boot debian slacker_ Debian 12 03-12-2015 01:13 AM
Need to add Windows 7 boot option to Debian Grub boot loader VRich Linux - Newbie 3 03-05-2012 08:44 AM
Triple boot - Opensuse/Mandriva/Debian - can't boot into Mandriva or Debian Taylor355 Linux - Newbie 3 09-16-2010 07:33 PM
grub issues: dual boot Debian i386 & Debian amd64 ErrorBound Debian 1 03-09-2007 07:41 PM
Dual boot Debian Etch and XP with GRUB - Debian installed First - one HDD bence8810 Debian 11 01-07-2007 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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