Решено: grub error out disk (ни в какую (дебиан сид))
Модераторы: Warderer, Модераторы разделов
-
Stanislav Potapchik
- Сообщения: 271
- ОС: Debian, Ubuntu, Mint
Решено: grub error out disk
пробовал переустановить grub через лайв сд- мимо
пробовал загрузится через рескуе-консоль груба - не находит linux.mod в /boot/grub и всё заканчивается
но диск работает от лайв-загрузчика и даже обновляется. не пойму, где ошибаюсь.
пробовал загрузится через рескуе-консоль груба - не находит linux.mod в /boot/grub и всё заканчивается
но диск работает от лайв-загрузчика и даже обновляется. не пойму, где ошибаюсь.
-
sash-kan
- Администратор
- Сообщения: 13939
- Статус: oel ngati kameie
- ОС: GNU
Re: Решено: grub error out disk
что пишет grub-install?
Писать безграмотно - значит посягать на время людей, к которым мы адресуемся, а потому совершенно недопустимо в правильно организованном обществе. © Щерба Л. В., 1957
при сбоях форума см.блог
при сбоях форума см.блог
-
Stanislav Potapchik
- Сообщения: 271
- ОС: Debian, Ubuntu, Mint
Re: Решено: grub error out disk
в том то и дело, что переустанавливается и ошибок не пишет, а при перезагрузке опять out disk
-
t.t
- Бывший модератор
- Сообщения: 7390
- Статус: думающий о вечном
- ОС: Debian, LMDE
Re: Решено: grub error out disk
Давайте по порядку. Вывод fdisk -l и точную команду grub-install со всеми параметрами и выводом.
¡иɯʎdʞ ин ʞɐʞ 'ɐнɔɐdʞǝdu qнεиж
-
Stanislav Potapchik
- Сообщения: 271
- ОС: Debian, Ubuntu, Mint
Re: Решено: grub error out disk
Код: Выделить всё
sabayonuser@sabayon ~ $ sudo fdisk -l
Disk /dev/sda: 60.0 GB, 60021399040 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x53307796
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1284 10313698+ 83 Linux
/dev/sda2 1285 1545 2096482+ 82 Linux swap / Solaris
/dev/sda3 1546 7297 46202940 83 LinuxКод: Выделить всё
sabayonuser@sabayon ~ $ sudo mount /dev/sda1 /mnt
sabayonuser@sabayon ~ $ sudo mount --bind /dev /mnt/dev
sabayonuser@sabayon ~ $ sudo mount --bind /proc /mnt/proc
sabayonuser@sabayon ~ $ sudo chroot /mnt
root@sabayon:/# grub-install /dev/sda
Installation finished. No error reported.
root@sabayon:/# update-grub2
Generating grub.cfg ...
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
Found background image: moreblue-orbit-grub.png
Found linux image: /boot/vmlinuz-2.6.32-3-686
Found initrd image: /boot/initrd.img-2.6.32-3-686
done-
t.t
- Бывший модератор
- Сообщения: 7390
- Статус: думающий о вечном
- ОС: Debian, LMDE
Re: Решено: grub error out disk
С grub2 никогда плотно не работал, но с виду всё нормально (может быть, кто-то более опытный в этом деле подскажет). А загрузка точно с sda производится?
¡иɯʎdʞ ин ʞɐʞ 'ɐнɔɐdʞǝdu qнεиж
-
Stanislav Potapchik
- Сообщения: 271
- ОС: Debian, Ubuntu, Mint
-
-AR-
- Сообщения: 52
- ОС: Debian SID
Re: Решено: grub error out disk
Листинг /boot/grub/grub.cfg выложи.
-
Stanislav Potapchik
- Сообщения: 271
- ОС: Debian, Ubuntu, Mint
Re: Решено: grub error out disk
Код: Выделить всё
07:02:19@lexx4:~$ cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
insmod reiserfs
set root='(/dev/sda,1)'
search --no-floppy --fs-uuid --set ad4459d7-7e77-4ee3-b4a9-9e6f7570de02
if loadfont /usr/share/grub/unicode.pf2; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm; then true; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod reiserfs
set root='(/dev/sda,1)'
search --no-floppy --fs-uuid --set ad4459d7-7e77-4ee3-b4a9-9e6f7570de02
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod reiserfs
set root='(/dev/sda,1)'
search --no-floppy --fs-uuid --set ad4459d7-7e77-4ee3-b4a9-9e6f7570de02
insmod png
if background_image /boot/grub/moreblue-orbit-grub.png; then
set color_normal=black/black
set color_highlight=magenta/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, with Linux 2.6.32-3-686" --class debian --class gnu-linux --class gnu --class os {
insmod reiserfs
set root='(/dev/sda,1)'
search --no-floppy --fs-uuid --set ad4459d7-7e77-4ee3-b4a9-9e6f7570de02
echo Loading Linux 2.6.32-3-686 ...
linux /boot/vmlinuz-2.6.32-3-686 root=UUID=ad4459d7-7e77-4ee3-b4a9-9e6f7570de02 ro quiet
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.32-3-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-3-686 (recovery mode)" --class debian --class gnu-linux --class gnu --class os {
insmod reiserfs
set root='(/dev/sda,1)'
search --no-floppy --fs-uuid --set ad4459d7-7e77-4ee3-b4a9-9e6f7570de02
echo Loading Linux 2.6.32-3-686 ...
linux /boot/vmlinuz-2.6.32-3-686 root=UUID=ad4459d7-7e77-4ee3-b4a9-9e6f7570de02 ro single
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.32-3-686
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###-
-AR-
- Сообщения: 52
- ОС: Debian SID
Re: Решено: grub error out disk
Хммм, странно, что груб2 обозначил диски (разделы) как sda,1 , вроде он должен делать это так set root='(hd0,1)' . Для примера выложу свой конфиг и разметку дисков.
Код:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4e384e38
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2611 20972826 7 HPFS/NTFS
/dev/sda2 2612 19457 135315495 5 Extended
/dev/sda5 2612 5222 20972826 83 Linux
/dev/sda6 5223 19457 114342606 83 LinuxКод:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set b4b3bcf3-f6ea-4821-a217-37066a6b76ec
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set b4b3bcf3-f6ea-4821-a217-37066a6b76ec
set locale_dir=($root)/boot/grub/locale
set lang=ru
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, with Linux 2.6.32-3-686" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set b4b3bcf3-f6ea-4821-a217-37066a6b76ec
echo Loading Linux 2.6.32-3-686 ...
linux /boot/vmlinuz-2.6.32-3-686 root=UUID=b4b3bcf3-f6ea-4821-a217-37066a6b76ec ro quiet
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.32-3-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-3-686 (recovery mode)" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set b4b3bcf3-f6ea-4821-a217-37066a6b76ec
echo Loading Linux 2.6.32-3-686 ...
linux /boot/vmlinuz-2.6.32-3-686 root=UUID=b4b3bcf3-f6ea-4821-a217-37066a6b76ec ro single
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.32-3-686
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_otheros ###
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
menuentry "Windows Vista (loader)" {
set root=(hd0,1)
search --no-floppy --fs-uuid --set 106892a968928d5a
chainloader +1
}
### END /etc/grub.d/30_otheros ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
-
Stanislav Potapchik
- Сообщения: 271
- ОС: Debian, Ubuntu, Mint
Re: Решено: grub error out disk
прошу прощения, что не отписался сразу.
различия на лице. спасибо всем.
но вопрос в след теме
почему диск с неправильной записью в /boot/grub/grub.cfg запросто заводится через юсб подключение?
Код: Выделить всё
set root='(/dev/sda,1)'
search --no-floppy --fs-uuid --set ad4459d7-7e77-4ee3-b4a9-9e6f7570deКод: Выделить всё
set root='(hd0,5)'
search --no-floppy --fs-uuid --set b4b3bcf3-f6ea-4821-a217-37066a6b76ecразличия на лице. спасибо всем.
но вопрос в след теме
почему диск с неправильной записью в /boot/grub/grub.cfg запросто заводится через юсб подключение?
-
arkhnchul
- Сообщения: 2284
- Статус: Толчковый инженер
- ОС: Debian, Fedora
-
Stanislav Potapchik
- Сообщения: 271
- ОС: Debian, Ubuntu, Mint
Re: Решено: grub error out disk
после сегоднешнего обновления:
эта пять!
Код: Выделить всё
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda1 / reiserfs notail,noatime 0 1
UUID=ad4459d7-7e77-4ee3-b4a9-9e6f7570de02 / reiserfs notail,noatime 0 1
# /dev/hda2 none swap sw 0 0
UUID=9b3bf186-891d-4964-bf60-300c1c124a1d none swap sw 0 0
# /dev/hda3 /home reiserfs defaults 0 2
UUID=c3d2f5f1-ce57-41df-bd62-bcbb4f6d0b3f /home reiserfs defaults 0 2
# /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/cdrom1 /media/cdrom0 udf,iso9660 user,noauto 0 0
#/dev/hdd1 /home/stanislav/Video ext4 defaults 0 2
UUID=9a7fdd8d-75ff-4173-aa10-36aca2287857 /home/stanislav/Video ext4 defaults 0 2эта пять!