0 Mitglieder und 1 Gast betrachten dieses Thema.
invalid or corrupt kernel image
Generating grub.cfg ...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.6.8-030608-genericFound initrd image: /boot/initrd.img-3.6.8-030608-genericFound linux image: /boot/vmlinuz-3.2.0-60-genericFound initrd image: /boot/initrd.img-3.2.0-60-genericFound linux image: /boot/vmlinuz-3.2.0-59-genericFound initrd image: /boot/initrd.img-3.2.0-59-genericFound linux image: /boot/vmlinuz-3.2.0-58-genericFound initrd image: /boot/initrd.img-3.2.0-58-genericFound linux image: /boot/vmlinuz-3.2.0-57-genericFound initrd image: /boot/initrd.img-3.2.0-57-genericFound linux image: /boot/vmlinuz-3.2.0-56-genericFound initrd image: /boot/initrd.img-3.2.0-56-genericFound memtest86+ image: /boot/memtest86+.binFound Ubuntu 12.04.4 LTS (12.04) on /dev/sdb1done
sudo grub-install /dev/sda
sudo update-grub
bernd@bernd-desktop ~ $ sudo grub-install /dev/sda[sudo] password for bernd: Installation finished. No error reported.bernd@bernd-desktop ~ $
Generating grub.cfg ...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.6.8-030608-genericFound initrd image: /boot/initrd.img-3.6.8-030608-genericFound linux image: /boot/vmlinuz-3.2.0-60-genericFound initrd image: /boot/initrd.img-3.2.0-60-genericFound linux image: /boot/vmlinuz-3.2.0-59-genericFound initrd image: /boot/initrd.img-3.2.0-59-genericFound linux image: /boot/vmlinuz-3.2.0-58-genericFound initrd image: /boot/initrd.img-3.2.0-58-genericFound linux image: /boot/vmlinuz-3.2.0-57-genericFound initrd image: /boot/initrd.img-3.2.0-57-genericFound linux image: /boot/vmlinuz-3.2.0-56-genericFound initrd image: /boot/initrd.img-3.2.0-56-genericFound memtest86+ image: /boot/memtest86+.binFound Ubuntu 12.04.4 LTS (12.04) on /dev/sdb1donebernd@bernd-deskt
sudo fdisk -l
sudo fdisk -l 2>/dev/null | egrep "Disk /|/dev/" | sed "s#^/dev/#Part /dev/#" | awk '{print $2}' | sed 's/://' | xargs -n1 -IX sudo sh -c "hexdump -v -s 0x80 -n 2 -e '2/1 \"%x\" \"\\n\"' X | xargs -n1 -IY sh -c \"case \"Y\" in '48b4') echo X: GRUB 2 v1.96 ;; 'aa75' | '5272') echo X: GRUB Legacy ;; '7c3c') echo X: GRUB 2 v1.97 oder v1.98 ;; '020') echo X: GRUB 2 v1.99 ;; *) echo X: Kein GRUB Y ;; esac\""
mount
sudo blkid
cat /etc/fstab
bernd@bernd-desktop ~ $ sudo fdisk -l[sudo] password for bernd: Disk /dev/sda: 2000.4 GB, 2000398934016 bytes255 Köpfe, 63 Sektoren/Spur, 243201 Zylinder, zusammen 3907029168 SektorenEinheiten = Sektoren von 1 × 512 = 512 BytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesFestplattenidentifikation: 0x000bda5f Gerät boot. Anfang Ende Blöcke Id System/dev/sda1 * 2048 3799193599 1899595776 83 Linux/dev/sda3 3799193600 3907028991 53917696 82 Linux Swap / SolarisDisk /dev/sdb: 160.0 GB, 160000000000 bytes255 Köpfe, 63 Sektoren/Spur, 19452 Zylinder, zusammen 312500000 SektorenEinheiten = Sektoren von 1 × 512 = 512 BytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesFestplattenidentifikation: 0x000270c1 Gerät boot. Anfang Ende Blöcke Id System/dev/sdb1 * 2048 93460479 46729216 83 Linux/dev/sdb2 295759870 312498175 8369153 5 Erweiterte/dev/sdb3 93460480 295757823 101148672 83 Linux/dev/sdb5 295759872 312498175 8369152 82 Linux Swap / SolarisPartitionstabelleneinträge sind nicht in Platten-ReihenfolgeWarnung: GPT (GUID-Partitionstabelle) auf '/dev/sdd' erkannt! Das Hilfsprogramm Fdisk unterstützt GPT nicht. Verwenden Sie GNU Parted.Platte /dev/sdd: 4051 MByte, 4051697152 Byte255 Köpfe, 63 Sektoren/Spur, 492 Zylinder, zusammen 7913471 SektorenEinheiten = Sektoren von 1 × 512 = 512 BytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesFestplattenidentifikation: 0x3a40baa2 Gerät boot. Anfang Ende Blöcke Id System/dev/sdd1 * 0 1501183 750592 0 Leer/dev/sdd2 1477252 1481603 2176 ef EFI (FAT-12/16/32)bernd@bernd-desktop ~ $
bernd@bernd-desktop ~ $ sudo fdisk -l 2>/dev/null | egrep "Disk /|/dev/" | sed "s#^/dev/#Part /dev/#" | awk '{print $2}' | sed 's/://' | xargs -n1 -IX sudo sh -c "hexdump -v -s 0x80 -n 2 -e '2/1 \"%x\" \"\\n\"' X | xargs -n1 -IY sh -c \"case \"Y\" in '48b4') echo X: GRUB 2 v1.96 ;; 'aa75' | '5272') echo X: GRUB Legacy ;; '7c3c') echo X: GRUB 2 v1.97 oder v1.98 ;; '020') echo X: GRUB 2 v1.99 ;; *) echo X: Kein GRUB Y ;; esac\""[sudo] password for bernd: [sudo] password for bernd: /dev/sda: GRUB 2 v1.99/dev/sda1: GRUB 2 v1.99/dev/sda3: Kein GRUB 00/dev/sdb: GRUB 2 v1.99/dev/sdb1: GRUB 2 v1.99/dev/sdb2: Kein GRUB 00/dev/sdb3: Kein GRUB 00/dev/sdb5: Kein GRUB 00/dev/sdd: Kein GRUB f7e1hexdump: /dev/sdd1: Datei oder Verzeichnis nicht gefundenhexdump: /dev/sdd2: Datei oder Verzeichnis nicht gefundenbernd@bernd-desktop ~ $
bernd@bernd-desktop ~ $ mount/dev/sda1 on / type ext4 (rw,errors=remount-ro)proc on /proc type proc (rw,noexec,nosuid,nodev)sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)none on /sys/fs/fuse/connections type fusectl (rw)none on /sys/kernel/debug type debugfs (rw)none on /sys/kernel/security type securityfs (rw)udev on /dev type devtmpfs (rw,mode=0755)devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)none on /run/shm type tmpfs (rw,nosuid,nodev)binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)gvfs-fuse-daemon on /home/bernd/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=bernd)/dev/sr0 on /media/ISOIMAGE type iso9660 (ro,nosuid,nodev,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500,uhelper=udisks)bernd@bernd-desktop ~ $
bernd@bernd-desktop ~ $ sudo blkid/dev/sda3: UUID="668b8339-4f43-4c38-bad3-b9d8ee2da2c7" TYPE="swap" /dev/sdb1: UUID="1669902f-1e90-42a8-bfe4-46f870dbfe20" TYPE="ext4" /dev/sdb3: LABEL="/home" UUID="601c07f6-ce8b-4272-830a-2319641af9c7" SEC_TYPE="ext2" TYPE="ext3" /dev/sda1: UUID="d4e7dba6-9a2c-4125-953b-6b48e3cd5731" TYPE="ext4" /dev/sdb5: UUID="668b8339-4f43-4c38-bad3-b9d8ee2da2c7" TYPE="swap" /dev/sr0: LABEL="ISOIMAGE" TYPE="iso9660" /dev/sdd: LABEL="Ubuntu 12.04.4 LTS amd64" TYPE="iso9660" bernd@bernd-desktop ~ $
bernd@bernd-desktop ~ $ cat /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>proc /proc proc nodev,noexec,nosuid 0 0# / was on /dev/sdb1 during installationUUID=d4e7dba6-9a2c-4125-953b-6b48e3cd5731 / ext4 errors=remount-ro 0 1# swap was on /dev/sdb5 during installationUUID=668b8339-4f43-4c38-bad3-b9d8ee2da2c7 none swap sw 0 0
sudo grub-install /dev/sdb
Code: [Auswählen]/dev/sda3: UUID="668b8339-4f43-4c38-bad3-b9d8ee2da2c7" TYPE="swap" /dev/sdb5: UUID="668b8339-4f43-4c38-bad3-b9d8ee2da2c7" TYPE="swap"
/dev/sda3: UUID="668b8339-4f43-4c38-bad3-b9d8ee2da2c7" TYPE="swap" /dev/sdb5: UUID="668b8339-4f43-4c38-bad3-b9d8ee2da2c7" TYPE="swap"
error: no such device: 4cc9c0b3-2dda-.......
sudo parted -l
sudo apt-get install parted
bernd@bernd-desktop ~ $ sudo parted -l[sudo] password for bernd: Modell: ATA SAMSUNG HD204UI (scsi)Festplatte /dev/sda: 2000GBSektorgröße (logisch/physisch): 512B/512BPartitionstabelle: msdosNummer Anfang Ende Größe Typ Dateisystem Flags 1 1049kB 1945GB 1945GB primary ext4 boot 3 1945GB 2000GB 55,2GB primary linux-swap(v1)Modell: ATA Maxtor 6L160M0 (scsi)Festplatte /dev/sdb: 160GBSektorgröße (logisch/physisch): 512B/512BPartitionstabelle: msdosNummer Anfang Ende Größe Typ Dateisystem Flags 1 1049kB 47,9GB 47,9GB primary ext4 boot 3 47,9GB 151GB 104GB primary ext3 2 151GB 160GB 8570MB extended 5 151GB 160GB 8570MB logical linux-swap(v1)Warnung: Kann /dev/sr1 nicht zum Schreiben öffnen (Das Dateisystem ist nurlesbar). /dev/sr1 wurde nur lesbar geöffnet.Fehler: Partitionen ausserhalb der Festplatte sind nicht möglich! bernd@bernd-desktop ~ $
bernd@bernd-desktop ~ $ sudo update-grub[sudo] password for bernd: Generating grub.cfg ...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.6.8-030608-genericFound initrd image: /boot/initrd.img-3.6.8-030608-genericFound linux image: /boot/vmlinuz-3.2.0-60-genericFound initrd image: /boot/initrd.img-3.2.0-60-genericFound linux image: /boot/vmlinuz-3.2.0-59-genericFound initrd image: /boot/initrd.img-3.2.0-59-genericFound linux image: /boot/vmlinuz-3.2.0-58-genericFound initrd image: /boot/initrd.img-3.2.0-58-genericFound linux image: /boot/vmlinuz-3.2.0-57-genericFound initrd image: /boot/initrd.img-3.2.0-57-genericFound linux image: /boot/vmlinuz-3.2.0-56-genericFound initrd image: /boot/initrd.img-3.2.0-56-genericFound memtest86+ image: /boot/memtest86+.bindonebernd@bernd-desktop ~ $