GRUB, error: hd0 out of disk

Questions about Grub, the liveCD and the installer
Forum rules
Before you post please read this

GRUB, error: hd0 out of disk

Postby josealb77 on Sun Nov 27, 2011 10:36 am

Hello,
I boot the linuxmint-201109-xfce-dvd-64bit in live-dvd, then I install it, reboot, and get this message:
GRUB loading…
Welcome to GRUB!
error: hd0 out of disk.
Entering recue mode…
grub rescue>


I've got two HDD, a serial ATA with windows 7 and two more partition for games and files, and an ATA HDD with a swap partition, a linux mint ext4 one and finally an ext4 partition for /home. In the BIOs I've got selected the serial as first HDD and the ATA (a Maxtor HDD), as second HDD. In order to boot linux I've got to access to the boot menu (pressing F8 during the BIOS booting), but this is this way because I prefer it so.

Recently I installed the gnome version of linux mint (linuxmint-201109-gnome-dvd-64bit), and happened the same, I reinstalled it and was solved by itself, but with the xfce version I've already installed 4 times but it isn't solved by itself.

During the instalation with the installer I formated the 3 partitions (swap, / and /home) and selected the mounting points that way. Selected GRUB to be installed in /dev/sdb (the ATA HDD, sda it's the serial ATA, I want this to be that way because I want to leave the serial HDD untouched and whenever I had to use linux boot it with the BIOS' F8 (boot) menu).

I've followed these steps from the webpage https://help.ubuntu.com/community/Grub2 but I finish with the same error message:
GRUB 2 Troubleshooting Preparation

GRUB loading…
Welcome to GRUB!
error: hd0 out of disk.
Entering recue mode…
grub rescue> set
prefix=(hd0,msdos2)/boot/grub
root=hd0,msdos2
grub rescue> ls
(hd0) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (hd1) (hd1,msdos7) (hd1,msdos6) (hd1,msdos2) (hd1,msdos1) (cd)
grub rescue>ls (hd0,msdos2)/
./ ../ lost+found/ home/ bin/ boot/ dev/ etc/ lib/ lib64 media/ mnt/ opt/ proc/ root/ run sbin/ selinux/ srv/ sys/ tmp/ usr/ var/ initrd.img vmlinuz
grub rescue> ls (hd0,msdos2)/boot
./ ../ boot/ grub/ System.map-2.6.39-2-amd64 config-2.6.39-2-amd64 initrd.img-2.6.39-2-amd64 vmlinuz-2.6.39-2-amd64
grub rescue> ls (hd0,msdos2)/boot/grub
(lots of files .mod; grub.cfg; .img; etc...)

Rescue Mode (''grub rescue>'') Booting

grub rescue> set prefix=(hd0,msdos2)/boot/grub
grub rescue> set root=(hd0,msdos2)
grub rescue> insmod normal
error: hd0 out of disk
grub rescue> insmod (hd0,msdos2)/boot/grub/normal.mod
error: hd0 our of disk

What can I do?
josealb77
Level 1
Level 1
 
Posts: 40
Joined: Sun Nov 27, 2011 9:50 am

Linux Mint is funded by ads and donations.
 

Re: GRUB, error: hd0 out of disk

Postby Gerd50 on Sun Nov 27, 2011 7:16 pm

You can try... start your live system, then in the terminal run

Code: Select all
sudo mount /dev/sdb /mnt

This should put you in command of your Xfce install on sdb. Then

Code: Select all
apt-get update

Code: Select all
apt-get --reinstall install grub-common grub-pc os-prober

Code: Select all
grub-setup /dev/sdb

Code: Select all
exit

Code: Select all
sudo reboot
I believe in everything, except humans.

LM9, Debian Testing Xfce, Debian Sid Xfce - CPU/Amd64 2,6Ghz, Graphics/Nvidia 9600 GT, Sound/SB Audigy4 emu10K1
User avatar
Gerd50
Level 5
Level 5
 
Posts: 738
Joined: Wed Jul 22, 2009 3:42 pm
Location: Fishtown, Germany

Re: GRUB, error: hd0 out of disk

Postby josealb77 on Mon Nov 28, 2011 11:13 am

Thank you Gerd50, but this is what happens:

Code: Select all
mint@mint ~ $ sudo mount /dev/sdb /mnt
mount: you must specify the filesystem type
mint@mint ~ $

I thought you meant /dev/sdb2 (the linux mint partition in the HDD ( / )) so I followed this way (logged as root):
Code: Select all
mint mint # mount /dev/sdb2 /mnt
mint mint # apt-get update
Get:1 http://security.debian.org testing/updates InRelease [39.2 kB]
Get:2 http://debian.linuxmint.com testing InRelease [135 kB]                                                                                 
Hit http://security.debian.org testing/updates/main amd64 Packages                                                                           
Hit http://security.debian.org testing/updates/contrib amd64 Packages                                               
Hit http://security.debian.org testing/updates/non-free amd64 Packages                                             
Ign http://security.debian.org testing/updates/contrib TranslationIndex                                             
Ign http://security.debian.org testing/updates/main TranslationIndex                                               
Ign http://security.debian.org testing/updates/non-free TranslationIndex                                           
Get:3 http://debian.linuxmint.com testing/main amd64 Packages/DiffIndex [2,038 B]                                                         
Ign http://security.debian.org testing/updates/contrib Translation-en_US                                                                   
Ign http://security.debian.org testing/updates/contrib Translation-en                                     
Ign http://security.debian.org testing/updates/main Translation-en_US                                     
Ign http://security.debian.org testing/updates/main Translation-en                                       
Ign http://security.debian.org testing/updates/non-free Translation-en_US                                 
Ign http://security.debian.org testing/updates/non-free Translation-en                                   
Get:4 http://debian.linuxmint.com testing/contrib amd64 Packages/DiffIndex [2,023 B]                     
Get:5 http://debian.linuxmint.com testing/non-free amd64 Packages/DiffIndex [2,023 B]                               
Ign http://debian.linuxmint.com testing/contrib TranslationIndex                                         
Get:6 http://debian.linuxmint.com testing/main TranslationIndex [2,185 B]                                 
Ign http://debian.linuxmint.com testing/non-free TranslationIndex                                         
Get:7 http://debian.linuxmint.com testing/main amd64 Packages [7,293 kB]                                 
Ign http://www.debian-multimedia.org testing InRelease                                                                                 
Get:8 http://www.debian-multimedia.org testing Release.gpg [198 B]                                                                     
Ign http://packages.linuxmint.com debian InRelease                                           
Get:9 http://www.debian-multimedia.org testing Release [29.4 kB]
Get:10 http://packages.linuxmint.com debian Release.gpg [198 B]                           
Get:11 http://www.debian-multimedia.org testing/main amd64 Packages/DiffIndex [2,023 B]       
Get:12 http://www.debian-multimedia.org testing/non-free amd64 Packages/DiffIndex [2,023 B]                                                 
Ign http://www.debian-multimedia.org testing/main TranslationIndex                                                                           
Ign http://www.debian-multimedia.org testing/non-free TranslationIndex                                                                       
Get:13 http://packages.linuxmint.com debian Release [12.1 kB]                                                                               
Get:14 http://www.debian-multimedia.org testing/main amd64 Packages [72.5 kB]                                                               
Get:15 http://www.debian-multimedia.org testing/non-free amd64 Packages [4,248 B]                                                           
Get:16 http://packages.linuxmint.com debian/main amd64 Packages [9,892 B]                                                                   
Get:17 http://packages.linuxmint.com debian/upstream amd64 Packages [5,192 B]                                                               
Get:18 http://packages.linuxmint.com debian/import amd64 Packages [19.3 kB]                                                                 
Ign http://packages.linuxmint.com debian/import TranslationIndex                                                                             
Ign http://packages.linuxmint.com debian/main TranslationIndex                                                                               
Ign http://packages.linuxmint.com debian/upstream TranslationIndex                                                                           
Ign http://www.debian-multimedia.org testing/main Translation-en_US                                                                         
Ign http://www.debian-multimedia.org testing/main Translation-en                                                                             
Ign http://www.debian-multimedia.org testing/non-free Translation-en_US                                                                     
Ign http://www.debian-multimedia.org testing/non-free Translation-en                                                                         
Get:19 http://debian.linuxmint.com testing/contrib amd64 Packages [63.0 kB]                                                                 
Get:20 http://debian.linuxmint.com testing/non-free amd64 Packages [113 kB]                                                                 
Ign http://packages.linuxmint.com debian/import Translation-en_US                                                                           
Ign http://packages.linuxmint.com debian/import Translation-en                                                                               
Ign http://packages.linuxmint.com debian/main Translation-en_US                                                                             
Ign http://packages.linuxmint.com debian/main Translation-en                                                                                 
Ign http://packages.linuxmint.com debian/upstream Translation-en_US                                                                         
Ign http://packages.linuxmint.com debian/upstream Translation-en                                                                             
Ign http://debian.linuxmint.com testing/contrib Translation-en_US                                                                           
Ign http://debian.linuxmint.com testing/contrib Translation-en                                                                               
Ign http://debian.linuxmint.com testing/non-free Translation-en_US                                                                           
Ign http://debian.linuxmint.com testing/non-free Translation-en                                                                             
Fetched 7,808 kB in 14s (549 kB/s)                                                                                                           
Reading package lists... Done


