[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Festplattensalat



Le mercredi 15 mai 2013 11:49:52, [ML] Michael Windelen a écrit :
> schrieb Klaus Becker am 15.05.2013 13:42:
> > n'abend,
> >
> > ich habe 2 identische Sata-FPs: gleiche Marke und Grösse, gleiche Partitionierung. Auf der 1. Partition beider FPs ist das glaiche Debian-System, die 2. Platte ist für Backups und für den Fall des Falles.
> 

Hallo Michael,

ich freu mich über die schnelle Antwort.


> Mountest du mit labels UUIDs in der fstab? (kannst die /etc/fstab ja mal
> posten)

hier das Wesentliche:

UUID=a2a92b1e-da00-4b39-b59a-70686319d6c1  /               ext4  defaults                      0 2 #sdb 1
UUID=b683c472-d52d-491e-9034-185e27b40cb4  /opt            ext4  defaults,user,exec,noatime    0 2 #sdb 6
UUID=98fd2ea8-7bf9-4210-ad11-aa0b726227d5  /home           ext4  defaults,noatime              0 2 #sdb 7

#UUID=6bf3d1f7-3508-4a6f-8221-417e83d2a3cf  /              ext4  defaults                      0 0 #sda 1
#UUID=8f979162-dcee-46e0-b720-fa0408115cc8  /opt           ext4  defaults,user,exec,noatime    0 2 #sda 6
#UUID=d19ba9ff-c415-4a9c-b530-4081e3440c30  /home          ext4  defaults,user,exec,noatime    0 2 #sda 7


> 
> Noch die 0.9x grub Version?

Nein, grub2.

> 
> Schick doch mal die grub Konfig (/boot/grub/menu.lst bzw. grub.cfg)


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
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root a2a92b1e-da00-4b39-b59a-70686319d6c1
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(/dev/sda,msdos1)'
  search --no-floppy --fs-uuid --set=root a2a92b1e-da00-4b39-b59a-70686319d6c1
  set locale_dir=($root)/boot/grub/locale
  set lang=fr_FR@euro
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root a2a92b1e-da00-4b39-b59a-70686319d6c1
insmod png
if background_image /usr/share/images/desktop-base/joy-grub.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, avec Linux 3.2.0-4-amd64' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(/dev/sda,msdos1)'
	search --no-floppy --fs-uuid --set=root a2a92b1e-da00-4b39-b59a-70686319d6c1
	echo	'Chargement de Linux 3.2.0-4-amd64 ...'
	linux	/boot/vmlinuz-3.2.0-4-amd64 root=UUID=a2a92b1e-da00-4b39-b59a-70686319d6c1 ro  quiet
	echo	'Chargement du disque mémoire initial ...'
	initrd	/boot/initrd.img-3.2.0-4-amd64
}
menuentry 'Debian GNU/Linux, avec Linux 3.2.0-4-amd64 (mode de dépannage)' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(/dev/sda,msdos1)'
	search --no-floppy --fs-uuid --set=root a2a92b1e-da00-4b39-b59a-70686319d6c1
	echo	'Chargement de Linux 3.2.0-4-amd64 ...'
	linux	/boot/vmlinuz-3.2.0-4-amd64 root=UUID=a2a92b1e-da00-4b39-b59a-70686319d6c1 ro single 
	echo	'Chargement du disque mémoire initial ...'
	initrd	/boot/initrd.img-3.2.0-4-amd64
}
### END /etc/grub.d/10_linux ###

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

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Debian GNU/Linux, avec Linux 3.2.0-4-amd64 (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root a2a92b1e-da00-4b39-b59a-70686319d6c1
	linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=a2a92b1e-da00-4b39-b59a-70686319d6c1 ro quiet
	initrd /boot/initrd.img-3.2.0-4-amd64
}
menuentry "Debian GNU/Linux, avec Linux 3.2.0-4-amd64 (mode de dépannage) (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root a2a92b1e-da00-4b39-b59a-70686319d6c1
	linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=a2a92b1e-da00-4b39-b59a-70686319d6c1 ro single
	initrd /boot/initrd.img-3.2.0-4-amd64
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/60_grub-imageboot ###
### END /etc/grub.d/60_grub-imageboot ###
=============

$ ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 mai   15 11:14 a2a92b1e-da00-4b39-b59a-70686319d6c1 -> ../../sda1
lrwxrwxrwx 1 root root 10 mai   15 11:14 8f979162-dcee-46e0-b720-fa0408115cc8 -> ../../sda6
lrwxrwxrwx 1 root root 10 mai   15 11:14 d19ba9ff-c415-4a9c-b530-4081e3440c30 -> ../../sda7
lrwxrwxrwx 1 root root 10 mai   15 11:14 b683c472-d52d-491e-9034-185e27b40cb4 -> ../../sdb6
lrwxrwxrwx 1 root root 10 mai   15 11:14 98fd2ea8-7bf9-4210-ad11-aa0b726227d5 -> ../../sdb7

sdb1 erscheint sonderbarerweise nicht in der Liste. Aber:
# blkid -s UUID -o value /dev/sdb1
a2a92b1e-da00-4b39-b59a-70686319d6c1

wie in grub.cfg.

> Du hast die Festplatten vorher nicht per dd kopiert, oder? Nur nochmal
> zur Sicherheit nachgefragt.

Ich hab' eine Partition per fsarchiver kopiert, fstab und die UUIDS aber nachher angepasst.

tschüss

Klaus


Reply to: