Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #244310
| From | David <bouncingcats@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: is it possible to install bullseye by copy whole disk? |
| Date | 2022-01-22 09:30 +0100 |
| Message-ID | <DIjWA-VG-7@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 Sat, 22 Jan 2022 at 18:42, lou <loushanguan2015@sina.com> 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? Hi, in general this kind of thing is quite possible, and I would encourage you to try, and you will learn by doing that. However, there are a few potential problems that you need to be careful to avoid. First, it's best to try this first on a secondary system that you do not rely on for any other important tasks. That way you can experiment without fear of making mistakes. Related, the most important consideration for me would be that, if the usb disk is providing the root file system for a currently running operating system, then I would not attempt to copy that file system to another drive. Because that file system is being used for many things during the copy, and therefore it might be changing during the copy process, and so the copy process might not capture all of the changes. If that occurs, then the copy will differ from the original and might not work correctly. I would only ever copy any drive when it is not in use, to be sure that the copy is an exact replica of the original, and that the original did not change during the copy process. In the case of your question, that means at least 2 systems must be available, one to be copied and another one to do the copying. Another thing to consider is that the copy process must preserve any special attributes of the filesystem, which are likely to be essential to correct functioning of a root file system. So to achieve that might require the copy to be done using a special method. Many years ago when I first tried this kind of thing, I used to make all my root filesystem partitions have exactly the same byte count so that I could use 'dd' to guarantee a bit identical copy. But that is fiddly and inconvenient. For many years I have used 'rsync -haxv -HAXS -W --delete ...' and I have not had any problems that I have noticed, although it is complicated, see for example: https://unix.stackexchange.com/questions/118840/preserving-extended-attributes-with-cp-rsync and I have no expectation that such an 'rsync' command will copy any attributes set using 'chattr'.
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