First error found:
Code: Select all
mint mint # apt-get --reinstall install grub-common grub-pc os-prober
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  grub-pc-bin grub2-common
Suggested packages:
  multiboot-doc grub-emu xorriso desktop-base
The following packages will be upgraded:
  grub-common grub-pc grub-pc-bin grub2-common
4 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 425 not upgraded.
Need to get 3,582 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://debian.linuxmint.com/latest/ testing/main grub-pc amd64 1.99-11 [92.7 kB]
Get:2 http://debian.linuxmint.com/latest/ testing/main grub-pc-bin amd64 1.99-11 [815 kB]
Get:3 http://debian.linuxmint.com/latest/ testing/main grub2-common amd64 1.99-11 [94.0 kB]
Get:4 http://debian.linuxmint.com/latest/ testing/main grub-common amd64 1.99-11 [2,555 kB]
Get:5 http://debian.linuxmint.com/latest/ testing/main os-prober amd64 1.47 [24.9 kB]                                                       
Fetched 3,582 kB in 13s (270 kB/s)                                                                                                           
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 130668 files and directories currently installed.)
Preparing to replace grub-pc 1.99-8 (using .../grub-pc_1.99-11_amd64.deb) ...
Unpacking replacement grub-pc ...
Preparing to replace grub-pc-bin 1.99-8 (using .../grub-pc-bin_1.99-11_amd64.deb) ...
Unpacking replacement grub-pc-bin ...
Preparing to replace grub2-common 1.99-8 (using .../grub2-common_1.99-11_amd64.deb) ...
Unpacking replacement grub2-common ...
Preparing to replace grub-common 1.99-8 (using .../grub-common_1.99-11_amd64.deb) ...
Unpacking replacement grub-common ...
Preparing to replace os-prober 1.47 (using .../os-prober_1.47_amd64.deb) ...
Unpacking replacement os-prober ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Setting up grub-common (1.99-11) ...
Installing new version of config file /etc/grub.d/20_linux_xen ...
Setting up grub2-common (1.99-11) ...
Setting up grub-pc-bin (1.99-11) ...
Setting up grub-pc (1.99-11) ...
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Setting up os-prober (1.47) ...
Errors were encountered while processing:
 grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)

Second error:
Code: Select all
mint mint # grub-setup /dev/sdb
Segmentation fault
mint mint #

Try with /dev/sdb2 but...
Code: Select all
mint mint # grub-setup /dev/sdb2
Segmentation fault
mint mint #


Reboot but nothing is solved.
josealb77
Level 1
Level 1
 
Posts: 40
Joined: Sun Nov 27, 2011 9:50 am

Re: GRUB, error: hd0 out of disk

Postby Gerd50 on Mon Nov 28, 2011 1:48 pm

Try again with:

Code: Select all
sudo mount /dev/sdb2 /mnt

Code: Select all
mount -o bind /dev /mnt/sdb2/dev


Then the steps i described above - apt-get update and so on.
I believe in everything, except humans.

LM9, Debian Testing Xfce, Debian Sid Xfce - CPU/Amd64 2,6Ghz, Graphics/Nvidia 9600 GT, Sound/SB Audigy4 emu10K1
User avatar
Gerd50
Level 5
Level 5
 
Posts: 738
Joined: Wed Jul 22, 2009 3:42 pm
Location: Fishtown, Germany

Re: GRUB, error: hd0 out of disk

Postby josealb77 on Tue Nov 29, 2011 11:10 am

I tried mount /dev/sdb2 /mnt as root, but I got "mount: mount point /mnt/sdb2/dev does not exist" so I tried "mount -o bind /dev /mnt/dev" and no errors were returned:
Code: Select all
mint mint # mount /dev/sdb2 /mnt
mint mint # mount -o bind /dev /mnt/sdb2/dev
mount: mount point /mnt/sdb2/dev does not exist
mint mint # mount -o bind /dev /mnt/dev

