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