btrfs - Jedi-Ritter System - per script ein snapshot vor dem Update

So sollte es aussehen:
Code:
[root@arch ~]# cd /boot
[root@arch boot]# ls
grub initramfs-linux-fallback.img initramfs-linux.img loader vmlinuz-linux
[root@arch boot]#
falsch !
so sollte es aussehen:
Code:
[gero@T61archmachine /]$ cd /boot/
[gero@T61archmachine boot]$ ls -l
insgesamt 157576
drwxr-xr-x 6 root root     4096  9. Okt 21:39 grub
-rw-r--r-- 1 root root 31115421 13. Nov 20:17 initramfs-linux-fallback.img
-rw-r--r-- 1 root root 10532180 13. Nov 20:17 initramfs-linux.img
-rw-r--r-- 1 root root 10577812 13. Nov 20:12 initramfs-linux-oldstable.img
-rw-r--r-- 1 root root 10531465 13. Nov 20:12 initramfs-linux-stable.img
drwx------ 2 root root    16384 21. Jun 22:34 lost+found
-rw-r--r-- 1 root root  6285696 13. Nov 20:17 vmlinuz-linux
-rw-r--r-- 1 root root  6289792 13. Nov 20:12 vmlinuz-linux-oldstable
-rw-r--r-- 1 root root  6281600 13. Nov 20:12 vmlinuz-linux-stable

[gero@T61archmachine boot]$
von "loader" ist da nix zu sehen ,,,,

hast Du mein posting #57 nicht gelesen ?
dann kann ich mir die Erklärungen auch sparen.... :facepalm:
 
noch nicht.
bitte gemäß Anleitung vorgehen und alle Snapshots erstellen, auch die für STABLE und OLDSTABLE

Jetzt bin ich nach deine Youtubeempfehlungen vorgegangen "Arch My Way 3 _ Snapshot und Rollback (Deutsch)", davon gibt es natürlich so einige.

- - - Beitrag zusammengeführt - - -

noch nicht.
bitte gemäß Anleitung vorgehen und alle Snapshots erstellen, auch die für STABLE und OLDSTABLE

dann in allen snapshots die /etc/fstab anpassen, wie hier in Posting #51 beschrieben.

dann noch die Kernels und die initramfs - files kopieren.
Das Ergebnis sollte dann - bis auf die Dateigrößen - in etwa so aussehen ....

Code:
[gero@T61archmachine /]$ cd /boot/
[gero@T61archmachine boot]$ ls -l
insgesamt 157576
drwxr-xr-x 6 root root     4096  9. Okt 21:39 grub
-rw-r--r-- 1 root root 31115421 13. Nov 20:17 initramfs-linux-fallback.img
-rw-r--r-- 1 root root 10532180 13. Nov 20:17 initramfs-linux.img
-rw-r--r-- 1 root root 10577812 13. Nov 20:12 initramfs-linux-oldstable.img
-rw-r--r-- 1 root root 10531465 13. Nov 20:12 initramfs-linux-stable.img
drwx------ 2 root root    16384 21. Jun 22:34 lost+found
-rw-r--r-- 1 root root  6285696 13. Nov 20:17 vmlinuz-linux
-rw-r--r-- 1 root root  6289792 13. Nov 20:12 vmlinuz-linux-oldstable
-rw-r--r-- 1 root root  6281600 13. Nov 20:12 vmlinuz-linux-stable

[gero@T61archmachine boot]$

mache das bitte step by step so, wie es im Video beschrieben ist - die richtige Reihenfolge aller schritte ist hier wichtig.
erst dann kannst Du weitermachen mit grub.

Welches Video meinst Du?

In dem Video gibt einen Loader und EFI, was bei PC-Bios nicht richtig ist.

Bei mir sieht es so aus:

Code:
[root@arch ~]# cd /boot
[root@arch boot]# ls
grub  initramfs-linux-fallback.img  initramfs-linux.img  lost+found  vmlinuz-linux
[root@arch boot

Kernel habe ich bisher nicht kopiert, weil ich nicht weiß nach welcher Anleitung ich vorgehen soll, in deiner Anleitung fehlen Schritte, dann verweist Du wieder aufs Video.

Wie checke ich mein System ob überhaupt alles richtig gemountet, bzw. soweit richtig eingerichtet ist?
 
Zuletzt bearbeitet:
Das Video "Arch My Way 3 | Snapshot und Rollback (Deutsch)",

Da wird ein UEFI System behandelt, zu timecode 13:10 - 14:30 bin ich gar nicht gekommen, weil ich Schritte zuvor nicht ausführen konnte, denn ich habe ein PC-Bios System. Anfänglich wird auch auf UEFI, hier EFI System verwiesen.

Die Videos sind zudem aus dem Jahr 2017, dann die Antergos-Geschichte, wie soll man da als Anfänger klarkommen, ich bin damit jetzt noch überfordert.

Dein System ist ein "High-End-Config-System".
 
Zuletzt bearbeitet:
vergiss das mit /boot/loader - das ist EFI-Zeugs.
ich habe den Grub manuell angepasst - erst mal zum Testen ein backup machen ....
cp /boot/grub/grub.cfg /boot/grub/grub.cfg.old

dann die /boot/grub/grub.cfg mal probehalber editieren - wenn alles funzt, kann man sich an die Dauerlösung machen ....



hier mal meine /boot/grub/grub.cfg zum Vergleich.
wichtig sind u.a.die jeweiligen rootflags .....
z.B.
linux /vmlinuz-linux root=UUID=c84c4a98-015c-4efa-afd8-937734c104d2 rw rootflags=subvol=@snapshots/TESTING quiet

und auch die jeweils anderen kernels und initramfs - files .....


Code:
#
# 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 ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  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 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 btrfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos2' --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  c84c4a98-015c-4efa-afd8-937734c104d2
else
  search --no-floppy --fs-uuid --set=root c84c4a98-015c-4efa-afd8-937734c104d2
fi
    font="/@snapshots/TESTING/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_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### 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.
# submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-c84c4a98-015c-4efa-afd8-937734c104d2' {
menuentry 'Arch Linux TESTING' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c84c4a98-015c-4efa-afd8-937734c104d2' {
    load_video
    set gfxpayload=keep
    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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  c8145201-c2bb-441c-ac4f-70e8784cacca
    else
      search --no-floppy --fs-uuid --set=root c8145201-c2bb-441c-ac4f-70e8784cacca
    fi
    echo    'Loading Linux TESTING ...'
    linux    /vmlinuz-linux root=UUID=c84c4a98-015c-4efa-afd8-937734c104d2 rw rootflags=subvol=@snapshots/TESTING  quiet
    echo    'Loading initial ramdisk ...'
    initrd    /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-c84c4a98-015c-4efa-afd8-937734c104d2' {
    menuentry 'Arch Linux STABLE' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c84c4a98-015c-4efa-afd8-937734c104d2' {
        load_video
        set gfxpayload=keep
        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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  c8145201-c2bb-441c-ac4f-70e8784cacca
        else
          search --no-floppy --fs-uuid --set=root c8145201-c2bb-441c-ac4f-70e8784cacca
        fi
        echo    'Loading Linux STABLE ...'
        linux    /vmlinuz-linux-stable root=UUID=c84c4a98-015c-4efa-afd8-937734c104d2 rw rootflags=subvol=@snapshots/STABLE  quiet
        echo    'Loading initial ramdisk ...'
        initrd    /initramfs-linux-stable.img
}
    menuentry 'Arch Linux OLDSTABLE' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c84c4a98-015c-4efa-afd8-937734c104d2' {
        load_video
        set gfxpayload=keep
        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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  c8145201-c2bb-441c-ac4f-70e8784cacca
        else
              search --no-floppy --fs-uuid --set=root c8145201-c2bb-441c-ac4f-70e8784cacca
        fi
        echo    'Loading Linux OLDSTABLE ...'
        linux    /vmlinuz-linux-oldstable root=UUID=c84c4a98-015c-4efa-afd8-937734c104d2 rw rootflags=subvol=@snapshots/OLDSTABLE  quiet
        echo    'Loading initial ramdisk ...'
        initrd    /initramfs-linux-oldstable.img
}
    menuentry 'Arch Linux normal, with Linux normal' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-c84c4a98-015c-4efa-afd8-937734c104d2' {
        load_video
        set gfxpayload=keep
        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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  c8145201-c2bb-441c-ac4f-70e8784cacca
        else
          search --no-floppy --fs-uuid --set=root c8145201-c2bb-441c-ac4f-70e8784cacca
        fi
        echo    'Loading Linux linux ...'
        linux    /vmlinuz-linux root=UUID=c84c4a98-015c-4efa-afd8-937734c104d2 rw rootflags=subvol=@  quiet
        echo    'Loading initial ramdisk ...'
        initrd    /initramfs-linux.img
    }
    menuentry 'Arch Linux, with Linux nomal (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-c84c4a98-015c-4efa-afd8-937734c104d2' {
        load_video
        set gfxpayload=keep
        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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  c8145201-c2bb-441c-ac4f-70e8784cacca
        else
          search --no-floppy --fs-uuid --set=root c8145201-c2bb-441c-ac4f-70e8784cacca
        fi
        echo    'Loading Linux linux ...'
        linux    /vmlinuz-linux root=UUID=c84c4a98-015c-4efa-afd8-937734c104d2 rw rootflags=subvol=@  quiet
        echo    'Loading initial ramdisk ...'
        initrd    /initramfs-linux-fallback.img
    }
}

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




- - - Beitrag zusammengeführt - - -

ab timecode 13:10 - 14:30
diese schritte sind auf allen systemen gleich .... :)

- - - Beitrag zusammengeführt - - -

shice forensoftware - macht mir keine Zeilenumbrüche bei Copy/Paste :facepalm:
ich ändere es gleich .... FERTIG :)
 
Zuletzt bearbeitet:
cp /boot/grub/grub.cfg /boot/grub/grub.cfg.old

Bei jedem Update wirst Du neu besteln müssen, die /boot/grub/grub.cfg wirt autoamtisch generiert.

Schau mal unter erweitert bezüglich der Umbrüche, unten rects im Fenster, dann das Doppelkreuz.


Funktioniert dein grub.cfg auch nach einen

Code:
grub-mkconfig -o /boot/grub/grub.cfg

auch noch einwandfrei?

#
# DO NOT EDIT THIS FILE
#

steht da als Warnhinweis.

Warum hast Du ein Änderungen nicht in der /etc/grub.d/40_custom erfasst?
 
Zuletzt bearbeitet:
Dein System ist ein "High-End-Config-System".
ach quatsch :)
Ich habe nur 3 snapshots TESTING, STABLE und OLDSTABLE gemacht.
und je 2 Kopien von vmlinuz und initramfs (STABLE und OLDSTABLE)

das alles in die grub.cfg eingetragen und schon funzt es.
ist kein Hexenwerk, wenn man das Prinzip einmal verstanden hat.

- - - Beitrag zusammengeführt - - -

auch noch einwandfrei?

#
# DO NOT EDIT THIS FILE
#

steht da als Warnhinweis.

das WEISS ICH ! aber zum testen mache ich es erst mal so.
wenn alles läuft, dann macht man sich eine /etc/grub.d/40_custom und alles ist gut.
Hier geht es erstmal darum, alles zum Laufen zu bekommen und dabei Erfahrungen zu sammeln ;)

- - - Beitrag zusammengeführt - - -

Du solltest mal ein paar Ratschläge annehmen und nicht immer Fehler in diesen suchen ....
Mein system läuft schliesslich, Deines noch nicht :p
 
Zuletzt bearbeitet:
aber zum testen mache ich es erst mal so.

Woher soll ich das wissen?
So führt das zu Missverständnissen.

Zum Testen nach GI-Goe:
https://nopaste.linux-dev.org/?1277062

Wie sieht deine fertige /etc/grub.d/40_custom aus?

Wie prüfe ich mein System ob es soweit richtig vorbereitet ist?

Welche Infos brauchst Du dazu?
 
Zuletzt bearbeitet:
Wie prüfe ich mein System ob es soweit richtig vorbereitet ist?