Nevertheless, later I got the same result "apt-get update" worked well but "apt-get --reinstall install grub-common grub-pc os-prober" a grub-pc error was returned (seems like trying to solve one trouble we've found another one):
Code: Select all
mint mint # apt-get update
Get:1 http://security.debian.org testing/updates InRelease [39.2 kB]
Ign http://www.debian-multimedia.org testing InRelease                         
Get:2 http://www.debian-multimedia.org testing Release.gpg [198 B]             
Ign http://packages.linuxmint.com debian InRelease                             
Get:3 http://www.debian-multimedia.org testing Release [29.4 kB]               
Get:4 http://debian.linuxmint.com testing InRelease [135 kB]                   
Get:5 http://www.debian-multimedia.org testing/main amd64 Packages/DiffIndex [2,023 B]
Get:6 http://packages.linuxmint.com debian Release.gpg [198 B]                 
Hit http://security.debian.org testing/updates/main amd64 Packages             
Get:7 http://www.debian-multimedia.org testing/non-free amd64 Packages/DiffIndex [2,023 B]
Ign http://www.debian-multimedia.org testing/main TranslationIndex             
Ign http://www.debian-multimedia.org testing/non-free TranslationIndex         
Hit http://security.debian.org testing/updates/contrib amd64 Packages         
Hit http://security.debian.org testing/updates/non-free amd64 Packages         
Ign http://security.debian.org testing/updates/contrib TranslationIndex       
Ign http://security.debian.org testing/updates/main TranslationIndex           
Ign http://security.debian.org testing/updates/non-free TranslationIndex       
Get:8 http://www.debian-multimedia.org testing/main amd64 Packages [72.5 kB]   
Get:9 http://packages.linuxmint.com debian Release [12.1 kB]                   
Get:10 http://www.debian-multimedia.org testing/non-free amd64 Packages [4,248 B]
Get:11 http://packages.linuxmint.com debian/main amd64 Packages [9,892 B]     
Get:12 http://packages.linuxmint.com debian/upstream amd64 Packages [5,192 B] 
Get:13 http://packages.linuxmint.com debian/import amd64 Packages [19.3 kB]   
Ign http://packages.linuxmint.com debian/import TranslationIndex               
Ign http://packages.linuxmint.com debian/main TranslationIndex                 
Ign http://packages.linuxmint.com debian/upstream TranslationIndex             
Get:14 http://debian.linuxmint.com testing/main amd64 Packages/DiffIndex [2,038 B]
Ign http://security.debian.org testing/updates/contrib Translation-en_US       
Ign http://security.debian.org testing/updates/contrib Translation-en
Ign http://security.debian.org testing/updates/main Translation-en_US
Ign http://www.debian-multimedia.org testing/main Translation-en_US 
Ign http://www.debian-multimedia.org testing/main Translation-en     
Ign http://security.debian.org testing/updates/main Translation-en             
Ign http://security.debian.org testing/updates/non-free Translation-en_US     
Ign http://www.debian-multimedia.org testing/non-free Translation-en_US
Ign http://www.debian-multimedia.org testing/non-free Translation-en           
Ign http://security.debian.org testing/updates/non-free Translation-en         
Get:15 http://debian.linuxmint.com testing/contrib amd64 Packages/DiffIndex [2,023 B]
Get:16 http://debian.linuxmint.com testing/non-free amd64 Packages/DiffIndex [2,023 B]
Ign http://debian.linuxmint.com testing/contrib TranslationIndex
Get:17 http://debian.linuxmint.com testing/main TranslationIndex [2,185 B]
Ign http://debian.linuxmint.com testing/non-free TranslationIndex
Get:18 http://debian.linuxmint.com testing/main amd64 Packages [7,293 kB]
Ign http://packages.linuxmint.com debian/import Translation-en_US
Ign http://packages.linuxmint.com debian/import Translation-en
Ign http://packages.linuxmint.com debian/main Translation-en_US               
Ign http://packages.linuxmint.com debian/main Translation-en                   
Ign http://packages.linuxmint.com debian/upstream Translation-en_US           
Ign http://packages.linuxmint.com debian/upstream Translation-en               
Get:19 http://debian.linuxmint.com testing/contrib amd64 Packages [63.0 kB]   
Get:20 http://debian.linuxmint.com testing/non-free amd64 Packages [113 kB]   
Ign http://debian.linuxmint.com testing/contrib Translation-en_US             
Ign http://debian.linuxmint.com testing/contrib Translation-en                 
Ign http://debian.linuxmint.com testing/non-free Translation-en_US             
Ign http://debian.linuxmint.com testing/non-free Translation-en               
Fetched 7,808 kB in 13s (571 kB/s)                                             
Reading package lists... Done
mint mint # apt-get --reinstall install grub-common grub-pc os-prober
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  grub-pc-bin grub2-common
Suggested packages:
  multiboot-doc grub-emu xorriso desktop-base
The following packages will be upgraded:
  grub-common grub-pc grub-pc-bin grub2-common
4 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 425 not upgraded.
Need to get 3,582 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://debian.linuxmint.com/latest/ testing/main grub-pc amd64 1.99-11 [92.7 kB]
Get:2 http://debian.linuxmint.com/latest/ testing/main grub-pc-bin amd64 1.99-11 [815 kB]
Get:3 http://debian.linuxmint.com/latest/ testing/main grub2-common amd64 1.99-11 [94.0 kB]
Get:4 http://debian.linuxmint.com/latest/ testing/main grub-common amd64 1.99-11 [2,555 kB]
Get:5 http://debian.linuxmint.com/latest/ testing/main os-prober amd64 1.47 [24.9 kB]
Fetched 3,582 kB in 5s (676 kB/s)
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 130668 files and directories currently installed.)
Preparing to replace grub-pc 1.99-8 (using .../grub-pc_1.99-11_amd64.deb) ...
Unpacking replacement grub-pc ...
Preparing to replace grub-pc-bin 1.99-8 (using .../grub-pc-bin_1.99-11_amd64.deb) ...
Unpacking replacement grub-pc-bin ...
Preparing to replace grub2-common 1.99-8 (using .../grub2-common_1.99-11_amd64.deb) ...
Unpacking replacement grub2-common ...
Preparing to replace grub-common 1.99-8 (using .../grub-common_1.99-11_amd64.deb) ...
Unpacking replacement grub-common ...
Preparing to replace os-prober 1.47 (using .../os-prober_1.47_amd64.deb) ...
Unpacking replacement os-prober ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Setting up grub-common (1.99-11) ...
Installing new version of config file /etc/grub.d/20_linux_xen ...
Setting up grub2-common (1.99-11) ...
Setting up grub-pc-bin (1.99-11) ...
Setting up grub-pc (1.99-11) ...
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Setting up os-prober (1.47) ...
Errors were encountered while processing:
 grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
