[ROZWIĄZANY] co zrobić żeby grub uruchomił system?

Tutaj można zadać pytanie, jeśli Linuksa widzi się pierwszy raz w życiu ;)
Awatar użytkownika
eskimoss
Serdeczny Borsuk
Serdeczny Borsuk
Posty: 188
Rejestracja: 13 maja 2007, 11:38
Płeć: Mężczyzna
Wersja Ubuntu: 16.04
Środowisko graficzne: Inne
Architektura: x86_64

[ROZWIĄZANY] co zrobić żeby grub uruchomił system?

Post autor: eskimoss »

Mialem kopię partycji boot, ale nie udało mi się jej przywrócić. Resztę systemu mam na osobnej partycji. Wobec tego chciałem dopisać zawartość katalogu boot na partycji systemowej. W Gparted nadałem jej flagę boot.
Skorzytsałem z takich poleceń (będąc na innej instalacji):

Kod: Zaznacz cały

sudo mount /dev/sdb1 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sdb
Efekt jest taki, że po starcie właściwego systemu uruchamia się grub i pokazuje

Kod: Zaznacz cały

grub>
W katalogu boot mam teraz podkatalog grub a w nim jeden plik i podkatalogi

Kod: Zaznacz cały

drwxr-xr-x 2 root root  4096 maj 13 14:17 fonts
-rw-r--r-- 1 root root  1024 maj 13 14:17 grubenv
drwxr-xr-x 2 root root 12288 maj 13 14:17 i386-pc
drwxr-xr-x 2 root root  4096 maj 13 14:17 locale
Da się uratować tą instalację?

Co po kolei wpisywać?
Ostatnio zmieniony 14 maja 2015, 18:09 przez eskimoss, łącznie zmieniany 1 raz.
marcin1982
Gibki Gibbon
Gibki Gibbon
Posty: 3209
Rejestracja: 30 wrz 2007, 13:49
Płeć: Mężczyzna

Re: co zrobić żeby grub uruchomił system?

Post autor: marcin1982 »

Gruba zainstaluj przez chroot, nieradnik.

Dobrze by było, gdybyś podał wynik bootinfoscript:
http://sourceforge.net/projects/bootinfoscript/ .

Oczywiście z /etc/fstab musisz usunąć wpis dotyczący poprzedniej - wydzielonej partycji /boot.
Awatar użytkownika
eskimoss
Serdeczny Borsuk
Serdeczny Borsuk
Posty: 188
Rejestracja: 13 maja 2007, 11:38
Płeć: Mężczyzna
Wersja Ubuntu: 16.04
Środowisko graficzne: Inne
Architektura: x86_64

Re: co zrobić żeby grub uruchomił system?

Post autor: eskimoss »

Teraz podpiąłem dyski tak, że sda1 to jest ta partycja gdzie mieści się system z niepełną zawartością /boot/grub/

Kod: Zaznacz cały

                  Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    in partition 129 for .
 => Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    in partition 129 for .

sda1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 14.04.1 LTS
    Boot files:        /etc/fstab

sda2: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  Unknown
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: unknown filesystem type ''

sda6: __________________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: unknown filesystem type ''
mount: unknown filesystem type ''

sda7: __________________________________________________________________________

    File system:       
    Boot sector type:  -
    Boot sector info: 
    Mounting failed:   mount: unknown filesystem type ''
mount: unknown filesystem type ''
mount: unknown filesystem type ''

sdb1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 14.10
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sdb2: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  Unknown
    Boot sector info: 

sdb5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 55,9 GiB, 60021399040 bytes, 117229295 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

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048    23,244,799    23,242,752  83 Linux
/dev/sda2          23,244,800   117,225,473    93,980,674   5 Extended
/dev/sda5          23,244,802    52,543,489    29,298,688  83 Linux
/dev/sda6          52,543,491   117,026,817    64,483,327  83 Linux
/dev/sda7         117,026,819   117,221,377       194,559  83 Linux


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 74,5 GiB, 80025280000 bytes, 156299375 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

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1    *          2,048    35,205,119    35,203,072  83 Linux
/dev/sdb2          35,207,166   156,297,215   121,090,050   5 Extended
/dev/sdb5          35,207,168    58,642,431    23,435,264  83 Linux
/dev/sdb6          58,644,480   156,297,215    97,652,736  83 Linux


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        2b383205-d6e5-4711-adc8-83d841b090c7   ext4       
/dev/sda5                                                          
/dev/sda6                                                          
/dev/sda7                                                          
/dev/sdb1        548d0a90-a349-46b4-8edb-67219ab9bfe4   ext4       
/dev/sdb5        91f0c40c-e683-48d0-a970-0a9dbf4ecbed   ext4       
/dev/sdb6        7ef2a3e3-73a3-4086-bca5-971115220db0   ext4       

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/sda1        /media/boot              ext4       (rw)
/dev/sda1        /media/orange/2b383205-d6e5-4711-adc8-83d841b090c7 ext4       (rw,nodev,nosuid,uhelper=udisks2)
/dev/sda1        /media                   ext4       (rw)
/dev/sda1        /mnt                     ext4       (rw)
/dev/sdb1        /                        ext4       (rw,errors=remount-ro)
/dev/sdb5        /home                    ext4       (rw)
/dev/sdb6        /media/afryka            ext4       (rw)
/dev             /media/dev               none       (rw,bind)