Welche Infos brauchst Du dazu?
die Ausgaben folgender Befehle:

ls -l /boot/
ls -l /.snapshots/
ls -l /btrfs/
ls -l /btrfs/@snapshots
mount | grep '/dev/sd'
sudo cat /boot/grub/grub.cfg
sudo btrfs sub list /btrfs/
 
Zuletzt bearbeitet:
Code:
gero@T61archmachine ~]$ sudo btrfs sub list /btrfs/
ID 257 gen 52224 top level 5 path @
ID 258 gen 53977 top level 5 path @home
ID 259 gen 53805 top level 5 path @pkg
ID 260 gen 53944 top level 5 path @snapshots
ID 263 gen 31 top level 257 path @/var/lib/portables
ID 264 gen 32 top level 257 path @/var/lib/machines
ID 286 gen 52239 top level 5 path @home_snapshots
ID 394 gen 17814 top level 260 path @snapshots/ROOT_RO
ID 459 gen 47779 top level 286 path @home_snapshots/home_backup_RO
ID 463 gen 53976 top level 260 path @snapshots/TESTING
ID 476 gen 52224 top level 260 path @snapshots/root-snapshot
ID 477 gen 52240 top level 286 path @home_snapshots/NEW_home_backup_RO
ID 482 gen 53772 top level 260 path @snapshots/OLDSTABLE
ID 483 gen 53773 top level 260 path @snapshots/STABLE
[gero@T61archmachine ~]$


Code:
[gero@T61archmachine ~]$ sudo cat /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 ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
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 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 btrfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos2' --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 c84c4a98-015c-4efa-afd8-937734c104d2
else
search --no-floppy --fs-uuid --set=root c84c4a98-015c-4efa-afd8-937734c104d2
fi
font="/@snapshots/TESTING/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_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###

### 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.
# submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-c84c4a98-015c-4efa-afd8-937734c104d2' {
menuentry 'Arch Linux TESTING' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c84c4a98-015c-4efa-afd8-937734c104d2' {
load_video
set gfxpayload=keep
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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 c8145201-c2bb-441c-ac4f-70e8784cacca
else
search --no-floppy --fs-uuid --set=root c8145201-c2bb-441c-ac4f-70e8784cacca
fi
echo 'Loading Linux TESTING ...'
linux /vmlinuz-linux root=UUID=c84c4a98-015c-4efa-afd8-937734c104d2 rw rootflags=subvol=@snapshots/TESTING quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-c84c4a98-015c-4efa-afd8-937734c104d2' {
menuentry 'Arch Linux STABLE' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c84c4a98-015c-4efa-afd8-937734c104d2' {
load_video
set gfxpayload=keep
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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 c8145201-c2bb-441c-ac4f-70e8784cacca
else
search --no-floppy --fs-uuid --set=root c8145201-c2bb-441c-ac4f-70e8784cacca
fi
echo 'Loading Linux STABLE ...'
linux /vmlinuz-linux-stable root=UUID=c84c4a98-015c-4efa-afd8-937734c104d2 rw rootflags=subvol=@snapshots/STABLE quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-stable.img
}
menuentry 'Arch Linux OLDSTABLE' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c84c4a98-015c-4efa-afd8-937734c104d2' {
load_video
set gfxpayload=keep
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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 c8145201-c2bb-441c-ac4f-70e8784cacca
else
search --no-floppy --fs-uuid --set=root c8145201-c2bb-441c-ac4f-70e8784cacca
fi
echo 'Loading Linux OLDSTABLE ...'
linux /vmlinuz-linux-oldstable root=UUID=c84c4a98-015c-4efa-afd8-937734c104d2 rw rootflags=subvol=@snapshots/OLDSTABLE quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-oldstable.img
}
menuentry 'Arch Linux normal, with Linux normal' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-c84c4a98-015c-4efa-afd8-937734c104d2' {
load_video
set gfxpayload=keep
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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 c8145201-c2bb-441c-ac4f-70e8784cacca
else
search --no-floppy --fs-uuid --set=root c8145201-c2bb-441c-ac4f-70e8784cacca
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=c84c4a98-015c-4efa-afd8-937734c104d2 rw rootflags=subvol=@ quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
}
menuentry 'Arch Linux, with Linux nomal (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-c84c4a98-015c-4efa-afd8-937734c104d2' {
load_video
set gfxpayload=keep
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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 c8145201-c2bb-441c-ac4f-70e8784cacca
else
search --no-floppy --fs-uuid --set=root c8145201-c2bb-441c-ac4f-70e8784cacca
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=c84c4a98-015c-4efa-afd8-937734c104d2 rw rootflags=subvol=@ quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
}
}

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


Irgendwie Kraut und Rüben, nicht wirklich zu gebrauchen.
 
Zuletzt bearbeitet:
Dann lösche mal die falschen nopaste Links.
Zwei Links scheinen identsch zu sein.


Erst mal gute Nacht, cu

- - - Beitrag zusammengeführt - - -

Guten Morgen, die Ausgaben von

die Ausgaben folgender Befehle:

ls -l /boot/
ls -l /.snapshots/
ls -l /btrfs/
ls -l /btrfs/@snapshots
mount | grep '/dev/sd'
sudo cat /boot/grub/grub.cfg
sudo btrfs sub list /btrfs/

