User Tools

Site Tools


linux:filesystems:boot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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="/proc/*" --exclude="/sys/*" --exclude="/mnt/*" --exclude="/media/*" / /mnt/newsys/         --exclude="/proc/*" --exclude="/sys/*" --exclude="/mnt/*" --exclude="/media/*" / /mnt/newsys/
  
 +-> may cause strange bugs, like permissions in /var/run/, maybe /dev probs
  
 2. simple **copy** with "**cp**" (untested): 2. simple **copy** with "**cp**" (untested):
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 (/mnt/newsys) /boot/grub/grub.cfg**:  **generate a new (/mnt/newsys) /boot/grub/grub.cfg**: 
   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 /debian/run/udev
 +  mount --bind /run/udev /debian/run/udev
 +  mount --bind /run/udev /mnt/run/udev
 +
 +
 +===== Crypto Bugs =====
 +
 +
 +Grub complains root device couldn't be found 
 +
 +Fix: 
 +- set 
 +  GRUB_ENABLE_CRYPTODISK=y
 +
 +  apt install cryptsetup-initramfs lvm2
 +  
 +
 +- if it is a brtfs, set in /etc/initramfs/modules
 +  btrfs 
 +
 +
 +Commands to execute in chroot to reinstall grub:
 +
 +  update-initramfs -c -k all
 +  grub-install /dev/sdX
 +  update-grub
 +
 +
 +If update-grub echos: "cannot find device for / in fstab" and you have a btrfs rootsys:
 +
 +  mount -o "subvol=@" /dev/mapper/vgubuntu-root 
 +
 +is required to mount the @ subvol!
  
linux/filesystems/boot.1365202379.txt.gz ยท Last modified: 2013/04/06 00:53 (external edit)