=============================== sda1/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=2b383205-d6e5-4711-adc8-83d841b090c7 /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda7 during installation
UUID=e094f1eb-0ecb-49b3-bafc-de55104b285f /boot           ext4    defaults        0       2
# /home was on /dev/sda5 during installation
UUID=64ade4ae-e2a5-4c19-a463-b9fc8de9f44e /home           ext4    defaults        0       2
#Entry for /dev/sda6 :
UUID=cad64966-275d-4dd2-8b04-e9154061aa27       /media/orange ext4    defaults        0       2
#cdwriter
/dev/cdrom /media/cdrom udf,iso9660 rw,noauto,user,exec,utf8 0 0
--------------------------------------------------------------------------------

=========================== sdb1/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  548d0a90-a349-46b4-8edb-67219ab9bfe4
else
  search --no-floppy --fs-uuid --set=root 548d0a90-a349-46b4-8edb-67219ab9bfe4
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=pl_PL
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=10
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=10
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
#set_background_image "images/tile.png";

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 0,0,0; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
	if [ "${1}" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-548d0a90-a349-46b4-8edb-67219ab9bfe4' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  548d0a90-a349-46b4-8edb-67219ab9bfe4
	else
	  search --no-floppy --fs-uuid --set=root 548d0a90-a349-46b4-8edb-67219ab9bfe4
	fi
	linux	/boot/vmlinuz-3.16.0-23-generic root=UUID=548d0a90-a349-46b4-8edb-67219ab9bfe4 ro  quiet splash $vt_handoff
	initrd	/boot/initrd.img-3.16.0-23-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-548d0a90-a349-46b4-8edb-67219ab9bfe4' {
	menuentry 'Ubuntu, with Linux 3.16.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-23-generic-advanced-548d0a90-a349-46b4-8edb-67219ab9bfe4' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  548d0a90-a349-46b4-8edb-67219ab9bfe4
		else
		  search --no-floppy --fs-uuid --set=root 548d0a90-a349-46b4-8edb-67219ab9bfe4
		fi
		echo	'Loading Linux 3.16.0-23-generic ...'
		linux	/boot/vmlinuz-3.16.0-23-generic root=UUID=548d0a90-a349-46b4-8edb-67219ab9bfe4 ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.16.0-23-generic
	}
	menuentry 'Ubuntu, with Linux 3.16.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-23-generic-recovery-548d0a90-a349-46b4-8edb-67219ab9bfe4' {
		recordfail
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  548d0a90-a349-46b4-8edb-67219ab9bfe4
		else
		  search --no-floppy --fs-uuid --set=root 548d0a90-a349-46b4-8edb-67219ab9bfe4
		fi
		echo	'Loading Linux 3.16.0-23-generic ...'
		linux	/boot/vmlinuz-3.16.0-23-generic root=UUID=548d0a90-a349-46b4-8edb-67219ab9bfe4 ro recovery nomodeset 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.16.0-23-generic
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  548d0a90-a349-46b4-8edb-67219ab9bfe4
	else
	  search --no-floppy --fs-uuid --set=root 548d0a90-a349-46b4-8edb-67219ab9bfe4
	fi
	knetbsd	/boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  548d0a90-a349-46b4-8edb-67219ab9bfe4
	else
	  search --no-floppy --fs-uuid --set=root 548d0a90-a349-46b4-8edb-67219ab9bfe4
	fi
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sdb1/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=548d0a90-a349-46b4-8edb-67219ab9bfe4 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda5 during installation
UUID=91f0c40c-e683-48d0-a970-0a9dbf4ecbed /home           ext4    defaults        0       2
# afryka /dev/sda6
UUID=7ef2a3e3-73a3-4086-bca5-971115220db0 /media/afryka ext4    defaults        0       2
--------------------------------------------------------------------------------

=================== sdb1: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)


======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda2