Code:
Last login: Thu Nov 14 19:16:08 2019 from 192.168.178.42
[root@arch ~]# 
[root@arch ~]# 
[root@arch ~]# ls -l /boot/
insgesamt 45184
drwxr-xr-x 5 root root     4096 11. Nov 19:30 grub
-rw-r--r-- 1 root root 30646963 11. Nov 18:59 initramfs-linux-fallback.img
-rw-r--r-- 1 root root  9313501 11. Nov 18:58 initramfs-linux.img
drwx------ 2 root root    16384 11. Nov 14:06 lost+found
-rw-r--r-- 1 root root  6281600 11. Nov 14:40 vmlinuz-linux
[root@arch ~]# 
[root@arch ~]# 
[root@arch ~]# ls -l /.snapshots/
insgesamt 48
drwxr-xr-x 1 root root 192 11. Nov 14:40 OLDSTABLE
drwxr-xr-x 1 root root 192 11. Nov 14:40 STABLE
drwxr-xr-x 1 root root 192 11. Nov 14:40 TESTING
[root@arch ~]# 
[root@arch ~]# 
[root@arch ~]# ls -l /btrfs/
insgesamt 16
drwxr-xr-x 1 root root    0 11. Nov 14:11 @
lrwxrwxrwx 1 root root    7  6. Okt 17:44 bin -> usr/bin
drwxr-xr-x 1 root root    0 11. Nov 14:11 boot
drwxr-xr-x 1 root root    0 11. Nov 14:10 btrfs
drwxr-xr-x 1 root root    0 11. Nov 14:26 dev
drwxr-xr-x 1 root root 2122 14. Nov 18:02 etc
drwxr-xr-x 1 root root    6 11. Nov 18:59 @home
drwxr-xr-x 1 root root    0 11. Nov 14:10 home
lrwxrwxrwx 1 root root    7  6. Okt 17:44 lib -> usr/lib
lrwxrwxrwx 1 root root    7  6. Okt 17:44 lib64 -> usr/lib
drwxr-xr-x 1 root root    0  6. Okt 17:44 mnt
drwxr-xr-x 1 root root   50 11. Nov 19:21 opt
drwxr-xr-x 1 root root   60 13. Nov 17:28 @pkg
dr-xr-xr-x 1 root root    0 11. Nov 14:26 proc
drwxr-x--- 1 root root  208 15. Nov 07:22 root
drwxr-xr-x 1 root root    0 11. Nov 14:26 run
lrwxrwxrwx 1 root root    7  6. Okt 17:44 sbin -> usr/bin
drwxr-xr-x 1 root root   44 14. Nov 18:15 @snapshots                                                                                                
drwxr-xr-x 1 root root   14 11. Nov 14:40 srv                                                                                                       
dr-xr-xr-x 1 root root    0 11. Nov 14:26 sys                                                                                                       
drwxrwxrwt 1 root root    0 11. Nov 14:26 tmp                                                                                                       
drwxr-xr-x 1 root root   80 13. Nov 17:28 usr                                                                                                       
drwxr-xr-x 1 root root  116 14. Nov 18:02 var                                                                                                       
[root@arch ~]#                                                                                                                                      
[root@arch ~]# 
[root@arch ~]# 
[root@arch ~]# ls -l /btrfs/@snapshots
insgesamt 48
drwxr-xr-x 1 root root 192 11. Nov 14:40 OLDSTABLE
drwxr-xr-x 1 root root 192 11. Nov 14:40 STABLE
drwxr-xr-x 1 root root 192 11. Nov 14:40 TESTING
[root@arch ~]# 
[root@arch ~]# 
[root@arch ~]# 
[root@arch ~]# mount | grep '/dev/sd'
/dev/sda2 on / type btrfs (rw,relatime,space_cache,subvolid=5,subvol=/)
/dev/sda2 on /.snapshots type btrfs (rw,noatime,space_cache,subvolid=260,subvol=/@snapshots)
/dev/sda2 on /btrfs type btrfs (rw,noatime,space_cache,subvolid=5,subvol=/)
/dev/sda2 on /home type btrfs (rw,noatime,space_cache,subvolid=258,subvol=/@home)
/dev/sda2 on /var/cache/pacman/pkg type btrfs (rw,noatime,space_cache,subvolid=259,subvol=/@pkg)
/dev/sda1 on /boot type ext4 (rw,relatime)
[root@arch ~]# 
[root@arch ~]# 
[root@arch ~]# 
[root@arch ~]# 
[root@arch ~]# sudo cat /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 ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  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 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 btrfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos2' --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  dc21e622-e663-46e0-b675-ea85ccdaad28
else
  search --no-floppy --fs-uuid --set=root dc21e622-e663-46e0-b675-ea85ccdaad28
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_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=2
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-dc21e622-e663-46e0-b675-ea85ccdaad28' {
        load_video
        set gfxpayload=keep
        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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  e8891039-e8c3-40a9-8c0e-8ac09c87a869
        else
          search --no-floppy --fs-uuid --set=root e8891039-e8c3-40a9-8c0e-8ac09c87a869
        fi
        echo    'Loading Linux linux ...'
        linux   /vmlinuz-linux root=UUID=dc21e622-e663-46e0-b675-ea85ccdaad28 rw  loglevel=3 quiet
        echo    'Loading initial ramdisk ...'
        initrd  /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-dc21e622-e663-46e0-b675-ea85ccdaad28' {
        menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-dc21e622-e663-46e0-b675-ea85ccdaad28' {
                load_video
                set gfxpayload=keep
                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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  e8891039-e8c3-40a9-8c0e-8ac09c87a869
                else
                  search --no-floppy --fs-uuid --set=root e8891039-e8c3-40a9-8c0e-8ac09c87a869
                fi
                echo    'Loading Linux linux ...'
                linux   /vmlinuz-linux root=UUID=dc21e622-e663-46e0-b675-ea85ccdaad28 rw  loglevel=3 quiet
                echo    'Loading initial ramdisk ...'
                initrd  /initramfs-linux.img
        }
        menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-dc21e622-e663-46e0-b675-ea85ccdaad28' {
                load_video
                set gfxpayload=keep
                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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  e8891039-e8c3-40a9-8c0e-8ac09c87a869
                else
                  search --no-floppy --fs-uuid --set=root e8891039-e8c3-40a9-8c0e-8ac09c87a869
                fi
                echo    'Loading Linux linux ...'
                linux   /vmlinuz-linux root=UUID=dc21e622-e663-46e0-b675-ea85ccdaad28 rw  loglevel=3 quiet
                echo    'Loading initial ramdisk ...'
                initrd  /initramfs-linux-fallback.img
        }
}

