ubuntuusers.de

Kein Booten von einer externen 3TB-Festplatte mit 4096-Byte-Sektoren

Status: Ungelöst | Ubuntu-Version: Xubuntu 14.04 (Trusty Tahr)
Antworten |

passer-domesticus

Anmeldungsdatum:
25. August 2008

Beiträge: 127

Um Images meines Rechners (u.a. Lenovo T410) bequem ziehen zu können, will ich Xubuntu 14.04.02 auch auf der externen Festplatte installieren. Wenn dann mal ernsthaft was schiefgeht, kann ich von dem System aus Images zurückspielen oder auch Reparaturen vornehmen - so mein Plan.

Es handelt sich um eine 3TB-Festplatte von Intenso. Ursprünglich war sie VFAT-formatiert (eine durchgehende Partition). Die Sektoren sind 4096 Byte groß (nicht 512, wie sonst). Ich habe gelesen, daß bei 2TB Plattenkapazität eine Adressiergrenze mit 512-Bytesektoren ist, die man so wohl überwindet.

Ich hatte von dem Xubuntu 14.04.02 LTS-Stick gebootet. Die Platte hieß in dann /dev/sdb.

Ich habe "Ubuntu ausprobieren" gewählt und später von da aus das System auf der externen Platte installiert. Bei der Frage „Installationsart“ habe ich „anderes machen“ gewählt. Dann habe ich die Platte mit gparted partitioniert und anschließend mit dem Installationsprogramm die Einhängepunkte für / und für /home auf der externen Platte festgelegt. Auch habe ich das Boot-Flag bei /dev/sdb1 gesetzt.

Nachdem ich mit der ganzen Installationsprozedur durch war, kam noch eine Anzeige, daß ich das System jetzt benutzen könnte. Ich habe den Rechner heruntergefahren und neu gestartet und dabei <F12> gedrückt (wie ich es auch zum Booten vom USB-Stick machen mußte), um die Auswahl der Bootgeräte zu bekommen. Aber die externe 3TB-Platte war nicht zur Auswahl angeboten.

Von einer anderen externen Platte mit 1TB Volumen funktioniert das alles (darauf mit Ubuntu 12.04).

Wenn ich danach wieder von der eingebauten Platte /dev/sda1 boote und mir dann die Partition mit der UUID von /dev/sdb1 ansehe, sieht es da so aus, wie auf einer Linux-Systempartition. Es gibt sogar das Verzeichnis /media/verwalter/d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4/boot/grub/ (im Mountpunkt die UUID von /dev/sdb1).

Das System erkennt Folgendes:

verwalter@verwalter-ThinkPad-T410:~$ sudo blkid 
[sudo] password for verwalter: 
/dev/sda1: UUID="504b36d9-83cb-4a5d-8ea8-4c6621c29213" TYPE="ext4" 
/dev/sda2: UUID="d9a6ca16-9f00-4772-8173-d489c2833e32" TYPE="swap" 
/dev/sda3: UUID="2faff3d5-eec1-4af7-9183-c3043eb6337b" TYPE="ext4" 
/dev/sdb1: UUID="d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4" TYPE="ext4" 
/dev/sdb2: UUID="66c95b96-bb94-4ef8-b409-570de28ef937" TYPE="swap" 
/dev/sdb3: UUID="67a844b2-8307-4e1c-8045-d1ea72277688" TYPE="ext4" 
verwalter@verwalter-ThinkPad-T410:~$ 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/cgroup type tmpfs (rw) 
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) 
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755) 
none on /sys/fs/pstore type pstore (rw) 
/dev/sda3 on /home type ext4 (rw) 
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd) 
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=verwalter) 
/dev/sdb1 on /media/verwalter/d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4 type ext4 (rw,nosuid,nodev,uhelper=udisks2) 
/dev/sdb3 on /media/verwalter/67a844b2-8307-4e1c-8045-d1ea72277688 type ext4 (rw,nosuid,nodev,uhelper=udisks2) 

Nach googlen zu dem Problem bin ich doch nicht klüger geworden, jedoch ist sicher, daß sowohl die eingebaute Platte einen "msdos"-Bootsektor hat und die externe 3TB-Platte auch:

