le_petit
Anmeldungsdatum: 3. Oktober 2006
Beiträge: 57
|
Hallo Forum, ich besitze einen kleinen Homeserver mit 2 Festplatten 1,5TB (Samsung HD154UI). Mainboard ist ein Intel D510MO sowie RAM 4GB. Festplatte 1: Swappartition, Systempartition und Datenpartition
Festplatte 2: Backupfestplatte (1x pro Tag per rsync) Letzte Woche hat mir SMART Lesefehler auf Festplatte 1 angegeben und ich habe mir einen WesternDigital blue 3TB gekauft und bin nach diesem Artikel vorgegangen:
https://wiki.ubuntuusers.de/Ubuntu_umziehen/ Folgendermaßen habe ich vorher die Festplatte formatiert: Partitionstabelle gpt (was mir wahrscheinlich im Nachhinein die Probleme bereitet)
/dev/sda1 swap 4GB /dev/sda2 ext4 / 10GB (Flags: boot,esp) /dev/sda3 ext4 /daten 2,7TB
Bei https://wiki.ubuntuusers.de/Ubuntu_umziehen/#GRUB hatte ich dann Probleme, da "grub-install" nicht funktionierte. Also hab ich nach einiger Recherche die Paritionsreihenfolge wie folgt geändert:
/dev/sda1 grub2core.img 1.00MiB (Flags: bios_grub) /dev/sda4 swap 4GB /dev/sda2 ext4 / 10GB (Flags: boot,esp) /dev/sda3 ext4 /daten 2,7TB
danach hat: funktioniert. Allerdings bekomme ich jetzt beim booten: No bootable device – insert boot disk and press andy key Jetzt weiß ich absolut nicht weiter, was muss ich tun, damit ich den Grub sauber installiert bekomme und ich das System von der 3TB Festplatte gebootet bekomme?
Wo liegt mein Fehler? Viele Grüße,
Christoph
|
le_petit
(Themenstarter)
Anmeldungsdatum: 3. Oktober 2006
Beiträge: 57
|
Hallo tomtomtom, 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629 | Boot Info Script 0.77 [10 June 2018]
============================= Boot Info Summary: ===============================
=> Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 2048
of the same hard drive for core.img. core.img is at this location and
looks for (,gpt2)/boot/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp ext2 part_gpt biosdisk
---------------------------------------------------------------------------
=> No known boot loader is installed in the MBR of /dev/sdb.
sda1: __________________________________________________________________________
File system: BIOS Boot partition
Boot sector type: Grub2's core.img
Boot sector info:
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 18.04.2 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab
/boot/grub/i386-pc/core.img
sda3: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda4: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdb1: __________________________________________________________________________
File system: iso9660
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: /tmp/BootInfo-LRPqIiJW/sdb1: /dev/sdb1 already mounted or mount point busy.
sdb2: __________________________________________________________________________
File system: vfat
Boot sector type: FAT16
Boot sector info: According to the info in the boot sector, sdb2 starts
at sector 0. But according to the info from fdisk,
sdb2 starts at sector 14304. According to the info in
the boot sector, sdb2 has 0 sectors.
Mounting failed: mount: /tmp/BootInfo-LRPqIiJW/sdb2: /dev/sdb2 already mounted or mount point busy.
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 2,7 TiB, 3000592982016 bytes, 5860533168 sectors
Disk model: WDC WD30EZRZ-00Z
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 1 4,294,967,295 4,294,967,295 ee GPT
GUID Partition Table detected.
Partition Attrs Start Sector End Sector # of Sectors System
/dev/sda1 2,048 4,095 2,048 BIOS Boot partition
/dev/sda2 8,194,048 28,674,047 20,480,000 EFI System partition
/dev/sda3 28,674,048 5,860,526,079 5,831,852,032 Data partition (Linux)
/dev/sda4 4,096 8,194,047 8,189,952 Swap partition (Linux)
Attributes: R=Required, N=No Block IO, B=Legacy BIOS Bootable, +=More bits set
Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 1,9 GiB, 2004877312 bytes, 3915776 sectors
Disk model: Stick 2.0 ME
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 * 0 3,489,055 3,489,056 0 Empty
/dev/sdb2 14,304 21,791 7,488 ef EFI (FAT-12/16/32)
/dev/sdb1 overlaps with /dev/sdb2
GUID Partition Table detected, but does not seem to be used.
Partition Attrs Start Sector End Sector # of Sectors System
/dev/sdb1 + R 0 3,488,999 3,489,000 Data partition (Windows/Linux)
/dev/sdb2 + R 14,304 21,791 7,488 Data partition (Windows/Linux)
Attributes: R=Required, N=No Block IO, B=Legacy BIOS Bootable, +=More bits set
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/loop1 squashfs
/dev/loop2 squashfs
/dev/sda1
/dev/sda2 21f21168-2a55-4494-8e5a-8d9a7f6a76d0 ext4 system
/dev/sda3 ac430046-073e-429a-9e9a-ef94ab7e88eb ext4 daten
/dev/sda4 fe8254ca-7f9c-4758-a23e-9ed05ce9894a swap swap
/dev/sdb1 2019-04-16-19-16-56-00 iso9660 Ubuntu-Budgie 19.04 amd64
/dev/sdb2 039E-EF17 vfat
========================= "ls -l /dev/disk/by-id" output: ======================
total 0
lrwxrwxrwx 1 root root 9 Apr 28 16:29 ata-WDC_WD30EZRZ-00Z5HB0_WD-WCC4N4YHJX1J -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 28 16:29 ata-WDC_WD30EZRZ-00Z5HB0_WD-WCC4N4YHJX1J-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 28 16:29 ata-WDC_WD30EZRZ-00Z5HB0_WD-WCC4N4YHJX1J-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 28 16:29 ata-WDC_WD30EZRZ-00Z5HB0_WD-WCC4N4YHJX1J-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Apr 28 16:29 ata-WDC_WD30EZRZ-00Z5HB0_WD-WCC4N4YHJX1J-part4 -> ../../sda4
lrwxrwxrwx 1 root root 9 Apr 28 16:29 usb-USB_Stick_2.0_ME_AA04012900007483-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Apr 28 16:29 usb-USB_Stick_2.0_ME_AA04012900007483-0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Apr 28 16:29 usb-USB_Stick_2.0_ME_AA04012900007483-0:0-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 9 Apr 28 16:29 wwn-0x50014ee210dd6ec4 -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 28 16:29 wwn-0x50014ee210dd6ec4-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 28 16:29 wwn-0x50014ee210dd6ec4-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 28 16:29 wwn-0x50014ee210dd6ec4-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Apr 28 16:29 wwn-0x50014ee210dd6ec4-part4 -> ../../sda4
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sdb /cdrom iso9660 (ro,noatime,nojoliet,check=s,map=n,blocksize=2048)
=========================== sda2/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_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
else
search --no-floppy --fs-uuid --set=root 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
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=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=1
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-21f21168-2a55-4494-8e5a-8d9a7f6a76d0' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
else
search --no-floppy --fs-uuid --set=root 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
fi
linux /boot/vmlinuz-4.15.0-48-generic root=UUID=21f21168-2a55-4494-8e5a-8d9a7f6a76d0 ro
initrd /boot/initrd.img-4.15.0-48-generic
}
submenu 'Erweiterte Optionen für Ubuntu' $menuentry_id_option 'gnulinux-advanced-21f21168-2a55-4494-8e5a-8d9a7f6a76d0' {
menuentry 'Ubuntu, mit Linux 4.15.0-48-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-48-generic-advanced-21f21168-2a55-4494-8e5a-8d9a7f6a76d0' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
else
search --no-floppy --fs-uuid --set=root 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
fi
echo 'Linux 4.15.0-48-generic wird geladen …'
linux /boot/vmlinuz-4.15.0-48-generic root=UUID=21f21168-2a55-4494-8e5a-8d9a7f6a76d0 ro
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.15.0-48-generic
}
menuentry 'Ubuntu, mit Linux 4.15.0-48-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-48-generic-recovery-21f21168-2a55-4494-8e5a-8d9a7f6a76d0' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
else
search --no-floppy --fs-uuid --set=root 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
fi
echo 'Linux 4.15.0-48-generic wird geladen …'
linux /boot/vmlinuz-4.15.0-48-generic root=UUID=21f21168-2a55-4494-8e5a-8d9a7f6a76d0 ro recovery nomodeset
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.15.0-48-generic
}
menuentry 'Ubuntu, mit Linux 4.15.0-47-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-47-generic-advanced-21f21168-2a55-4494-8e5a-8d9a7f6a76d0' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
else
search --no-floppy --fs-uuid --set=root 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
fi
echo 'Linux 4.15.0-47-generic wird geladen …'
linux /boot/vmlinuz-4.15.0-47-generic root=UUID=21f21168-2a55-4494-8e5a-8d9a7f6a76d0 ro
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.15.0-47-generic
}
menuentry 'Ubuntu, mit Linux 4.15.0-47-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-47-generic-recovery-21f21168-2a55-4494-8e5a-8d9a7f6a76d0' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
else
search --no-floppy --fs-uuid --set=root 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
fi
echo 'Linux 4.15.0-47-generic wird geladen …'
linux /boot/vmlinuz-4.15.0-47-generic root=UUID=21f21168-2a55-4494-8e5a-8d9a7f6a76d0 ro recovery nomodeset
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.15.0-47-generic
}
menuentry 'Ubuntu, mit Linux 4.15.0-46-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-46-generic-advanced-21f21168-2a55-4494-8e5a-8d9a7f6a76d0' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
else
search --no-floppy --fs-uuid --set=root 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
fi
echo 'Linux 4.15.0-46-generic wird geladen …'
linux /boot/vmlinuz-4.15.0-46-generic root=UUID=21f21168-2a55-4494-8e5a-8d9a7f6a76d0 ro
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.15.0-46-generic
}
menuentry 'Ubuntu, mit Linux 4.15.0-46-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-46-generic-recovery-21f21168-2a55-4494-8e5a-8d9a7f6a76d0' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
else
search --no-floppy --fs-uuid --set=root 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
fi
echo 'Linux 4.15.0-46-generic wird geladen …'
linux /boot/vmlinuz-4.15.0-46-generic root=UUID=21f21168-2a55-4494-8e5a-8d9a7f6a76d0 ro recovery nomodeset
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.15.0-46-generic
}
menuentry 'Ubuntu, mit Linux 4.15.0-45-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-45-generic-advanced-21f21168-2a55-4494-8e5a-8d9a7f6a76d0' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
else
search --no-floppy --fs-uuid --set=root 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
fi
echo 'Linux 4.15.0-45-generic wird geladen …'
linux /boot/vmlinuz-4.15.0-45-generic root=UUID=21f21168-2a55-4494-8e5a-8d9a7f6a76d0 ro
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.15.0-45-generic
}
menuentry 'Ubuntu, mit Linux 4.15.0-45-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-45-generic-recovery-21f21168-2a55-4494-8e5a-8d9a7f6a76d0' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
else
search --no-floppy --fs-uuid --set=root 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
fi
echo 'Linux 4.15.0-45-generic wird geladen …'
linux /boot/vmlinuz-4.15.0-45-generic root=UUID=21f21168-2a55-4494-8e5a-8d9a7f6a76d0 ro recovery nomodeset
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.15.0-45-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_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
else
search --no-floppy --fs-uuid --set=root 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
fi
knetbsd /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
else
search --no-floppy --fs-uuid --set=root 21f21168-2a55-4494-8e5a-8d9a7f6a76d0
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 ###
--------------------------------------------------------------------------------
=============================== sda2/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>
##############################################################################################
# root partition
# / was on /dev/sda2 during installation
UUID=21f21168-2a55-4494-8e5a-8d9a7f6a76d0 / ext4 errors=remount-ro 0 1
##############################################################################################
###############################################################################################
# daten partition
# /media/nfs/ was on /dev/sda3 during installation
UUID=ac430046-073e-429a-9e9a-ef94ab7e88eb /media/nfs/ ext4 defaults 0 2
# datensicherung partition
# /media/sicherung/ was on /dev/sdb3 during installation
UUID=b9ab9f81-a38c-47f1-99db-d9cef7413c5a /media/sicherung/ ext4 defaults 0 2
# old system partition
# /media/ubuntu1004/ was on /dev/sda2 during installation
#UUID=ed3094fc-d40c-4ebb-bbdd-3860e98aabd1 /media/ubuntu1004/ ext4 defaults 0 2
###############################################################################################
#############################################################################################
# swap on drive 1 was on /dev/sda1 during installation
UUID=fe8254ca-7f9c-4758-a23e-9ed05ce9894a none swap sw 0 0
# swap on drive 2 was on /dev/sdb1 during installation
#UUID=9b71fa03-7e76-4a31-8bb2-97454e36eafe none swap sw 0 0
#############################################################################################
--------------------------------------------------------------------------------
=================== sda2: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
10.217811584 = 10.971291648 boot/grub/grub.cfg 2
10.217803955 = 10.971283456 boot/grub/i386-pc/core.img 1
4.211811066 = 4.522397696 boot/vmlinuz-4.15.0-45-generic 1
4.219623566 = 4.530786304 boot/vmlinuz-4.15.0-46-generic 1
4.227443695 = 4.539183104 boot/vmlinuz-4.15.0-47-generic 1
4.235263824 = 4.547579904 boot/vmlinuz-4.15.0-48-generic 1
4.235263824 = 4.547579904 vmlinuz 1
4.227443695 = 4.539183104 vmlinuz.old 1
4.086910248 = 4.388286464 boot/initrd.img-4.15.0-45-generic 2
4.122257233 = 4.426240000 boot/initrd.img-4.15.0-46-generic 1
4.161319733 = 4.468183040 boot/initrd.img-4.15.0-47-generic 1
6.911327362 = 7.420981248 boot/initrd.img-4.15.0-48-generic 3
6.911327362 = 7.420981248 initrd.img 3
4.161319733 = 4.468183040 initrd.img.old 1
======================== Unknown MBRs/Boot Sectors/etc: ========================
Unknown MBR on /dev/sdb
00000000 45 52 08 00 00 00 90 90 00 00 00 00 00 00 00 00 |ER..............|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 33 ed fa 8e d5 bc 00 7c fb fc 66 31 db 66 31 c9 |3......|..f1.f1.|
00000030 66 53 66 51 06 57 8e dd 8e c5 52 be 00 7c bf 00 |fSfQ.W....R..|..|
00000040 06 b9 00 01 f3 a5 ea 4b 06 00 00 52 b4 41 bb aa |.......K...R.A..|
00000050 55 31 c9 30 f6 f9 cd 13 72 16 81 fb 55 aa 75 10 |U1.0....r...U.u.|
00000060 83 e1 01 74 0b 66 c7 06 f3 06 b4 42 eb 15 eb 02 |...t.f.....B....|
00000070 31 c9 5a 51 b4 08 cd 13 5b 0f b6 c6 40 50 83 e1 |1.ZQ....[...@P..|
00000080 3f 51 f7 e1 53 52 50 bb 00 7c b9 04 00 66 a1 b0 |?Q..SRP..|...f..|
00000090 07 e8 44 00 0f 82 80 00 66 40 80 c7 02 e2 f2 66 |..D.....f@.....f|
000000a0 81 3e 40 7c fb c0 78 70 75 09 fa bc ec 7b ea 44 |.>@|..xpu....{.D|
000000b0 7c 00 00 e8 83 00 69 73 6f 6c 69 6e 75 78 2e 62 ||.....isolinux.b|
000000c0 69 6e 20 6d 69 73 73 69 6e 67 20 6f 72 20 63 6f |in missing or co|
000000d0 72 72 75 70 74 2e 0d 0a 66 60 66 31 d2 66 03 06 |rrupt...f`f1.f..|
000000e0 f8 7b 66 13 16 fc 7b 66 52 66 50 06 53 6a 01 6a |.{f...{fRfP.Sj.j|
000000f0 10 89 e6 66 f7 36 e8 7b c0 e4 06 88 e1 88 c5 92 |...f.6.{........|
00000100 f6 36 ee 7b 88 c6 08 e1 41 b8 01 02 8a 16 f2 7b |.6.{....A......{|
00000110 cd 13 8d 64 10 66 61 c3 e8 1e 00 4f 70 65 72 61 |...d.fa....Opera|
00000120 74 69 6e 67 20 73 79 73 74 65 6d 20 6c 6f 61 64 |ting system load|
00000130 20 65 72 72 6f 72 2e 0d 0a 5e ac b4 0e 8a 3e 62 | error...^....>b|
00000140 04 b3 07 cd 10 3c 0a 75 f1 cd 18 f4 eb fd 00 00 |.....<.u........|
00000150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001b0 d8 03 00 00 00 00 00 00 38 0b fa 6e 00 00 80 00 |........8..n....|
000001c0 01 00 00 6a e0 fa 00 00 00 00 20 3d 35 00 00 fe |...j...... =5...|
000001d0 ff ff ef fe ff ff e0 37 00 00 40 1d 00 00 00 00 |.......7..@.....|
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
/dev/sdb1: unknown GPT attributes
1000000000000001
/dev/sdb2: unknown GPT attributes
1000000000000001
Unknown BootLoader on sdb1
00000000 45 52 08 00 00 00 90 90 00 00 00 00 00 00 00 00 |ER..............|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 33 ed fa 8e d5 bc 00 7c fb fc 66 31 db 66 31 c9 |3......|..f1.f1.|
00000030 66 53 66 51 06 57 8e dd 8e c5 52 be 00 7c bf 00 |fSfQ.W....R..|..|
00000040 06 b9 00 01 f3 a5 ea 4b 06 00 00 52 b4 41 bb aa |.......K...R.A..|
00000050 55 31 c9 30 f6 f9 cd 13 72 16 81 fb 55 aa 75 10 |U1.0....r...U.u.|
00000060 83 e1 01 74 0b 66 c7 06 f3 06 b4 42 eb 15 eb 02 |...t.f.....B....|
00000070 31 c9 5a 51 b4 08 cd 13 5b 0f b6 c6 40 50 83 e1 |1.ZQ....[...@P..|
00000080 3f 51 f7 e1 53 52 50 bb 00 7c b9 04 00 66 a1 b0 |?Q..SRP..|...f..|
00000090 07 e8 44 00 0f 82 80 00 66 40 80 c7 02 e2 f2 66 |..D.....f@.....f|
000000a0 81 3e 40 7c fb c0 78 70 75 09 fa bc ec 7b ea 44 |.>@|..xpu....{.D|
000000b0 7c 00 00 e8 83 00 69 73 6f 6c 69 6e 75 78 2e 62 ||.....isolinux.b|
000000c0 69 6e 20 6d 69 73 73 69 6e 67 20 6f 72 20 63 6f |in missing or co|
000000d0 72 72 75 70 74 2e 0d 0a 66 60 66 31 d2 66 03 06 |rrupt...f`f1.f..|
000000e0 f8 7b 66 13 16 fc 7b 66 52 66 50 06 53 6a 01 6a |.{f...{fRfP.Sj.j|
000000f0 10 89 e6 66 f7 36 e8 7b c0 e4 06 88 e1 88 c5 92 |...f.6.{........|
00000100 f6 36 ee 7b 88 c6 08 e1 41 b8 01 02 8a 16 f2 7b |.6.{....A......{|
00000110 cd 13 8d 64 10 66 61 c3 e8 1e 00 4f 70 65 72 61 |...d.fa....Opera|
00000120 74 69 6e 67 20 73 79 73 74 65 6d 20 6c 6f 61 64 |ting system load|
00000130 20 65 72 72 6f 72 2e 0d 0a 5e ac b4 0e 8a 3e 62 | error...^....>b|
00000140 04 b3 07 cd 10 3c 0a 75 f1 cd 18 f4 eb fd 00 00 |.....<.u........|
00000150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001b0 d8 03 00 00 00 00 00 00 38 0b fa 6e 00 00 80 00 |........8..n....|
000001c0 01 00 00 6a e0 fa 00 00 00 00 20 3d 35 00 00 fe |...j...... =5...|
000001d0 ff ff ef fe ff ff e0 37 00 00 40 1d 00 00 00 00 |.......7..@.....|
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
|
Edit: Im Arch-Wiki:
https://wiki.archlinux.org/index.php/GRUB#Intel_BIOS_not_booting_GPT
bin ich fündig geworden. An was hats gelegen? Die neue Festplatte war, wie der Titel schon sagt, nicht "bootfähig": 1
2
3
4
5
6
7
8
9
10
11
12 | sudo parted /dev/sda print
Model: ATA WDC WD30EZRZ-00Z (scsi)
Disk /dev/sda: 3001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 2097kB 1049kB bios_grub
4 2097kB 4195MB 4193MB linux-swap(v1)
2 4195MB 14,7GB 10,5GB ext4
3 14,7GB 3001GB 2986GB ext4
|
also bin ich folgendermaßen vorgegangen: 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 | sudo parted /dev/sda disk_toggle pmbr_boot
Information: You may need to update /etc/fstab.
sudo parted /dev/sda print
Model: ATA WDC WD30EZRZ-00Z (scsi)
Disk /dev/sda: 3001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: pmbr_boot
Number Start End Size File system Name Flags
1 1049kB 2097kB 1049kB bios_grub
4 2097kB 4195MB 4193MB linux-swap(v1)
2 4195MB 14,7GB 10,5GB ext4
3 14,7GB 3001GB 2986GB ext4
|
Dadurch ändert sich der "Disk Flags" und ich konnte von der Festplatte booten.
|