### 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 ###
### 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  ${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 ###
[root@arch ~]# 
[root@arch ~]# 
[root@arch ~]# 
[root@arch ~]# 
[root@arch ~]# sudo btrfs sub list /btrfs/ 
ID 257 gen 693 top level 5 path @
ID 258 gen 748 top level 5 path @home
ID 259 gen 468 top level 5 path @pkg
ID 260 gen 721 top level 5 path @snapshots
ID 263 gen 29 top level 5 path var/lib/portables
ID 264 gen 30 top level 5 path var/lib/machines
ID 267 gen 742 top level 260 path @snapshots/TESTING
ID 268 gen 617 top level 260 path @snapshots/STABLE
ID 269 gen 618 top level 260 path @snapshots/OLDSTABLE
[root@arch ~]# 
[root@arch ~]# 
[root@arch ~]# 
[root@arch ~]#

Oder übersichtlicher hier:


https://nopaste.linux-dev.org/?1277066

So sieht mein System am 15. November 2019, 7:30 h aus.

Was fehlt da, ist die Basis so ok um weiter zu arbeiten?

- - - Beitrag zusammengeführt - - -

Dann mal weiter da, wenn alles ok ist:


DIESES VIDEO - ab timecode 13:10 - 14:30

laut deinem /boot-Verzeichnis hast Du das noch nicht gemacht.

Das Video heißt "Arch My Way 3 | Snapshot und Rollback (Deutsch)", Timecode 13:10 - 14:30 werde ich nachbasteln.

Das Video bezieht sich auf ein UEFI-System, laut GI-Joe, ist das in diesem Abschnitt egal.

Code:
timecode 13:10 
 
 [root@arch ~]# 
[root@arch ~]# 
[root@arch ~]# 
[root@arch ~]# cd /boot
[root@arch boot]# ls
grub  initramfs-linux-fallback.img  initramfs-linux.img  lost+found  vmlinuz-linux
[root@arch boot]# 
[root@arch boot]# 
[root@arch boot]# cp vmlinuz-linux vmlinuz-linux-stable
[root@arch boot]# cp vmlinuz-linux vmlinuz-linux-oldstable
[root@arch boot]# 
[root@arch boot]# ls
grub  initramfs-linux-fallback.img  initramfs-linux.img  lost+found  vmlinuz-linux  vmlinuz-linux-oldstable  vmlinuz-linux-stable
[root@arch boot]# cp initramfs-linux.img initramfs-linux-stable.img
[root@arch boot]# cp initramfs-linux.img initramfs-linux-oldstable.img
[root@arch boot]# ls
[root@arch boot]# ls
grub  initramfs-linux-fallback.img  initramfs-linux.img  initramfs-linux-oldstable.img  initramfs-linux-stable.img  lost+found  vmlinuz-linux  vmlinuz-linux-oldstable  vmlinuz-linux-stable
[root@arch boot]# 


timecode 14:30

bessere Übersicht: https://nopaste.linux-dev.org/?1277067

- - - Beitrag zusammengeführt - - -

jetziger Systemzustand, Fri Nov 15 08:07:02 2019
die Ausgaben folgender Befehle:

ls -l /boot/
ls -l /.snapshots/
ls -l /btrfs/
ls -l /btrfs/@snapshots
mount | grep '/dev/sd'
sudo cat /boot/grub/grub.cfg
sudo btrfs sub list /btrfs/