verwalter@verwalter-ThinkPad-T410:~$ sudo parted -l 
Modell: ATA FUJITSU MHZ2160B (scsi) 
Festplatte  /dev/sda:  160GB 
Sektorgröße (logisch/physisch): 512B/512B 
Partitionstabelle: msdos 
 
Nummer  Anfang  Ende    Größe   Typ      Dateisystem     Flags 
 1      1049kB  30,4GB  30,4GB  primary  ext4            boot 
 2      30,4GB  51,4GB  21,0GB  primary  linux-swap(v1) 
 3      51,4GB  160GB   109GB   primary  ext4 
 
 
Modell: Intenso USB 3.0 Device (scsi) 
Festplatte  /dev/sdb:  3001GB 
Sektorgröße (logisch/physisch): 4096B/4096B 
Partitionstabelle: msdos 
 
Nummer  Anfang  Ende    Größe   Typ      Dateisystem  Flags 
 1      16,8MB  11,6GB  11,5GB  primary               boot 
 2      11,6GB  17,4GB  5826MB  primary 
 3      17,4GB  3001GB  2983GB  primary 

Der Lenovo T410 ist auch kein UEFI-bootender Rechner, sondern noch einer mit "legacy"-Mechanismen. Bei https://wiki.ubuntuusers.de/GRUB-Umgebung_analysieren?redirect=no#Festplatten-Aufteilung-und-UUID fand ich unter der Überschrift "Bootsektor analysieren" einen Hinweis auf

sudo apt-get install boot-info-script cl-awk

Dieses Programm habe ich installiert und es liefert folgendes RESULTS.txt:

                  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 112 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 112 for .

sda1: __________________________________________________________________________

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

sda2: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda3: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

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

sdb2: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sdb3: __________________________________________________________________________

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

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 Köpfe, 63 Sektoren/Spur, 19457 Zylinder, zusammen 312581808 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048    59,394,047    59,392,000  83 Linux
/dev/sda2          59,394,048   100,351,999    40,957,952  82 Linux swap / Solaris
/dev/sda3         100,352,000   312,580,095   212,228,096  83 Linux


Drive: sdb _____________________________________________________________________
Hinweis: Die Sektorgröße ist 4096 (nicht 512)

Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes
255 Köpfe, 63 Sektoren/Spur, 45600 Zylinder, zusammen 732566646 Sektoren
Einheiten = Sektoren von 1 × 4096 = 4096 Bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1    *          4,096     2,820,095     2,816,000  83 Linux
/dev/sdb2           2,820,096     4,242,431     1,422,336  82 Linux swap / Solaris
/dev/sdb3           4,242,432   732,562,431   728,320,000  83 Linux


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        504b36d9-83cb-4a5d-8ea8-4c6621c29213   ext4       
/dev/sda2        d9a6ca16-9f00-4772-8173-d489c2833e32   swap       
/dev/sda3        2faff3d5-eec1-4af7-9183-c3043eb6337b   ext4       
/dev/sdb1        d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4   ext4       
/dev/sdb2        66c95b96-bb94-4ef8-b409-570de28ef937   swap       
/dev/sdb3        67a844b2-8307-4e1c-8045-d1ea72277688   ext4       

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

Device           Mount_Point              Type       Options

/dev/sda1        /                        ext4       (rw,errors=remount-ro)
/dev/sda3        /home                    ext4       (rw)
/dev/sdb1        /media/verwalter/d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4 ext4       (rw,nosuid,nodev,uhelper=udisks2)
/dev/sdb3        /media/verwalter/67a844b2-8307-4e1c-8045-d1ea72277688 ext4       (rw,nosuid,nodev,uhelper=udisks2)