mint mint # grub-setup /dev/sdb
Segmentation fault
mint mint # grub-setup /dev/sdb2
Segmentation fault
mint mint # grub-setup /mnt
Segmentation fault
josealb77
Level 1
Level 1
 
Posts: 40
Joined: Sun Nov 27, 2011 9:50 am

Re: GRUB, error: hd0 out of disk

Postby Gerd50 on Tue Nov 29, 2011 1:16 pm

hmm, i do not understand why it didn't work. Yesterday you wrote:
I thought you meant /dev/sdb2 (the linux mint partition in the HDD ( / )) so I followed this way (logged as root):
mint mint # mount /dev/sdb2 /mnt

and sdb2 was mounted. The grub reinstall process ended with the message:

Code: Select all
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?)

That should be fixed with:

Code: Select all
mount -o bind /dev /mnt/sdb2/dev

but therefore sdb2 must be mounted as root. The bind device alone can't work.

Another question, do you have enough free space on /dev/sdb for grub? At least you need 100 MB free space for it.
I believe in everything, except humans.

LM9, Debian Testing Xfce, Debian Sid Xfce - CPU/Amd64 2,6Ghz, Graphics/Nvidia 9600 GT, Sound/SB Audigy4 emu10K1
User avatar
Gerd50
Level 5
Level 5
 
Posts: 738
Joined: Wed Jul 22, 2009 3:42 pm
Location: Fishtown, Germany

Re: GRUB, error: hd0 out of disk

Postby josealb77 on Tue Nov 29, 2011 1:40 pm

Code: Select all
do you have enough free space on /dev/sdb for grub? At least you need 100 MB free space for it.

Yes, for sure: 2 GB for swap, 20 GB for / and 130 GB for /home: (GRUB is installed in / isn't it?)
Image

/dev/sdb2 is the HDD /, and here you can see I mount it logged as superuser. After this I can navegate through the HDD / partition mounted in /mnt, so it is mounted in
/mnt.
Code: Select all
mint mint # mount /dev/sdb2 /mnt


Code: Select all
That should be fixed with: mount -o bind /dev /mnt/sdb2/dev

I've pasted here all steps I've made, there wasn't any intermediate command. I boot with the live, opened firefox in order to follow these steps, opened the terminal and made all steps as I've pasted them here.

I hope the fact that I am booting from a 2 GB usb pen drive instead a phisical DVD wont be causing problems.
josealb77
Level 1
Level 1
 
Posts: 40
Joined: Sun Nov 27, 2011 9:50 am

Re: GRUB, error: hd0 out of disk

Postby Gerd50 on Tue Nov 29, 2011 2:23 pm

I think we have to look why this message appeared:

Code: Select all
mount: mount point /mnt/sdb2/dev does not exist

Using your pen drive is ok and there is enough free space for the MBR i think. If you want to know more about MBR read here:

http://en.wikipedia.org/wiki/Master_boot_record

But first i have completely other things to do now :wink:

Edit: Well, after some read the same procedure as above a little bit modified:

Code: Select all
sudo mount /dev/sdb2 /mnt

Code: Select all
mount /proc

Code: Select all
mount /sys

Code: Select all
mount /boot

Code: Select all
mount /tmp

Code: Select all
mount -o bind /dev /mnt/sdb2/dev

the rest as above. If this doesn't help, i have no more idea what to do. Except, is there a rescue/recovery mode on your
pen stick from where you can start your xfce/reinstall grub?
I believe in everything, except humans.

LM9, Debian Testing Xfce, Debian Sid Xfce - CPU/Amd64 2,6Ghz, Graphics/Nvidia 9600 GT, Sound/SB Audigy4 emu10K1
User avatar
Gerd50
Level 5
Level 5
 
Posts: 738
Joined: Wed Jul 22, 2009 3:42 pm
Location: Fishtown, Germany

Re: GRUB, error: hd0 out of disk

Postby josealb77 on Wed Nov 30, 2011 1:38 pm

I don't know why the message haven't been submited and now I'm hurry, but it didn't worked again, the errors showed that /boot isn't in fstab, /dev was correctly mount in /mnt/dev (not in /dev/sdb2/dev), and finished with the same:
Code: Select all
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Setting up os-prober (1.47) ...
Errors were encountered while processing:
 grub-pc

Tomorrow I will post all the steps if you want.
And no recovery/rescue option is in the usb boot menu.
Sorry, I'm late.
josealb77
Level 1
Level 1
 
Posts: 40
Joined: Sun Nov 27, 2011 9:50 am

Re: GRUB, error: hd0 out of disk

Postby josealb77 on Sat Dec 03, 2011 5:31 am

Here is the terminal output complete:

Code: Select all
mint@mint ~ $ sudo passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
mint@mint ~ $ su
Password:
mint mint # mount /dev/sdb2 /mnt
mint mint # mount /proc
mount: proc already mounted
mint mint # mount /sys
mount: sysfs already mounted or /sys busy
mount: according to mtab, sysfs is already mounted on /sys
mint mint # mount /boot
mount: can't find /boot in /etc/fstab or /etc/mtab
mint mint # mount /tmp
mint mint # mount -o bind /dev /mnt/sdb2/dev
mount: mount point /mnt/sdb2/dev does not exist
mint mint # mount -o bind /dev /mnt/dev
mint mint # apt-get update
Get:1 http://security.debian.org testing/updates InRelease [39.2 kB]
Ign http://www.debian-multimedia.org testing InRelease                         
Get:2 http://www.debian-multimedia.org testing Release.gpg [198 B]             
Get:3 http://www.debian-multimedia.org testing Release [29.4 kB]               
Get:4 http://debian.linuxmint.com testing InRelease [135 kB]                   
Get:5 http://www.debian-multimedia.org testing/main amd64 Packages/DiffIndex [2,023 B]
Hit http://security.debian.org testing/updates/main amd64 Packages             
Get:6 http://www.debian-multimedia.org testing/non-free amd64 Packages/DiffIndex [2,023 B]
Ign http://www.debian-multimedia.org testing/main TranslationIndex             
Ign http://www.debian-multimedia.org testing/non-free TranslationIndex         
Hit http://security.debian.org testing/updates/contrib amd64 Packages         
Hit http://security.debian.org testing/updates/non-free amd64 Packages         
Ign http://security.debian.org testing/updates/contrib TranslationIndex       
Ign http://security.debian.org testing/updates/main TranslationIndex           
Ign http://security.debian.org testing/updates/non-free TranslationIndex       
Get:7 http://www.debian-multimedia.org testing/main amd64 Packages [72.5 kB]   
Get:8 http://www.debian-multimedia.org testing/non-free amd64 Packages [3,103 B]
Get:9 http://debian.linuxmint.com testing/main amd64 Packages/DiffIndex [2,038 B]
Ign http://security.debian.org testing/updates/contrib Translation-en_US       
Ign http://security.debian.org testing/updates/contrib Translation-en         
Ign http://security.debian.org testing/updates/main Translation-en_US         
Ign http://security.debian.org testing/updates/main Translation-en             
Ign http://security.debian.org testing/updates/non-free Translation-en_US     
Ign http://www.debian-multimedia.org testing/main Translation-en_US           
Ign http://www.debian-multimedia.org testing/main Translation-en               
Ign http://www.debian-multimedia.org testing/non-free Translation-en_US       
Ign http://www.debian-multimedia.org testing/non-free Translation-en           
Ign http://security.debian.org testing/updates/non-free Translation-en         
Get:10 http://debian.linuxmint.com testing/contrib amd64 Packages/DiffIndex [2,023 B]
Get:11 http://debian.linuxmint.com testing/non-free amd64 Packages/DiffIndex [2,023 B]
Ign http://debian.linuxmint.com testing/contrib TranslationIndex
Get:12 http://debian.linuxmint.com testing/main TranslationIndex [2,185 B]
Ign http://debian.linuxmint.com testing/non-free TranslationIndex
Get:13 http://debian.linuxmint.com testing/main amd64 Packages [7,293 kB]
Ign http://packages.linuxmint.com debian InRelease                             
Get:14 http://packages.linuxmint.com debian Release.gpg [198 B]               
Get:15 http://packages.linuxmint.com debian Release [12.1 kB]                 
Get:16 http://packages.linuxmint.com debian/main amd64 Packages [9,892 B]     
Get:17 http://packages.linuxmint.com debian/upstream amd64 Packages [5,192 B] 
Get:18 http://packages.linuxmint.com debian/import amd64 Packages [19.3 kB]   
Ign http://packages.linuxmint.com debian/import TranslationIndex               
Ign http://packages.linuxmint.com debian/main TranslationIndex                 
Ign http://packages.linuxmint.com debian/upstream TranslationIndex             
Get:19 http://debian.linuxmint.com testing/contrib amd64 Packages [63.0 kB]   
Get:20 http://debian.linuxmint.com testing/non-free amd64 Packages [113 kB]   
Ign http://debian.linuxmint.com testing/contrib Translation-en_US             
Ign http://debian.linuxmint.com testing/contrib Translation-en                 
Ign http://debian.linuxmint.com testing/non-free Translation-en_US             
Ign http://debian.linuxmint.com testing/non-free Translation-en               
Ign http://packages.linuxmint.com debian/import Translation-en_US             
Ign http://packages.linuxmint.com debian/import Translation-en                 
Ign http://packages.linuxmint.com debian/main Translation-en_US               
Ign http://packages.linuxmint.com debian/main Translation-en                   
Ign http://packages.linuxmint.com debian/upstream Translation-en_US           
Ign http://packages.linuxmint.com debian/upstream Translation-en               
Fetched 7,807 kB in 14s (533 kB/s)                                             
Reading package lists... Done
mint mint # apt-get --reinstall install grub-common grub-pc os-prober
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  grub-pc-bin grub2-common
Suggested packages:
  multiboot-doc grub-emu xorriso desktop-base
The following packages will be upgraded:
  grub-common grub-pc grub-pc-bin grub2-common
4 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 425 not upgraded.
Need to get 3,582 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://debian.linuxmint.com/latest/ testing/main grub-pc amd64 1.99-11 [92.7 kB]
Get:2 http://debian.linuxmint.com/latest/ testing/main grub-pc-bin amd64 1.99-11 [815 kB]
Get:3 http://debian.linuxmint.com/latest/ testing/main grub2-common amd64 1.99-11 [94.0 kB]
Get:4 http://debian.linuxmint.com/latest/ testing/main grub-common amd64 1.99-11 [2,555 kB]
Get:5 http://debian.linuxmint.com/latest/ testing/main os-prober amd64 1.47 [24.9 kB]
Fetched 3,582 kB in 5s (697 kB/s)
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 130668 files and directories currently installed.)
Preparing to replace grub-pc 1.99-8 (using .../grub-pc_1.99-11_amd64.deb) ...
Unpacking replacement grub-pc ...
Preparing to replace grub-pc-bin 1.99-8 (using .../grub-pc-bin_1.99-11_amd64.deb) ...
Unpacking replacement grub-pc-bin ...
Preparing to replace grub2-common 1.99-8 (using .../grub2-common_1.99-11_amd64.deb) ...
Unpacking replacement grub2-common ...
Preparing to replace grub-common 1.99-8 (using .../grub-common_1.99-11_amd64.deb) ...
Unpacking replacement grub-common ...
Preparing to replace os-prober 1.47 (using .../os-prober_1.47_amd64.deb) ...
Unpacking replacement os-prober ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Setting up grub-common (1.99-11) ...
Installing new version of config file /etc/grub.d/20_linux_xen ...
Setting up grub2-common (1.99-11) ...
Setting up grub-pc-bin (1.99-11) ...
Setting up grub-pc (1.99-11) ...
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Setting up os-prober (1.47) ...
Errors were encountered while processing:
 grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