Code:
[root@arch boot]# 
[root@arch boot]# 
[root@arch boot]# 
[root@arch boot]# ls -l /boot/
insgesamt 75648
drwxr-xr-x 5 root root     4096 11. Nov 19:30 grub
-rw-r--r-- 1 root root 30646963 11. Nov 18:59 initramfs-linux-fallback.img
-rw-r--r-- 1 root root  9313501 11. Nov 18:58 initramfs-linux.img
-rw-r--r-- 1 root root  9313501 15. Nov 07:49 initramfs-linux-oldstable.img
-rw-r--r-- 1 root root  9313501 15. Nov 07:49 initramfs-linux-stable.img
drwx------ 2 root root    16384 11. Nov 14:06 lost+found
-rw-r--r-- 1 root root  6281600 11. Nov 14:40 vmlinuz-linux
-rw-r--r-- 1 root root  6281600 15. Nov 07:46 vmlinuz-linux-oldstable
-rw-r--r-- 1 root root  6281600 15. Nov 07:46 vmlinuz-linux-stable
[root@arch boot]# 
[root@arch boot]# ls -l /.snapshots/
insgesamt 48
drwxr-xr-x 1 root root 192 11. Nov 14:40 OLDSTABLE
drwxr-xr-x 1 root root 192 11. Nov 14:40 STABLE
drwxr-xr-x 1 root root 192 11. Nov 14:40 TESTING
[root@arch boot]# 
[root@arch boot]# 
[root@arch boot]# 
[root@arch boot]# ls -l /btrfs/
insgesamt 16
drwxr-xr-x 1 root root    0 11. Nov 14:11 @
lrwxrwxrwx 1 root root    7  6. Okt 17:44 bin -> usr/bin
drwxr-xr-x 1 root root    0 11. Nov 14:11 boot
drwxr-xr-x 1 root root    0 11. Nov 14:10 btrfs
drwxr-xr-x 1 root root    0 11. Nov 14:26 dev
drwxr-xr-x 1 root root 2122 14. Nov 18:02 etc
drwxr-xr-x 1 root root    6 11. Nov 18:59 @home
drwxr-xr-x 1 root root    0 11. Nov 14:10 home
lrwxrwxrwx 1 root root    7  6. Okt 17:44 lib -> usr/lib
lrwxrwxrwx 1 root root    7  6. Okt 17:44 lib64 -> usr/lib
drwxr-xr-x 1 root root    0  6. Okt 17:44 mnt
drwxr-xr-x 1 root root   50 11. Nov 19:21 opt
drwxr-xr-x 1 root root   60 13. Nov 17:28 @pkg
dr-xr-xr-x 1 root root    0 11. Nov 14:26 proc
drwxr-x--- 1 root root  208 15. Nov 07:22 root
drwxr-xr-x 1 root root    0 11. Nov 14:26 run
lrwxrwxrwx 1 root root    7  6. Okt 17:44 sbin -> usr/bin
drwxr-xr-x 1 root root   44 14. Nov 18:15 @snapshots
drwxr-xr-x 1 root root   14 11. Nov 14:40 srv
dr-xr-xr-x 1 root root    0 11. Nov 14:26 sys
drwxrwxrwt 1 root root    0 11. Nov 14:26 tmp
drwxr-xr-x 1 root root   80 13. Nov 17:28 usr
drwxr-xr-x 1 root root  116 14. Nov 18:02 var
[root@arch boot]# 
[root@arch boot]# 
[root@arch boot]# ls -l /btrfs/@snapshots
insgesamt 48
drwxr-xr-x 1 root root 192 11. Nov 14:40 OLDSTABLE
drwxr-xr-x 1 root root 192 11. Nov 14:40 STABLE
drwxr-xr-x 1 root root 192 11. Nov 14:40 TESTING
[root@arch boot]# 
[root@arch boot]# 
[root@arch boot]# mount | grep '/dev/sd'
/dev/sda2 on / type btrfs (rw,relatime,space_cache,subvolid=5,subvol=/)
/dev/sda2 on /.snapshots type btrfs (rw,noatime,space_cache,subvolid=260,subvol=/@snapshots)
/dev/sda2 on /btrfs type btrfs (rw,noatime,space_cache,subvolid=5,subvol=/)
/dev/sda2 on /home type btrfs (rw,noatime,space_cache,subvolid=258,subvol=/@home)
/dev/sda2 on /var/cache/pacman/pkg type btrfs (rw,noatime,space_cache,subvolid=259,subvol=/@pkg)
/dev/sda1 on /boot type ext4 (rw,relatime)
[root@arch boot]# 
[root@arch boot]# 
[root@arch boot]# 
[root@arch boot]# sudo cat /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 ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  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 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 btrfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos2' --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  dc21e622-e663-46e0-b675-ea85ccdaad28
else
  search --no-floppy --fs-uuid --set=root dc21e622-e663-46e0-b675-ea85ccdaad28
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_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=2
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-dc21e622-e663-46e0-b675-ea85ccdaad28' {
        load_video
        set gfxpayload=keep
        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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  e8891039-e8c3-40a9-8c0e-8ac09c87a869
        else
          search --no-floppy --fs-uuid --set=root e8891039-e8c3-40a9-8c0e-8ac09c87a869
        fi
        echo    'Loading Linux linux ...'
        linux   /vmlinuz-linux root=UUID=dc21e622-e663-46e0-b675-ea85ccdaad28 rw  loglevel=3 quiet
        echo    'Loading initial ramdisk ...'
        initrd  /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-dc21e622-e663-46e0-b675-ea85ccdaad28' {
        menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-dc21e622-e663-46e0-b675-ea85ccdaad28' {
                load_video
                set gfxpayload=keep
                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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  e8891039-e8c3-40a9-8c0e-8ac09c87a869
                else
                  search --no-floppy --fs-uuid --set=root e8891039-e8c3-40a9-8c0e-8ac09c87a869
                fi
                echo    'Loading Linux linux ...'
                linux   /vmlinuz-linux root=UUID=dc21e622-e663-46e0-b675-ea85ccdaad28 rw  loglevel=3 quiet
                echo    'Loading initial ramdisk ...'
                initrd  /initramfs-linux.img
        }
        menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-dc21e622-e663-46e0-b675-ea85ccdaad28' {
                load_video
                set gfxpayload=keep
                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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  e8891039-e8c3-40a9-8c0e-8ac09c87a869
                else
                  search --no-floppy --fs-uuid --set=root e8891039-e8c3-40a9-8c0e-8ac09c87a869
                fi
                echo    'Loading Linux linux ...'
                linux   /vmlinuz-linux root=UUID=dc21e622-e663-46e0-b675-ea85ccdaad28 rw  loglevel=3 quiet
                echo    'Loading initial ramdisk ...'
                initrd  /initramfs-linux-fallback.img
        }
}

### 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 ###
### 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  ${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 ###
[root@arch boot]# 
[root@arch boot]# 
[root@arch boot]# sudo btrfs sub list /btrfs/ 
ID 257 gen 693 top level 5 path @
ID 258 gen 748 top level 5 path @home
ID 259 gen 468 top level 5 path @pkg
ID 260 gen 721 top level 5 path @snapshots
ID 263 gen 29 top level 5 path var/lib/portables
ID 264 gen 30 top level 5 path var/lib/machines
ID 267 gen 742 top level 260 path @snapshots/TESTING
ID 268 gen 617 top level 260 path @snapshots/STABLE
ID 269 gen 618 top level 260 path @snapshots/OLDSTABLE
[root@arch boot]# 
[root@arch boot]#


Übersichtlicher: https://nopaste.linux-dev.org/?1277069

- - - Beitrag zusammengeführt - - -

@GI-Joe
Welches Video, welcher Videoabschnitt ist zum nachbasteln geeignet?
Ich habe ein PC-System!


Jetzt muss ich vermutlich die /etc/grub.d/40_custom erstellen.

- - - Beitrag zusammengeführt - - -

Mit "pacman -Syu" gabe es heuten einen neuen Kernel.

Also nochmal folgendes:
Code:
[root@arch ~]# cd /boot
[root@arch boot]#  cp vmlinuz-linux vmlinuz-linux-stable
[root@arch boot]# cp vmlinuz-linux vmlinuz-linux-oldstable
[root@arch boot]# cp initramfs-linux.img initramfs-linux-stable.img
[root@arch boot]# cp initramfs-linux.img initramfs-linux-oldstable.img
[root@arch boot]#

Basis für meine /etc/grub.d/40_custom wird die /boot/grub/grub.cfg sein.

Hinweis, die /etc/fstab ist auch noch anzupassen, die Mountpoints für die Suvloumes fehen jetzt noch.

- - - Beitrag zusammengeführt - - -

Auszug aus der /boot/grub/grub.cfg, die Basis für meine neue /etc/grub.d/40_custom