=========================== sda1/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='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  504b36d9-83cb-4a5d-8ea8-4c6621c29213
else
  search --no-floppy --fs-uuid --set=root 504b36d9-83cb-4a5d-8ea8-4c6621c29213
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=de_DE
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
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
### 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-504b36d9-83cb-4a5d-8ea8-4c6621c29213' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	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  504b36d9-83cb-4a5d-8ea8-4c6621c29213
	else
	  search --no-floppy --fs-uuid --set=root 504b36d9-83cb-4a5d-8ea8-4c6621c29213
	fi
	linux	/boot/vmlinuz-3.13.0-61-generic root=UUID=504b36d9-83cb-4a5d-8ea8-4c6621c29213 ro  quiet splash $vt_handoff
	initrd	/boot/initrd.img-3.13.0-61-generic
}
submenu 'Erweiterte Optionen für Ubuntu' $menuentry_id_option 'gnulinux-advanced-504b36d9-83cb-4a5d-8ea8-4c6621c29213' {
	menuentry 'Ubuntu, mit Linux 3.13.0-61-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-61-generic-advanced-504b36d9-83cb-4a5d-8ea8-4c6621c29213' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		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  504b36d9-83cb-4a5d-8ea8-4c6621c29213
		else
		  search --no-floppy --fs-uuid --set=root 504b36d9-83cb-4a5d-8ea8-4c6621c29213
		fi
		echo	'Linux 3.13.0-61-generic wird geladen …'
		linux	/boot/vmlinuz-3.13.0-61-generic root=UUID=504b36d9-83cb-4a5d-8ea8-4c6621c29213 ro  quiet splash $vt_handoff
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/boot/initrd.img-3.13.0-61-generic
	}
	menuentry 'Ubuntu, with Linux 3.13.0-61-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-61-generic-recovery-504b36d9-83cb-4a5d-8ea8-4c6621c29213' {
		recordfail
		load_video
		insmod gzio
		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  504b36d9-83cb-4a5d-8ea8-4c6621c29213
		else
		  search --no-floppy --fs-uuid --set=root 504b36d9-83cb-4a5d-8ea8-4c6621c29213
		fi
		echo	'Linux 3.13.0-61-generic wird geladen …'
		linux	/boot/vmlinuz-3.13.0-61-generic root=UUID=504b36d9-83cb-4a5d-8ea8-4c6621c29213 ro recovery nomodeset 
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/boot/initrd.img-3.13.0-61-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='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  504b36d9-83cb-4a5d-8ea8-4c6621c29213
	else
	  search --no-floppy --fs-uuid --set=root 504b36d9-83cb-4a5d-8ea8-4c6621c29213
	fi
	knetbsd	/boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
	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  504b36d9-83cb-4a5d-8ea8-4c6621c29213
	else
	  search --no-floppy --fs-uuid --set=root 504b36d9-83cb-4a5d-8ea8-4c6621c29213
	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 ###
--------------------------------------------------------------------------------

=============================== 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>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=504b36d9-83cb-4a5d-8ea8-4c6621c29213 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda3 during installation
UUID=2faff3d5-eec1-4af7-9183-c3043eb6337b /home           ext4    defaults        0       2
# swap was on /dev/sda2 during installation
UUID=d9a6ca16-9f00-4772-8173-d489c2833e32 none            swap    sw              0       0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)


=========================== 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='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1  d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4
else
  search --no-floppy --fs-uuid --set=root d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4
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=de_DE
  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