mint mint # grub-setup /dev/sdb
Segmentation fault


May it could be a grub configuration problem, but the fact that it had happened it's a trouble that the linux mint developers should fix for the next release, don't you think so? Or is it a grub bug? Or may is it a linux mint bug? Whose fault is it? By the moment I don't think this to be an user fault, because in case the user had made any mistake during the configuration in the installation the installer should warned the user something was wrong before installing, don't you think so?
josealb77
Level 1
Level 1
 
Posts: 40
Joined: Sun Nov 27, 2011 9:50 am

Re: GRUB, error: hd0 out of disk

Postby Gerd50 on Sat Dec 03, 2011 8:11 am

I really don't know why the debian way to install grub don't work for you. The only idea i have is, try the ubuntu way:

http://ubuntuforums.org/showthread.php?p=10095234
I believe in everything, except humans.

LM9, Debian Testing Xfce, Debian Sid Xfce - CPU/Amd64 2,6Ghz, Graphics/Nvidia 9600 GT, Sound/SB Audigy4 emu10K1
User avatar
Gerd50
Level 5
Level 5
 
Posts: 738
Joined: Wed Jul 22, 2009 3:42 pm
Location: Fishtown, Germany

Re: GRUB, error: hd0 out of disk

Postby josealb77 on Sat Dec 03, 2011 1:26 pm

