This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:filesystems:boot [2013/04/06 00:52] tkilla |
linux:filesystems:boot [2022/11/06 21:39] (current) tkilla |
||
---|---|---|---|
Line 15: | Line 15: | ||
--exclude="/ | --exclude="/ | ||
+ | -> may cause strange bugs, like permissions in /var/run/, maybe /dev probs | ||
2. simple **copy** with " | 2. simple **copy** with " | ||
Line 25: | Line 26: | ||
- | 4. **gparted** - no ext4, only from livesystems | + | 4. **parted** - no ext4, only from livesystems |
etc... | etc... | ||
Line 55: | Line 56: | ||
**generate a new (/ | **generate a new (/ | ||
update-grub | update-grub | ||
+ | |||
+ | In case of error "no such disc" run | ||
+ | grub-mkdevicemap | ||
+ | |||
**Install to the MBR (no partition number) of the new disc, finally:** | **Install to the MBR (no partition number) of the new disc, finally:** | ||
Line 117: | Line 122: | ||
grub-install /dev/sdX | grub-install /dev/sdX | ||
+ | |||
+ | ===== Bugs ===== | ||
+ | |||
+ | Inside a chroot, grub complains | ||
+ | # update-grub | ||
+ | Generating grub configuration file ... | ||
+ | WARNING: Device /dev/ram0 not initialized in udev database even after waiting 10000000 microseconds. | ||
+ | ... | ||
+ | |||
+ | Fix: | ||
+ | |||
+ | Outside chroot /debian/: | ||
+ | |||
+ | mkdir / | ||
+ | mount --bind /run/udev / | ||
+ | mount --bind /run/udev / | ||
+ | |||
+ | |||
+ | ===== Crypto Bugs ===== | ||
+ | |||
+ | |||
+ | Grub complains root device couldn' | ||
+ | |||
+ | Fix: | ||
+ | - set | ||
+ | GRUB_ENABLE_CRYPTODISK=y | ||
+ | |||
+ | apt install cryptsetup-initramfs lvm2 | ||
+ | | ||
+ | |||
+ | - if it is a brtfs, set in / | ||
+ | btrfs | ||
+ | |||
+ | |||
+ | Commands to execute in chroot to reinstall grub: | ||
+ | |||
+ | update-initramfs -c -k all | ||
+ | grub-install /dev/sdX | ||
+ | update-grub | ||
+ | |||
+ | |||
+ | If update-grub echos: " | ||
+ | |||
+ | mount -o " | ||
+ | |||
+ | is required to mount the @ subvol! | ||