### 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-d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd2,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1  d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4
	else
	  search --no-floppy --fs-uuid --set=root d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4
	fi
	linux	/boot/vmlinuz-3.16.0-30-generic root=UUID=d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4 ro  quiet splash $vt_handoff
	initrd	/boot/initrd.img-3.16.0-30-generic
}
submenu 'Erweiterte Optionen für Ubuntu' $menuentry_id_option 'gnulinux-advanced-d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4' {
	menuentry 'Ubuntu, mit Linux 3.16.0-30-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-30-generic-advanced-d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd2,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1  d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4
		else
		  search --no-floppy --fs-uuid --set=root d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4
		fi
		echo	'Linux 3.16.0-30-generic wird geladen …'
		linux	/boot/vmlinuz-3.16.0-30-generic root=UUID=d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4 ro  quiet splash $vt_handoff
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/boot/initrd.img-3.16.0-30-generic
	}
	menuentry 'Ubuntu, with Linux 3.16.0-30-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-30-generic-recovery-d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4' {
		recordfail
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd2,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1  d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4
		else
		  search --no-floppy --fs-uuid --set=root d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4
		fi
		echo	'Linux 3.16.0-30-generic wird geladen …'
		linux	/boot/vmlinuz-3.16.0-30-generic root=UUID=d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4 ro recovery nomodeset 
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/boot/initrd.img-3.16.0-30-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='hd2,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1  d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4
	else
	  search --no-floppy --fs-uuid --set=root d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4
	fi
	knetbsd	/boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
	insmod part_msdos
	insmod ext2
	set root='hd2,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1  d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4
	else
	  search --no-floppy --fs-uuid --set=root d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4
	fi
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Ubuntu 14.04.2 LTS (14.04) (auf /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-504b36d9-83cb-4a5d-8ea8-4c6621c29213' {
	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  504b36d9-83cb-4a5d-8ea8-4c6621c29213
	else
	  search --no-floppy --fs-uuid --set=root 504b36d9-83cb-4a5d-8ea8-4c6621c29213
	fi
	linux /boot/vmlinuz-3.13.0-61-generic root=UUID=504b36d9-83cb-4a5d-8ea8-4c6621c29213 ro quiet splash $vt_handoff
	initrd /boot/initrd.img-3.13.0-61-generic
}
submenu 'Erweiterte Optionen für Ubuntu 14.04.2 LTS (14.04) (auf /dev/sda1)' $menuentry_id_option 'osprober-gnulinux-advanced-504b36d9-83cb-4a5d-8ea8-4c6621c29213' {
	menuentry 'Ubuntu (auf /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.13.0-61-generic--504b36d9-83cb-4a5d-8ea8-4c6621c29213' {
		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  504b36d9-83cb-4a5d-8ea8-4c6621c29213
		else
		  search --no-floppy --fs-uuid --set=root 504b36d9-83cb-4a5d-8ea8-4c6621c29213
		fi
		linux /boot/vmlinuz-3.13.0-61-generic root=UUID=504b36d9-83cb-4a5d-8ea8-4c6621c29213 ro quiet splash $vt_handoff
		initrd /boot/initrd.img-3.13.0-61-generic
	}
	menuentry 'Ubuntu, mit Linux 3.13.0-61-generic (auf /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.13.0-61-generic--504b36d9-83cb-4a5d-8ea8-4c6621c29213' {
		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  504b36d9-83cb-4a5d-8ea8-4c6621c29213
		else
		  search --no-floppy --fs-uuid --set=root 504b36d9-83cb-4a5d-8ea8-4c6621c29213
		fi
		linux /boot/vmlinuz-3.13.0-61-generic root=UUID=504b36d9-83cb-4a5d-8ea8-4c6621c29213 ro quiet splash $vt_handoff
		initrd /boot/initrd.img-3.13.0-61-generic
	}
	menuentry 'Ubuntu, with Linux 3.13.0-61-generic (recovery mode) (auf /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.13.0-61-generic-root=UUID=504b36d9-83cb-4a5d-8ea8-4c6621c29213 ro recovery nomodeset-504b36d9-83cb-4a5d-8ea8-4c6621c29213' {
		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  504b36d9-83cb-4a5d-8ea8-4c6621c29213
		else
		  search --no-floppy --fs-uuid --set=root 504b36d9-83cb-4a5d-8ea8-4c6621c29213
		fi
		linux /boot/vmlinuz-3.13.0-61-generic root=UUID=504b36d9-83cb-4a5d-8ea8-4c6621c29213 ro recovery nomodeset
		initrd /boot/initrd.img-3.13.0-61-generic
	}
}

set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### 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/sdc1 during installation
UUID=d97adc7d-5e5c-49ca-86ce-a9ff7706b4e4 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sdc3 during installation
UUID=67a844b2-8307-4e1c-8045-d1ea72277688 /home           ext4    defaults        0       2
# swap was on /dev/sdc2 during installation
UUID=66c95b96-bb94-4ef8-b409-570de28ef937 none            swap    sw              0       0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)


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

cat: /tmp/BootInfo-cNsVvO6o/Tmp_Log: Datei oder Verzeichnis nicht gefunden
cat: /tmp/BootInfo-cNsVvO6o/Tmp_Log: Datei oder Verzeichnis nicht gefunden

Was fehlt, damit ich doch von der externen 3TB-Platte booten kann?

Moderiert von Cruiz:

Dieses Thema ist verschoben worden. Bitte beachte die als wichtig markierten Themen („Welche Themen gehören hier her und welche nicht?“)!

black_tencate

Avatar von black_tencate

Anmeldungsdatum:
27. März 2007

Beiträge: 11218

Hej passer-domesticus,

warum grub auf sdb meint, es sei auf (hd2,y), ist mir schleierhaft.

Du kannst mal Deine interne Platte booten, dort dann während des grub menu Taste C drücken und folgendes eingeben

  • ls 

    ( sollte (hd0,1), (hd1,1) liefern

dann (jede Zeile jeweils mit abschließen):

  • set root=(hd1,1)
    kernel /vmlinuz root=/dev/sdb
    initrd /initrd.img
    boot

Damit sollte die ext. Platte gebootet werden.

Gruß black tencate

frostschutz

Avatar von frostschutz

Anmeldungsdatum:
18. November 2010

Beiträge: 7770

Wenn du von USB bootest dann ist es eigentlich immer hd0.

black_tencate

Avatar von black_tencate

Anmeldungsdatum:
27. März 2007

Beiträge: 11218

Hej frostschutz,

frostschutz schrieb:

Wenn du von USB bootest dann ist es eigentlich immer hd0.

das sollte so sein, vollkommen richtig, ich glaube aber nicht, daß passer-domesticus so direkt mit dem Hinweis etwas anfangen kann. Wenn das Booten wie beschrieben klappt, dann folgt im laufenden System ein sudo update-grub, bin mir aber nicht sicher, ob das so klappt. Möglicherweise ist er mit einem SGD besser bedient, das sehen wir dann.

Gruß black tencate

passer-domesticus

(Themenstarter)

Anmeldungsdatum:
25. August 2008

Beiträge: 127

Danke, Black-tencate.

Wie kommt man in das Grub-Menü?

Zu Anfang kommt die Anzeige "Think Pad", das ist der Moment, um <F12> zu drücken, um wahrscheinlich vor Grub das Gerät zum Booten auszuwählen.

Wenn ich aber danach c drücke (kommt es auf Groß-Kleinschreibung an?), dann kommen etliche c auf den Bildschirm und dann kommt die Anmeldung mit Benutzer und Paßwort. Das ist vielleicht zu spät.

Wie kann ich die Zeit beeinflussen, die Grub auf mein c wartet und mir sein Menü zeigt?

Gruß passer-domesticus

lionlizard

Avatar von lionlizard

Anmeldungsdatum:
20. September 2012

Beiträge: 6244

Wohnort: Berlin

passer-domesticus schrieb:

Wie kann ich die Zeit beeinflussen, die Grub auf mein c wartet und mir sein Menü zeigt?

Das wird mit in der Datei /etc/default/grub festgelegt. Zeige uns mal den Inhalt dieser Datei hier im codeblock

passer-domesticus

(Themenstarter)

Anmeldungsdatum:
25. August 2008

Beiträge: 127

So sieht /etc/default/grub bei mir aus:

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

black_tencate

Avatar von black_tencate

Anmeldungsdatum:
27. März 2007

Beiträge: 11218

Hej passer-domesticus,

ergänze in der /etc/default/grub (mit root Rechten in einem Editor)

...
GRUB_CMDLINE_LINUX=""
GRUB_TIMEOUT_STYLE=menu

danach ein sudo update-grup. Bei dem nächsten Boot sollte das Menü erscheinen, da kannst Du dann C drücken.

Gruß black tencate

lionlizard

Avatar von lionlizard

Anmeldungsdatum:
20. September 2012

Beiträge: 6244

Wohnort: Berlin

Außerdem am besten den Hidden-timeout ausschalten

GRUB_HIDDEN_TIMEOUT=0
 # GRUB_HIDDEN_TIMEOUT_QUIET=true

passer-domesticus

(Themenstarter)

Anmeldungsdatum:
25. August 2008

Beiträge: 127

grub> ls
(hd0) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)
grub>

mit hd1 wird aber nichts genannt!

Wenn ich dann die unten vorgeschlagenen Befehle mache (wie müssen sie hier genau heißen): Ändert das dann etwas auf der Platte selbst, damit sie künftig gleich bootet?

