2022-01-22 12:36 GMT+05:00, lou <loushanguan2...@sina.com>: > i've installed bullseye on usb disk > > can i copy it to hard disk (sda2) and make necessary change in > /etc/fstab and > > then update grub of usb disk to boot sda2?
yes, i do this: 1) make neccessary partitions and fs and mount them -- man parted, man mkfs, may be man pvcreate, man vgcreate, man lvcreate, man mount) 2) copy files with xattrs, selabels, capabilities to new place (/boot to new boot partition, / to new root partition, etc) -- man cp or man rsync 3) change fstab on new system -- man vi or man nano 4) mount / and after that /boot (if exists) into /mnt and /mnt/boot respectively 5) mount --bind /dev /mnt/dev; mount --bind /sys /mnt/sys; mount --bind /proc /mnt/proc 6) grub-install /dev/disk # /dev/disk is a device with new /boot part 7) umount all from /mnt About 15 years ago similar process was used to deploy several hundreds of new workstations from prepared tar of master image - simply boot from livecd and unpack system to prepared mountpoint. If you ask such questions - get some practice on virtual machine before install on real computer. -- Stanislav