Code:
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-dc21e622-e663-46e0-b675-ea85ccdaad28' {
        load_video
        set gfxpayload=keep
        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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  e8891039-e8c3-40a9-8c0e-8ac09c87a869
        else
          search --no-floppy --fs-uuid --set=root e8891039-e8c3-40a9-8c0e-8ac09c87a869
        fi
        echo    'Loading Linux linux ...'
        linux   /vmlinuz-linux root=UUID=dc21e622-e663-46e0-b675-ea85ccdaad28 rw  loglevel=3 quiet
        echo    'Loading initial ramdisk ...'
        initrd  /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-dc21e622-e663-46e0-b675-ea85ccdaad28' {
        menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-dc21e622-e663-46e0-b675-ea85ccdaad28' {
                load_video
                set gfxpayload=keep
                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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  e8891039-e8c3-40a9-8c0e-8ac09c87a869
                else
                  search --no-floppy --fs-uuid --set=root e8891039-e8c3-40a9-8c0e-8ac09c87a869
                fi
                echo    'Loading Linux linux ...'
                linux   /vmlinuz-linux root=UUID=dc21e622-e663-46e0-b675-ea85ccdaad28 rw  loglevel=3 quiet
                echo    'Loading initial ramdisk ...'
                initrd  /initramfs-linux.img
        }
        menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-dc21e622-e663-46e0-b675-ea85ccdaad28' {
                load_video
                set gfxpayload=keep
                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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  e8891039-e8c3-40a9-8c0e-8ac09c87a869
                else
                  search --no-floppy --fs-uuid --set=root e8891039-e8c3-40a9-8c0e-8ac09c87a869
                fi
                echo    'Loading Linux linux ...'
                linux   /vmlinuz-linux root=UUID=dc21e622-e663-46e0-b675-ea85ccdaad28 rw  loglevel=3 quiet
                echo    'Loading initial ramdisk ...'
                initrd  /initramfs-linux-fallback.img
        }
}

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

- - - Beitrag zusammengeführt - - -

Erkenntnis, ich sollte erst die /etc/fstab anpassen um die Mountpoint der Subvolme, STABLE und OLDSTABLE festzulegen.

Ausgangsbasis, /etc/fstab
Code:
cat /etc/fstab
# Static information about the filesystems.                                                                                                                                                                                      
# See fstab(5) for details.                                                                                                                                                                                                      
                                                                                                                                                                                                                                 
# <file system> <dir> <type> <options> <dump> <pass>                                                                                                                                                                             
# /dev/sda2 UUID=dc21e622-e663-46e0-b675-ea85ccdaad28
LABEL=ROOT              /               btrfs           rw,relatime,space_cache,subvolid=5,subvol=/     0 0

# /dev/sda1 UUID=e8891039-e8c3-40a9-8c0e-8ac09c87a869
LABEL=BOOT              /boot           ext4            rw,relatime     0 2

# /dev/sda2 UUID=dc21e622-e663-46e0-b675-ea85ccdaad28
LABEL=ROOT              /home           btrfs           rw,noatime,space_cache,subvolid=258,subvol=/@home,subvol=@home  0 0

# /dev/sda2 UUID=dc21e622-e663-46e0-b675-ea85ccdaad28
LABEL=ROOT              /btrfs          btrfs           rw,noatime,space_cache,subvolid=5,subvol=/      0 0

# /dev/sda2 UUID=dc21e622-e663-46e0-b675-ea85ccdaad28
LABEL=ROOT              /.snapshots     btrfs           rw,noatime,space_cache,subvolid=260,subvol=/@snapshots,subvol=@snapshots        0 0

# /dev/sda2 UUID=dc21e622-e663-46e0-b675-ea85ccdaad28
LABEL=ROOT              /var/cache/pacman/pkg   btrfs           rw,noatime,space_cache,subvolid=259,subvol=/@pkg,subvol=@pkg    0 0

# /dev/sda3 UUID=92f65913-a071-4213-b8fa-eef611c7c770
LABEL=SWAP              none            swap            defaults        0 0

- - - Beitrag zusammengeführt - - -
Wie muss jetzt die /etc/fstab für mein PC-Bios System aussehen?

@GI-Joe
Wie sieht deine /etc/fstab aus?

https://thinkpad-forum.de/threads/2...ift-Nov-2019?p=2211209&viewfull=1#post2211209
 
Zuletzt bearbeitet:
@GI-Joe
Wie sieht deine /etc/fstab aus?
bitte lesen ! KLICK!

Erkenntnis, ich sollte erst die /etc/fstab anpassen um die Mountpoint der Subvolme, STABLE und OLDSTABLE festzulegen.
ja, auch. Das habe ich u.a. schon mehrmals hier geschrieben.
aber Du solltest zuerst einmal RICHTIG lesen und auch danach handeln: KLICK! und KLICK!
mein /boot - Verzeichnis unterscheidet sich immer noch von Deinem !

Jetzt muss ich vermutlich die /etc/grub.d/40_custom erstellen.
das machst Du als letzten schritt wenn alles läuft ! Hab ich auch schon mal geschrieben!