black_tencate

Avatar von black_tencate

Anmeldungsdatum:
27. März 2007

Beiträge: 11218

Hej passer-domesticus,

passer-domesticus schrieb:

grub> ls
(hd0) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)
grub>

dabei muß die Platte natürlich angestöpselt sein, hier ist jetzt lediglich Deine interne Platte in Betrieb.

Gruß black tencate

frostschutz

Avatar von frostschutz

Anmeldungsdatum:
18. November 2010

Beiträge: 7770

Die externe Platte ist in Grub nur sichtbar (und dann als hd0) wenn du auch tatsächlich von der externen Platte bootest. Andernfalls wird das Gerät vom BIOS gar nicht zur Verfügung gestellt und eigene USB Treiber hat GRUB meines Wissens noch nicht...

passer-domesticus

(Themenstarter)

Anmeldungsdatum:
25. August 2008

Beiträge: 127

Danke, frostschutz,

aber das ist es ja gerade: Auch wenn ich mit der angeschlossenen USB-Platte zu booten versuche (und dazu <F12> im richtigen Moment drücke), bekomme ich dann die externe Platte gar nicht zur Wahl angeboten. Diese Auswahl wird einem vermutlich vom BIOS angeboten.

Einen Xubuntu-USB-Stick bekomme ich dann aber wohl angeboten, wenn der statt der externen Platte steckt.

Es sieht so aus, als würde diese externe Platte für das BIOS so aussehen, wie eine ohne bootbaren Inhalt. Beim Bootvorgang war die externe Platte angeschlossen, dann in der Grubphase C gedrückt, dann:

grub> ls
(hd0) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)
grub>

Das mit C während der Startphase, um das Grub-Menü zu bekommen, das liefert doch den Grub von der eingebauten Festplatte und mit dem Befehl ls habe ich dort wahrscheinlich auch nicht die externe Platte gesehen - oder?

Was nun?

black_tencate

Avatar von black_tencate

Anmeldungsdatum:
27. März 2007

Beiträge: 11218

Hej frostschutz,

frostschutz schrieb:

Die externe Platte ist in Grub nur sichtbar (und dann als hd0) wenn du auch tatsächlich von der externen Platte bootest.

ähh, nöö, entweder, es wird von der externen Platte gebootet, oder, wenn sie im BIOS nicht an erster Stelle steht, kannst Du sie wie beschrieben im grub> sehen.

@passer-domesticus: Evt. ist es für Dich bequemer, mittels SGD in das System auf der Platte zu gelangen

EDIT: dann zieh die interne Platte mal ab, und versuch 's nur mit der externen; das Linux bootet dann aber nur, wenn Du hd2,msdos1 nach hd0,msdos1 editierst.

Gruß black tencate

Bilder

frostschutz

Avatar von frostschutz

Anmeldungsdatum:
18. November 2010

Beiträge: 7770

black tencate schrieb:

ähh, nöö, entweder, es wird von der externen Platte gebootet, oder, wenn sie im BIOS nicht an erster Stelle steht, kannst Du sie wie beschrieben im grub> sehen.

OK, das ist interessant. ☺

Entweder lag ich dann immer falsch oder manche BIOSen verhalten sich einfach anders als andere.

An meiner aktuellen Kiste [allerdings UEFI-fähig, Haswell] ist es tatsächlich so wie du sagst, ich boote von USB Stick (der ist hd0), aber andere USB Sticks erscheinen tatsächlich auch als (hd9), (hd10), usw. ich hatte das bis jetzt immer anders in Erinnerung.

Leider kann ich den umgekehrten Fall (GRUB auf interne Platte, USB-Sichtbarkeit) hier gerade nicht testen.

@passer-domesticus:

Sichere mal die ersten 1-2GB der Platte und dann klatsch ein ISO drauf. Bootet das auch nicht (aber von einem Stick schon), dann mag dein BIOS vielleicht einfach nicht von diesem Gerät booten und fertig. USB Boot ist hakelig...

Wenn du *irgendwas* von der Platte booten kannst dann kriegt man auch Linux hin, die Frage ist dann nur wo der Wurm ist.

Antworten |