I've tried the Ubuntu way, "grub-install --root-directory=/mnt /dev/sdb" seems to work but if I reboot still get the "error: hd0 out of disk" and doing "grub-setup /dev/sdb" after agrub-install returns the Segmentation fault message again.
About the "is /dev mounted?" message I've found that it's a recognized bug in this page: http://bugs.debian.org/release-critical/debian/all.html
Code: Select all
Package: grub-pc (debian/main).
Maintainer: GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>
  590884 [   M   I] [STU] grub-pc: upgrading with vmlinuz-2.6.32-5-amd64 kernel fails on device detection
  620663 [        ] [S] grub-pc hangs after upgrading lenny to squeezy

But it's supoused to be already solved.

I've changed the 160 GB Maxtor HDD with another Maxtor but 200 GB I had in an external HDD but anything changes, so it's not an HDD problem.

I've tried "Rescatux" y "super grub2 disk", the first does not solve anything and the second not even boot from usb.

I think we've found a grub bug, it's bad configured or installed when linux and grub are installed in a second disk. I'm going to ask in the bug traking system of grub.
josealb77
Level 1
Level 1
 
Posts: 40
Joined: Sun Nov 27, 2011 9:50 am

Re: GRUB, error: hd0 out of disk

Postby spandey on Tue Dec 06, 2011 5:16 am

Why don't you just burn a cd with Supergrub2disk, http://www.supergrubdisk.org/category/download/supergrub2diskdownload/ and boot the pc?
Linux Mint 17 - Mate 64 Bit
spandey
Level 4
Level 4
 
Posts: 439
Joined: Sat Feb 20, 2010 1:23 pm

Re: GRUB, error: hd0 out of disk

Postby josealb77 on Tue Dec 06, 2011 1:02 pm

The appearance of the grub menu instead of "error:hd0 out of disk" was solved with the creation of a /boot partition at the beginning of the disk as I was said in the grub's bugtracker, but I found another problem, any option I choose makes my system reboot before anything could be loaded. Any of the 3 options that appear.
I haven't been answered since then, so by the moment I've changed to try Xubuntu.
Xubuntu works fine, but isn't so fast as Linux Mint is, so I think I will give it a chance in the future, I really liked the XFCE version of Linux Mint.
josealb77
Level 1
Level 1
 
Posts: 40
Joined: Sun Nov 27, 2011 9:50 am

Linux Mint is funded by ads and donations.
 

Return to Installation & Boot

Who is online

Users browsing this forum: No registered users and 5 guests