Mit fällt es echt schwer, hier alles doppelt und dreifach zu schreiben, da verlässt mich echt langsam die Lust :(
Mach bitte erstmal all das , was ich beschrieben hab, dann kannst Du zum Schluss die Grub-Einträge machen ...
BITTE LESE UND MACHTE ALLES AUS POSTING #57
 
Zuletzt bearbeitet:
Hallo GI-Joe,

https://thinkpad-forum.de/threads/2...ift-Nov-2019?p=2210137&viewfull=1#post2210137

Du schreibst in mehreren Formatierungen, deine /etc/fstab:

Übersichtlichkeit verbessert:

/etc/fstab
Code:
[gero@x61archmachine ~]$ cat /etc/fstab
# /dev/sda2 UUID=22617c40-a25f-440e-99bf-050edfdcd822
LABEL=ROOT / btrfs rw,noatime,compress=lzo,ssd,space_cache,subvol=/@snapshots/TESTING 0 0


# /dev/sda1 UUID=adcfbcd8-897e-47e7-8a21-04a6642d2926
LABEL=BOOT /boot ext4 rw,relatime 0 2


# /dev/sda2 UUID=22617c40-a25f-440e-99bf-050edfdcd822
LABEL=ROOT /home btrfs rw,noatime,compress=lzo,ssd,space_cache,subvol=/@home 0 0


# /dev/sda2 UUID=22617c40-a25f-440e-99bf-050edfdcd822
LABEL=ROOT /btrfs btrfs rw,noatime,compress=lzo,ssd,space_cache,subvolid=5 0 0


# /dev/sda2 UUID=22617c40-a25f-440e-99bf-050edfdcd822
LABEL=ROOT /.snapshots btrfs rw,noatime,compress=lzo,ssd,space_cache,subvol=/@snapshots 0 0


# /dev/sda2 UUID=22617c40-a25f-440e-99bf-050edfdcd822
LABEL=ROOT /var/cache/pacman/pkg btrfs rw,noatime,compress=lzo,ssd,space_cache,subvol=/@pkg 0 0


# /dev/sda3 UUID=b26a9810-408d-4dd6-8e20-4a9bb874477a
LABEL=SWAP none swap defaults 0 0


tmpfs /ramdisk tmpfs noatime,nodev,nosuid,size=2G 0 0

Welche /etc/fstab ist das? root, TESTING, STABLE oder OLDSTABLE?

Bei dem Video, auf das Du schon öfters verweisen hast, ist vieles für PC-Bios Systeme nicht zu gebrauchen.

Kennst Du jemanden der dein gutes System nachgebaut hat?

was beim Einsatz von btrfs kein problem darstellt.

Für dich vermutlich nicht, für andere vermutlich doch ein Problem und kein kleines Problem.

Ohne dein anfängliches Statement "kein Problem" und deinen helfenden Input hätte ich schon lange aufgegeben.

Wo ist der Unterschied zu deinem Bootverzeichnis https://nopaste.linux-dev.org/?1277069 versus https://thinkpad-forum.de/threads/2...ift-Nov-2019?p=2211333&viewfull=1#post2211333 ?
Ich sehen keinen Unterschied.

@Forum
War hat das geile System erfolgreich nachgebaut?

Was haltet Ihr von den System?
 
Zuletzt bearbeitet:
Übersichtlichkeit verbessert:

/etc/fstab
Code:

[gero@x61archmachine ~]$ cat /etc/fstab
# /dev/sda2 UUID=22617c40-a25f-440e-99bf-050edfdcd822
LABEL=ROOT / btrfs rw,noatime,compress=lzo,ssd,space_cache,subvol=/@snapshots/TESTING 0 0


# /dev/sda1 UUID=adcfbcd8-897e-47e7-8a21-04a6642d2926
LABEL=BOOT /boot ext4 rw,relatime 0 2


# /dev/sda2 UUID=22617c40-a25f-440e-99bf-050edfdcd822
LABEL=ROOT /home btrfs rw,noatime,compress=lzo,ssd,space_cache,subvol=/@home 0 0


# /dev/sda2 UUID=22617c40-a25f-440e-99bf-050edfdcd822
LABEL=ROOT /btrfs btrfs rw,noatime,compress=lzo,ssd,space_cache,subvolid=5 0 0


# /dev/sda2 UUID=22617c40-a25f-440e-99bf-050edfdcd822
LABEL=ROOT /.snapshots btrfs rw,noatime,compress=lzo,ssd,space_cache,subvol=/@snapshots 0 0


# /dev/sda2 UUID=22617c40-a25f-440e-99bf-050edfdcd822
LABEL=ROOT /var/cache/pacman/pkg btrfs rw,noatime,compress=lzo,ssd,space_cache,subvol=/@pkg 0 0


# /dev/sda3 UUID=b26a9810-408d-4dd6-8e20-4a9bb874477a
LABEL=SWAP none swap defaults 0 0


tmpfs /ramdisk tmpfs noatime,nodev,nosuid,size=2G 0 0

Welche /etc/fstab ist das? root, TESTING, STABLE oder OLDSTABLE?
lies und verstehe den ersten Eintrag, dann wird es klar ;)



Wo ist der Unterschied zu deinem Bootverzeichnis https://nopaste.linux-dev.org/?1277069 versus https://thinkpad-forum.de/threads/22...=1#post2211333 ?
Ich sehen keinen Unterschied.
stimmt, da ist auch keiner. Deine ganzen Outputs verwirren mehr als sie Durchblick bringen. Der jeweils letzte reicht eigentlich ... Aber nun habe ich den letzten Stand und habe folgende Fehler/Unnötigkeiten entdeckt.

1. Du hast Dein Basissystem direkt auf das BTRFS installiert und nicht in ein vorher gemountetes Subvolume (ist aber nicht sooo schlimm und kann nach der Umstellung auf TESTINg/STABLE/UNSTABLE wieder gelöscht werden aus /btrfs/ ) besser wäre gewesen, so vorzugehen, wie Nich es step by step beschrieben hat hier ab Timecode 13:29 - 17:24 (ab 14:10 ist hier wichtig !! -> unmounten und wieder mit neuen Optionen mounten !)
so wie ich es auch schon beschrieben habe HIER! aber wie erwähnt, ist erstmal kein Beinbruch, bitte JETZT NICHT groß was hier machen ....

2. deine fstab ´s von TESTING, STABLE und OLDSTABLE sollten noch optimiert werden - nach DIESEM schema ! (pro Eintrag nur EINE subvol - Angabe ! - bei /btrfs die subvolid=5 nehmen).

3. hast Du pikaur installiert oder nutzt Du ausschließlich pacman ?
 
pikaur nutze ich nicht, AUR Pakete bisher auch nicht.

1. Du hast Dein Basissystem direkt auf das BTRFS installiert und nicht in ein vorher gemountetes Subvolume (ist aber nicht sooo schlimm und kann nach der Umstellung auf TESTINg/STABLE/UNSTABLE wieder gelöscht werden aus /btrfs/ )

Das erklärt auch, warum mein Verzeichnis /@ leer ist.
Gewundert hatte ich mich darüber schon.

Installiert hatte ich das System mit einem anderen Video "Total Arch Linux | 2.3 Btrfs für Snapshots einrichten", https://www.youtube.com/watch?v=mho64LjLrsU , das ist für PC-Bios.
 
Zuletzt bearbeitet:
  • ok1.de
  • thinkstore24.de
  • Preiswerte-IT - Gebrauchte Lenovo Notebooks kaufen
Zurück
Oben