00000000  0a 20 20 20 20 20 2a 2f  0a 20 20 20 20 6c 6f 67  |.     */.    log|
00000010  46 69 6c 65 43 68 61 6e  67 65 64 3a 20 66 75 6e  |FileChanged: fun|
00000020  63 74 69 6f 6e 28 29 20  7b 0a 20 20 20 20 20 20  |ction() {.      |
00000030  74 68 69 73 2e 6c 6f 61  64 4c 6f 67 46 69 6c 65  |this.loadLogFile|
00000040  28 74 68 69 73 2e 6c 6f  61 64 46 69 6c 65 45 6c  |(this.loadFileEl|
00000050  65 6d 65 6e 74 5f 2e 66  69 6c 65 73 5b 30 5d 29  |ement_.files[0])|
00000060  3b 0a 20 20 20 20 7d 2c  0a 0a 20 20 20 20 2f 2a  |;.    },..    /*|
00000070  2a 0a 20 20 20 20 20 2a  20 41 74 74 65 6d 70 74  |*.     * Attempt|
00000080  73 20 74 6f 20 72 65 61  64 20 66 72 6f 6d 20 74  |s to read from t|
00000090  68 65 20 46 69 6c 65 20  7c 6c 6f 67 46 69 6c 65  |he File |logFile|
000000a0  7c 2e 0a 20 20 20 20 20  2a 2f 0a 20 20 20 20 6c  ||..     */.    l|
000000b0  6f 61 64 4c 6f 67 46 69  6c 65 3a 20 66 75 6e 63  |oadLogFile: func|
000000c0  74 69 6f 6e 28 6c 6f 67  46 69 6c 65 29 20 7b 0a  |tion(logFile) {.|
000000d0  20 20 20 20 20 20 69 66  20 28 6c 6f 67 46 69 6c  |      if (logFil|
000000e0  65 29 20 7b 0a 20 20 20  20 20 20 20 20 74 68 69  |e) {.        thi|
000000f0  73 2e 73 65 74 4c 6f 61  64 46 69 6c 65 53 74 61  |s.setLoadFileSta|
00000100  74 75 73 28 27 4c 6f 61  64 69 6e 67 20 6c 6f 67  |tus('Loading log|
00000110  2e 2e 2e 27 2c 20 74 72  75 65 29 3b 0a 20 20 20  |...', true);.   |
00000120  20 20 20 20 20 76 61 72  20 66 69 6c 65 52 65 61  |     var fileRea|
00000130  64 65 72 20 3d 20 6e 65  77 20 46 69 6c 65 52 65  |der = new FileRe|
00000140  61 64 65 72 28 29 3b 0a  0a 20 20 20 20 20 20 20  |ader();..       |
00000150  20 66 69 6c 65 52 65 61  64 65 72 2e 6f 6e 6c 6f  | fileReader.onlo|
00000160  61 64 20 3d 20 74 68 69  73 2e 6f 6e 4c 6f 61 64  |ad = this.onLoad|
00000170  4c 6f 67 46 69 6c 65 2e  62 69 6e 64 28 74 68 69  |LogFile.bind(thi|
00000180  73 2c 20 6c 6f 67 46 69  6c 65 29 3b 0a 20 20 20  |s, logFile);.   |
00000190  20 20 20 20 20 66 69 6c  65 52 65 61 64 65 72 2e  |     fileReader.|
000001a0  6f 6e 65 72 72 6f 72 20  3d 20 74 68 69 73 2e 6f  |onerror = this.o|
000001b0  6e 4c 6f 61 64 4c 6f 67  46 69 6c 65 45 72 00 fe  |nLoadLogFileEr..|
000001c0  ff ff 83 fe ff ff 02 00  00 00 00 10 bf 01 00 fe  |................|
000001d0  ff ff 05 fe ff ff 02 10  bf 01 00 f0 d7 03 00 00  |................|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200

Unknown BootLoader on sda5

00000000  67 46 69 6c 65 28 65 76  65 6e 74 2e 74 61 72 67  |gFile(event.targ|
00000010  65 74 2e 72 65 73 75 6c  74 2c 20 6c 6f 67 46 69  |et.result, logFi|
00000020  6c 65 2e 6e 61 6d 65 29  3b 0a 20 20 20 20 20 20  |le.name);.      |
00000030  74 68 69 73 2e 73 65 74  4c 6f 61 64 46 69 6c 65  |this.setLoadFile|
00000040  53 74 61 74 75 73 28 72  65 73 75 6c 74 2c 20 66  |Status(result, f|
00000050  61 6c 73 65 29 3b 0a 20  20 20 20 7d 2c 0a 0a 20  |alse);.    },.. |
00000060  20 20 20 2f 2a 2a 0a 20  20 20 20 20 2a 20 53 65  |   /**.     * Se|
00000070  74 73 20 74 68 65 20 6c  6f 61 64 20 66 72 6f 6d  |ts the load from|
00000080  20 66 69 6c 65 20 73 74  61 74 75 73 20 74 65 78  | file status tex|
00000090  74 2c 20 64 69 73 70 6c  61 79 65 64 20 62 65 6c  |t, displayed bel|
000000a0  6f 77 20 74 68 65 20 6c  6f 61 64 20 66 69 6c 65  |ow the load file|
000000b0  0a 20 20 20 20 20 2a 20  62 75 74 74 6f 6e 2c 20  |.     * button, |
000000c0  74 6f 20 7c 74 65 78 74  7c 2e 20 20 41 6c 73 6f  |to |text|.  Also|
000000d0  20 65 6e 61 62 6c 65 73  20 6f 72 20 64 69 73 61  | enables or disa|
000000e0  62 6c 65 73 20 74 68 65  20 6c 6f 61 64 20 62 75  |bles the load bu|
000000f0  74 74 6f 6e 73 20 62 61  73 65 64 20 6f 6e 0a 20  |ttons based on. |
00000100  20 20 20 20 2a 20 74 68  65 20 76 61 6c 75 65 20  |    * the value |
00000110  6f 66 20 7c 69 73 4c 6f  61 64 69 6e 67 7c 2c 20  |of |isLoading|, |
00000120  77 68 69 63 68 20 6d 75  73 74 20 62 65 20 74 72  |which must be tr|
00000130  75 65 20 69 66 20 74 68  65 20 6c 6f 61 64 20 70  |ue if the load p|
00000140  72 6f 63 65 73 73 20 69  73 20 73 74 69 6c 6c 0a  |rocess is still.|
00000150  20 20 20 20 20 2a 20 6f  6e 67 6f 69 6e 67 2c 20  |     * ongoing, |
00000160  61 6e 64 20 66 61 6c 73  65 20 77 68 65 6e 20 74  |and false when t|
00000170  68 65 20 6f 70 65 72 61  74 69 6f 6e 20 68 61 73  |he operation has|
00000180  20 73 74 6f 70 70 65 64  2c 20 72 65 67 61 72 64  | stopped, regard|
00000190  6c 65 73 73 20 6f 66 20  73 75 63 63 65 73 73 0a  |less of success.|
000001a0  20 20 20 20 20 2a 20 6f  66 20 66 61 69 6c 75 72  |     * of failur|
000001b0  65 2e 20 20 41 6c 73 6f  2c 20 77 68 65 6e 20 6c  |e.  Also, when l|
000001c0  6f 61 64 69 6e 67 20 69  73 20 64 6f 6e 65 2c 20  |oading is done, |
000001d0  72 65 70 6c 61 63 65 73  20 74 68 65 20 6c 6f 61  |replaces the loa|
000001e0  64 20 62 75 74 74 6f 6e  20 73 6f 20 74 68 65 0a  |d button so the.|
000001f0  20 20 20 20 20 2a 20 73  61 6d 65 20 66 69 6c 65  |     * same file|
00000200

Unknown BootLoader on sda6

00000000  19 82 98 55 e8 1a 38 e5  a1 74 75 8f 95 90 56 98  |...U..8..tu...V.|
00000010  b3 be f5 d0 07 d4 3e 21  1a 54 d5 b5 91 44 41 b1  |......>!.T...DA.|
00000020  60 2c 55 08 04 00 4e 0a  38 dd 6e aa af 5c 58 99  |`,U...N.8.n..\X.|
00000030  76 28 1a 83 4a 55 52 72  2c f8 71 ed 1d 71 93 04  |v(..JURr,.q..q..|
00000040  92 5a c5 cb c1 7c a1 9b  c9 41 3d 39 1c aa 3b 6b  |.Z...|...A=9..;k|
00000050  11 cc 6c 84 13 ec 33 19  70 61 ae 16 63 50 f4 ab  |..l...3.pa..cP..|
00000060  ff 5f fb c9 8d 74 57 55  63 f4 27 1b 1d b2 58 89  |._...tWUc.'...X.|
00000070  6f a7 54 87 87 09 c0 f5  f5 18 70 89 9f 34 aa 9b  |o.T.......p..4..|
00000080  94 c3 b1 0e 6c f0 5e 52  2c 11 ea ef 40 76 36 cd  |....l.^R,...@v6.|
00000090  fd 6d a7 bf c7 df 72 aa  fd 5c 10 76 aa 7f d6 33  |.m....r..\.v...3|
000000a0  8c ba e8 f3 00 87 53 be  e5 c3 59 80 f0 0e 7d e6  |......S...Y...}.|
000000b0  c5 e7 e9 d2 f7 b2 69 0d  86 79 f0 be db 4e 43 32  |......i..y...NC2|
000000c0  1e 01 fc e7 3e 73 f8 ca  ff 7e ef d6 55 8b 99 23  |....>s...~..U..#|
000000d0  ef e0 24 f8 73 b9 02 d1  81 1d b0 08 0d 1b 9d 14  |..$.s...........|
000000e0  02 f6 b9 c5 3f 2f 5b 6c  9b 8a 19 8d 15 12 d1 f3  |....?/[l........|
000000f0  59 63 bc 8a 67 22 9b ce  6e f5 5d 15 48 00 80 37  |Yc..g"..n.].H..7|
00000100  2f 73 52 a7 c7 90 04 1b  bf 2a f4 bc 8d 66 96 24  |/sR......*...f.$|
00000110  07 04 36 30 01 63 a5 c9  e7 77 00 29 a2 1c c3 b0  |..60.c...w.)....|
00000120  bc e7 bc ef 98 a0 0f a8  72 21 1a 54 b5 b2 13 64  |........r!.T...d|
00000130  71 20 60 2c 48 12 14 02  ad 80 dc eb 8a 95 2f 3b  |q `,H........./;|
00000140  30 e3 8b 88 a4 58 13 b1  76 27 2b f0 fb ba 73 4e  |0....X..v'+...sN|
00000150  27 ab 48 91 44 33 97 ff  9a 41 74 57 a4 40 f8 ce  |'.H.D3...AtW.@..|
00000160  4b 19 8b 82 55 ec c6 1e  33 e8 f7 94 e1 7a 63 52  |K...U...3....zcR|
00000170  ab aa 8f da 6a 2b 6b b9  bf cf 53 bf 2c 18 5e d1  |....j+k...S.,.^.|
00000180  53 22 b2 3c e3 d9 ea 8a  7d 23 ec cb 84 e0 a0 fb  |S".<....}#......|
00000190  9c a1 15 4c 19 dd af aa  72 9d 30 63 d1 62 86 31  |...L....r.0c.b.1|
000001a0  9c 76 f0 59 6a 5d 88 eb  54 3a da df f4 50 0d 66  |.v.Yj]..T:...P.f|
000001b0  a7 36 f8 63 c9 4c fa df  4b 94 cb 09 2e b8 b0 9c  |.6.c.L..K.......|
000001c0  82 8e ba ff 13 26 db 48  4b 15 6a 74 34 14 4b 79  |.....&.HK.jt4.Ky|
000001d0  6d 1c 45 a7 62 ad 59 bb  d7 30 c9 03 4d dd bd ff  |m.E.b.Y..0..M...|
000001e0  8d 68 b9 0c c6 c6 76 ad  77 f7 ea 8e 15 f8 57 52  |.h....v.w.....WR|
000001f0  bb 18 94 3d 8f 71 cc 3d  f5 ae 3b 98 bd d4 23 51  |...=.q.=..;...#Q|
00000200

Unknown BootLoader on sdb2

00000000  12 6e 15 b6 91 36 ae 3a  86 8a e0 87 80 94 d0 49  |.n...6.:.......I|
00000010  25 e0 d4 74 9c 51 ef d7  12 22 23 5d 12 d0 40 cf  |%..t.Q..."#]..@.|
00000020  ae 1c 2a 12 51 d0 94 41  02 7c 7f 94 cb 94 7a f4  |..*.Q..A.|....z.|
00000030  31 ee 68 45 4e 53 12 6e  19 6a 0a e5 15 2d 68 32  |1.hENS.n.j...-h2|
00000040  6e a3 cb a0 76 65 42 88  37 e9 ab 3e 31 9d 20 ce  |n...veB.7..>1. .|
00000050  32 87 04 bd 06 eb 06 f7  55 3c d1 41 a8 5e a5 76  |2.......U<.A.^.v|
00000060  05 52 9a 9a 55 36 40 ab  0d 1d 2d e1 10 b2 20 52  |.R..U6@...-... R|
00000070  14 35 0b ba 52 8a 18 1a  a0 e6 f0 65 06 8e 11 63  |.5..R......e...c|
00000080  30 23 65 8e 87 8b 43 3a  80 c3 46 ce 24 84 c2 81  |0#e...C:..F.$...|
00000090  ce 8b ff fb 92 00 ed 0f  f3 1e 58 3f 03 03 33 72  |..........X?..3r|
000000a0  5b 0a d7 e0 4c 63 6e 4c  89 60 fc 09 8c cd c9 79  |[...LcnL.`.....y|
000000b0  2d 5f 81 31 8d b8 85 49  b2 83 61 57 06 59 cc ac  |-_.1...I..aW.Y..|
000000c0  92 68 a2 6a e8 46 6b a1  72 d6 31 47 0d 0b 1e 04  |.h.j.Fk.r.1G....|
000000d0  52 84 28 23 b0 15 87 6b  a2 9a 90 ac 8d 04 b1 f4  |R.(#...k........|
000000e0  3e 5a 44 04 ea 08 59 6d  53 21 4e 84 c5 bb f8 20  |>ZD...YmS!N.... |
000000f0  7b 16 61 ea 2c b5 12 ae  c4 42 5e 25 7b 19 48 c9  |{.a.,....B^%{.H.|
00000100  62 bd f7 84 81 bc c9 73  2e a5 40 45 65 6b 07 c6  |b......s..@Eek..|
00000110  c7 42 93 34 3a 71 00 c4  94 11 74 d1 5a 90 52 47  |.B.4:q....t.Z.RG|
00000120  91 57 97 d7 8e 9a 7b ab  9a 9c d3 5b 99 ce a9 75  |.W....{....[...u|
00000130  f8 9a 96 2a df 18 fa 74  23 12 db 4a 4e c0 39 34  |...*...t#..JN.94|
00000140  c4 de 37 2a 88 d6 c7 ba  7b af 1b 10 d8 f0 de fa  |..7*....{.......|
00000150  39 78 f9 a8 d4 2e e3 75  2c 21 45 f8 2b 70 c2 0e  |9x.....u,!E.+p..|
00000160  e9 e1 b0 7b 95 29 97 19  12 d5 49 9a 61 dc 91 ef  |...{.)....I.a...|
00000170  d4 df 32 9f 12 c7 45 f6  f9 c1 7b d8 9b 06 05 24  |..2...E...{....$|
00000180  35 34 ce 9f 3a 82 8d d0  3e 9a a2 97 48 e1 21 11  |54..:...>...H.!.|
00000190  90 65 a3 38 35 dd a1 cb  84 6d 05 89 16 8e 37 a5  |.e.85....m....7.|
000001a0  18 43 65 19 fa 37 d1 23  df 5e 2b 0e cb bb 7d fc  |.Ce..7.#.^+...}.|
000001b0  c3 36 a4 ad c3 93 bc cb  c2 73 6f 5a 5e f4 00 fe  |.6.......soZ^...|
000001c0  ff ff 83 fe ff ff 02 00  00 00 00 98 65 01 00 fe  |............e...|
000001d0  ff ff 05 fe ff ff 02 98  65 01 00 18 d2 05 00 00  |........e.......|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200


=============================== StdErr Messages: ===============================

cat: /tmp/BootInfo-CI64aSwW/Tmp_Log: No such file or directory
./bootinfoscript: line 2545: cd: /media/afryka/: No such file or directory

Ten nieradnik niewiele mi pomaga, bo

Kod: Zaznacz cały

sudo chroot /media /bin/bash
chroot: nie udało się uruchomić polecenia „/bin/bash”: Błędny format pliku wykonywalnego
W poradnikach po komendzie

Kod: Zaznacz cały

sudo grub-install --root-directory=/mnt/ /dev/sda
jest

Kod: Zaznacz cały

sudo update-grub
Tylko bez chroota to mi robi update grub na obecnym systemie, a nie na tym, który chcę naprawić.

Tak że stanąłem na tym

Kod: Zaznacz cały

sudo mount /dev/sda1 /media
~$ sudo mount -o bind /proc /media/proc
~$ sudo mount -o bind /sys /media/sys
~$ sudo mount -o bind /dev /media/dev
~$ sudo chroot /media /bin/bash
chroot: nie udało się uruchomić polecenia „/bin/bash”: Błędny format pliku wykonywalnego
Ten grub na zepsutym systemie nie może się odwołać do żadnego kernela, nie ma tam pliku konfiguracji.

Dodam, że wcześniej próbowałem użyć z livecd boot-repair ale bezskutecznie (stąd mogły być jakieś złe UUID)
Ale po ponownym zrobieniu

Kod: Zaznacz cały

sudo grub-install --root-directory=/mnt/ /dev/sda
to powinno się uaktualnić.

Chciałem zrobić to z livecd z chroot ale się pojawił komunikat: device node not found. W efekcie nie da się zrobić update-grub

Czy można skopiować dane z backupu clonezilla partycji boot do katalogu boot na innej partycji?
Ostatnio zmieniony 14 maja 2015, 13:59 przez eskimoss, łącznie zmieniany 2 razy.
marcin1982
Gibki Gibbon
Gibki Gibbon
Posty: 3209
Rejestracja: 30 wrz 2007, 13:49
Płeć: Mężczyzna

Re: co zrobić żeby grub uruchomił system?

Post autor: marcin1982 »

Błędny format pliku wykonywalnego
Nie próbujesz czasem chrootować się za pomocą systemu 32bit do 64bit?
Awatar użytkownika
eskimoss
Serdeczny Borsuk
Serdeczny Borsuk
Posty: 188
Rejestracja: 13 maja 2007, 11:38
Płeć: Mężczyzna
Wersja Ubuntu: 16.04
Środowisko graficzne: Inne
Architektura: x86_64

Re: co zrobić żeby grub uruchomił system?

Post autor: eskimoss »

Niestety problem dalej istnieje.

Nie, użyłem dokładnie tej płyty, z ktorej instalowałem system.
Tym razem obyło się bez zbędnych komunikatów, chroot się udał. Zrobiłem też update-grub. Ale dalej mam w efekcie tylko
grub>

Tak jakby grub nie mógł się odwołać do konkretnego kernela.
grub.cfg wygląda tak

Kod: Zaznacz cały

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2b383205-d6e5-4711-adc8-83d841b090c7
else
  search --no-floppy --fs-uuid --set=root 2b383205-d6e5-4711-adc8-83d841b090c7
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=hidden
    set timeout=0
  # Fallback hidden-timeout code in case the timeout_style feature is
  # unavailable.
  elif sleep --interruptible 0 ; then
    set timeout=0
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
#set_background_image "images/tile.png";

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 0,0,0; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
	if [ "${1}" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
namok
Przebojowy Jelonek
Przebojowy Jelonek
Posty: 1701
Rejestracja: 01 mar 2008, 12:21
Płeć: Mężczyzna
Wersja Ubuntu: 16.04
Środowisko graficzne: Unity
Architektura: x86_64
Kontakt:

Re: co zrobić żeby grub uruchomił system?

Post autor: namok »

Uruchom system z dysku za pomocą supergruba a następnie zainstaluj gruba poleceniem

Kod: Zaznacz cały

sudo grub-install /dev/sda
Na stronie znajdziesz informacje co i jak.
Awatar użytkownika
eskimoss
Serdeczny Borsuk
Serdeczny Borsuk
Posty: 188
Rejestracja: 13 maja 2007, 11:38
Płeć: Mężczyzna
Wersja Ubuntu: 16.04
Środowisko graficzne: Inne
Architektura: x86_64

Re: co zrobić żeby grub uruchomił system?

Post autor: eskimoss »

To nie pomogło, bo mój system był za bardzo zepsuty. Ale pomogło mi oprócz instalacji grub z livecd zainstalowanie/przeinstalowanie kernela. Teraz mam boot na partycji systemowej.

Kod: Zaznacz cały

sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys

lub to (już nie pamiętam) - nie zapisałem notatek, ale montowanie z chroot jest opisane na wielu stronach

kubuntu@kubuntu:~$ sudo mount -t ext4 /dev/sda1 /mnt 
kubuntu@kubuntu:~$ sudo mount -t proc proc /mnt/proc
kubuntu@kubuntu:~$ sudo mount -t sysfs sys /mnt/sys
kubuntu@kubuntu:~$ sudo mount -o bind /dev /mnt/dev


kubuntu@kubuntu:~$ sudo chroot /mnt /bin/bash
root@kubuntu:/# apt-get update

root@kubuntu:/# apt-get install linux-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  plasma-scriptengine-python python-kde4
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-headers-3.13.0-52 linux-headers-3.13.0-52-generic
  linux-headers-generic linux-image-3.13.0-52-generic
  linux-image-extra-3.13.0-52-generic linux-image-generic
Suggested packages:
  fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
The following NEW packages will be installed:
  linux-generic linux-headers-3.13.0-52 linux-headers-3.13.0-52-generic
  linux-headers-generic linux-image-3.13.0-52-generic
  linux-image-extra-3.13.0-52-generic linux-image-generic
0 upgraded, 7 newly installed, 0 to remove and 357 not upgraded.
Need to get 0 B/61.5 MB of archives.
After this operation, 271 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
E: Can not write log (Is /dev/pts mounted?) - openpty (2: No such file or directory)
Selecting previously unselected package linux-image-3.13.0-52-generic.
(Reading database ... 140967 files and directories currently installed.)
Preparing to unpack .../linux-image-3.13.0-52-generic_3.13.0-52.86_amd64.deb ...
Done.
Unpacking linux-image-3.13.0-52-generic (3.13.0-52.86) ...
Selecting previously unselected package linux-image-extra-3.13.0-52-generic.
Preparing to unpack .../linux-image-extra-3.13.0-52-generic_3.13.0-52.86_amd64.deb ...
Unpacking linux-image-extra-3.13.0-52-generic (3.13.0-52.86) ...
Selecting previously unselected package linux-image-generic.
Preparing to unpack .../linux-image-generic_3.13.0.52.59_amd64.deb ...
Unpacking linux-image-generic (3.13.0.52.59) ...
Selecting previously unselected package linux-headers-3.13.0-52.
Preparing to unpack .../linux-headers-3.13.0-52_3.13.0-52.86_all.deb ...
Unpacking linux-headers-3.13.0-52 (3.13.0-52.86) ...
Selecting previously unselected package linux-headers-3.13.0-52-generic.
Preparing to unpack .../linux-headers-3.13.0-52-generic_3.13.0-52.86_amd64.deb ...
Unpacking linux-headers-3.13.0-52-generic (3.13.0-52.86) ...
Selecting previously unselected package linux-headers-generic.
Preparing to unpack .../linux-headers-generic_3.13.0.52.59_amd64.deb ...
Unpacking linux-headers-generic (3.13.0.52.59) ...
Selecting previously unselected package linux-generic.
Preparing to unpack .../linux-generic_3.13.0.52.59_amd64.deb ...
Unpacking linux-generic (3.13.0.52.59) ...
Setting up linux-image-3.13.0-52-generic (3.13.0-52.86) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-52-generic /boot/vmlinuz-3.13.0-52-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-52-generic /boot/vmlinuz-3.13.0-52-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-52-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-52-generic /boot/vmlinuz-3.13.0-52-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-52-generic /boot/vmlinuz-3.13.0-52-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-52-generic /boot/vmlinuz-3.13.0-52-generic
Setting up linux-image-extra-3.13.0-52-generic (3.13.0-52.86) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-52-generic /boot/vmlinuz-3.13.0-52-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-52-generic /boot/vmlinuz-3.13.0-52-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-52-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-52-generic /boot/vmlinuz-3.13.0-52-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-52-generic /boot/vmlinuz-3.13.0-52-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-52-generic /boot/vmlinuz-3.13.0-52-generic
Setting up linux-image-generic (3.13.0.52.59) ...
Setting up linux-headers-3.13.0-52 (3.13.0-52.86) ...
Setting up linux-headers-3.13.0-52-generic (3.13.0-52.86) ...
Setting up linux-headers-generic (3.13.0.52.59) ...
Setting up linux-generic (3.13.0.52.59) ...
root@kubuntu:/# apt-get install linux-headers-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-generic is already the newest version.
linux-headers-generic set to manually installed.
The following packages were automatically installed and are no longer required:
  plasma-scriptengine-python python-kde4
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 357 not upgraded.
root@kubuntu:/# apt-get install linux-image-generic  
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-image-generic is already the newest version.
linux-image-generic set to manually installed.
The following packages were automatically installed and are no longer required:
  plasma-scriptengine-python python-kde4
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 357 not upgraded.
root@kubuntu:/# update-grub
/usr/sbin/grub-mkconfig: 250: /usr/sbin/grub-mkconfig: cannot create /boot/grub/grub.cfg.new: Directory nonexistent
root@kubuntu:/# sudo update-grub
sudo: unable to resolve host kubuntu
/usr/sbin/grub-mkconfig: 250: /usr/sbin/grub-mkconfig: cannot create /boot/grub/grub.cfg.new: Directory nonexistent
root@kubuntu:/# update-grub
/usr/sbin/grub-mkconfig: 250: /usr/sbin/grub-mkconfig: cannot create /boot/grub/grub.cfg.new: Directory nonexistent
root@kubuntu:/# uname -a
Linux kubuntu 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
root@kubuntu:/# sudo mount /dev/sda5 /mnt
sudo: unable to resolve host kubuntu
root@kubuntu:/# sudo mount /dev/sda1 /mnt
sudo: unable to resolve host kubuntu
root@kubuntu:/# mount /dev/sda1 /mnt
mount: /dev/sda1 already mounted or /mnt busy
mount: according to mtab, /dev/sda5 is already mounted on /mnt
root@kubuntu:/# grub-install
Installing for i386-pc platform.
grub-install: error: install device isn't specified.
root@kubuntu:/# grub-install --root-directory=/mnt /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.

root@kubuntu:/# grub-install --recheck /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
root@kubuntu:/# apt-get install --reinstall linux-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  plasma-scriptengine-python python-kde4
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 357 not upgraded.
Need to get 0 B/1,786 B of archives.
After this operation, 0 B of additional disk space will be used.
E: Can not write log (Is /dev/pts mounted?) - openpty (2: No such file or directory)
(Reading database ... 170612 files and directories currently installed.)
Preparing to unpack .../linux-generic_3.13.0.52.59_amd64.deb ...
Unpacking linux-generic (3.13.0.52.59) over (3.13.0.52.59) ...
Setting up linux-generic (3.13.0.52.59) ...
root@kubuntu:/# update-grub
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-3.13.0-52-generic
Found initrd image: /boot/initrd.img-3.13.0-52-generic
Found linux image: /vmlinuz-3.13.0-52-generic
Found initrd image: //initrd.img-3.13.0-52-generic
done
root@kubuntu:/# exit
kubuntu@kubuntu:~$
Przydatne linki:
https://help.ubuntu.com/community/Grub2/Installing
https://help.ubuntu.com/community/Grub2/Setup
http://superuser.com/questions/614257/h ... -in-ubuntu
http://superuser.com/questions/111152/w ... stallation
ODPOWIEDZ

Wróć do „Przedszkole Linuksa”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 71 gości