Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #244345
| From | David Christensen <dpchrist@holgerdanske.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: is it possible to install bullseye by copy whole disk? |
| Date | 2022-01-22 18:50 +0100 |
| Message-ID | <DIsGt-68N-1@gated-at.bofh.it> (permalink) |
| References | <DGIZ4-6Qf-5@gated-at.bofh.it> <DIj0t-lU-1@gated-at.bofh.it> <DIjjQ-tf-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 1/21/22 11:36 PM, lou wrote: > 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? > > Thanks! I have a SOHO network with about a dozen IoT, iOS, Android, Windows, macOS, Debian GNU/ Linux, and FreeBSD machines. Copying/ imaging/ cloning Debian (and FreeBSD) operating system instances from one device to another is possible. There are multiple choices. A simple case is to image the entire device. Boot the Debian Installer (d-i) (or a live Linux distribution) and use dd(1) to copy the entire USB drive to the entire HDD: # dd bs=1M if=/dev/disk/by-id/usb-... of=/dev/disk/by-id/ata-... When done, shut down the computer, disconnect the USB drive, boot the computer, enter the CMOS setup utility, adjust the settings, save the settings, exit Setup, and boot the HDD. Of course, the number of sectors on the target device must be equal to or larger than the number of allocated sectors on the source device. And, if the device uses GPT partitioning, you must deal with the backup partition table at the end. Also note that if the USB disk was partitioned with the MBR scheme, the d-i may have written an entry to /etc/crypttab or /etc/fstab for swap that uses a /dev/sd?? partition node. (Boot and/or root should be based upon UUID). Using /dev/sd* nodes is brittle and can break if you add, remove, or rearrange drives. My fix is to replace the swap partition /dev/sd?? value with a /dev/disk/by-partuuid/... value. While doing the work by hand from a d-i rescue console or a live Linux distribution terminal is possible, it is error prone. I have written scripts to automate most of the steps. Alternatively, there are purpose-built tools for cloning drives. Clonezilla is one FOSS example: https://clonezilla.org/ David
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
firejail: changing Ethernet network adapter name is breaking Firefox profile piorunz <piorunz@gmx.com> - 2022-01-17 23:50 +0100
Re: firejail: changing Ethernet network adapter name is breaking Firefox profile Darac Marjal <mailinglist@darac.org.uk> - 2022-01-18 00:00 +0100
Re: firejail: changing Ethernet network adapter name is breaking Firefox profile piorunz <piorunz@gmx.com> - 2022-01-18 02:30 +0100
Re: firejail: changing Ethernet network adapter name is breaking Firefox profile Andrei POPESCU <andreimpopescu@gmail.com> - 2022-01-22 08:30 +0100
is it possible to install bullseye by copy whole disk? lou <loushanguan2015@sina.com> - 2022-01-22 08:50 +0100
Re: is it possible to install bullseye by copy whole disk? Andrei POPESCU <andreimpopescu@gmail.com> - 2022-01-22 09:30 +0100
Re: is it possible to install bullseye by copy whole disk? lou <loushanguan2015@sina.com> - 2022-01-22 11:00 +0100
Re: is it possible to install bullseye by copy whole disk? David <bouncingcats@gmail.com> - 2022-01-22 09:30 +0100
Re: is it possible to install bullseye by copy whole disk? Stanislav Vlasov <stanislav.v.v@gmail.com> - 2022-01-22 13:00 +0100
Re: is it possible to install bullseye by copy whole disk? Cindy Sue Causey <butterflybytes@gmail.com> - 2022-01-22 13:10 +0100
Re: is it possible to install bullseye by copy whole disk? David Christensen <dpchrist@holgerdanske.com> - 2022-01-22 18:50 +0100
Re: is it possible to install bullseye by copy whole disk? Andrei POPESCU <andreimpopescu@gmail.com> - 2022-01-22 23:50 +0100
Re: firejail: changing Ethernet network adapter name is breaking Firefox profile <tomas@tuxteam.de> - 2022-01-22 10:10 +0100
Re: firejail: changing Ethernet network adapter name is breaking Firefox profile piorunz <piorunz@gmx.com> - 2022-01-22 12:40 +0100
Re: firejail: changing Ethernet network adapter name is breaking Firefox profile David Wright <deblis@lionunicorn.co.uk> - 2022-01-22 17:00 +0100
Re: firejail: changing Ethernet network adapter name is breaking Firefox profile <tomas@tuxteam.de> - 2022-01-22 17:30 +0100
Re: firejail: changing Ethernet network adapter name is breaking Firefox profile Greg Wooledge <greg@wooledge.org> - 2022-01-22 17:50 +0100
Re: firejail: changing Ethernet network adapter name is breaking Firefox profile Andrei POPESCU <andreimpopescu@gmail.com> - 2022-01-23 00:00 +0100
Re: firejail: changing Ethernet network adapter name is breaking Firefox profile Tixy <tixy@yxit.co.uk> - 2022-01-23 08:10 +0100
Re: firejail: changing Ethernet network adapter name is breaking Firefox profile piorunz <piorunz@gmx.com> - 2022-01-22 12:40 +0100
Re: firejail: changing Ethernet network adapter name is breaking Firefox profile David Wright <deblis@lionunicorn.co.uk> - 2022-01-22 17:00 +0100
Re: firejail: changing Ethernet network adapter name is breaking Firefox profile Andrei POPESCU <andreimpopescu@gmail.com> - 2022-01-23 00:00 +0100
csiph-web