INTL 3:770/1 3:770/3   
   REPLYADDR tnp@invalid.invalid   
   REPLYTO 3:770/3.0 UUCP   
   MSGID: 09bbdd1c   
   REPLY: 031faad5   
   PID: SoupGate-Win32 v1.05   
   On 01/08/2024 20:02, Jesper wrote:   
   > On 01.08.2024 20:29, Ahem A Rivet's Shot wrote:   
   >> On Thu, 1 Aug 2024 19:50:20 +0200   
   >> Jesper wrote:   
   >>   
   >>> But I can try running both commands:   
   >>> dd if=/dev/sda2 of=/dev/nvme0n1 bs=1m   
   >>   
   >> This will copy sda2 to nvme0n1   
   >>   
   >>> dd if=/dev/sda1 of=/dev/nvme0n1 bs=1m   
   >>   
   >> This will overwrite that copy with sda1. You would probably be   
   >> better off cloning sda as a whole - that will get all partitions, boot   
   >> sectors etc.   
   >>   
   > Yes, that's also what The Natural Philosopher says in his reply. And I   
   > know that you both of course are right.   
   > But I still do not know what a command that clones both sda1 and sda2 to   
   > NVME should look like. Please?   
   >   
   > When I run ls /media i get this:   
   > raspberrypi@raspberrypi:~ $ ls /media   
   > raspberrypi   
   >   
   > Could this work to clone the whole disc:   
   > dd if=/dev/raspberrypi of=/dev/nvme0n1 bs=1m   
   >   
   > Best regards   
      
   Something like that. But..   
      
   In *nix the whole disk is normally given at connection time a device   
   name like /dev/sda   
   whereas its *partitions* would be /dev/sda1, /dev/sda2 etc etc.   
      
   when its mounted under /media it may have another name.   
      
   The mount command will show what devices you have and where they are   
   mounted.   
   So with the disks attached try   
      
   mount | grep '^/dev'   
      
   To identify the device name.   
      
   E.g. when I use the above command on as USB attached raspberry PI   
   bootable drive on my desktop machine I get this:   
      
   /dev/sda5 on / type ext4 (rw,relatime,errors=remount-ro)   
   /dev/sda1 on /boot/efi type vfat   
   (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso885   
   -1,shortname=mixed,errors=remount-ro)   
   /dev/sdb1 on /media/leo/bootfs type vfat   
   (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=002   
   ,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,   
   lush,errors=remount-ro,uhelper=udisks2)   
   /dev/sdb2 on /media/leo/rootfs type ext4   
   (rw,nosuid,nodev,relatime,uhelper=udisks2)   
      
   This shows that the actual PC is running off /dev/sda. but the Pi disk   
   has been given the name /dev/sdb   
      
   The fact that its been automounted on /media is irrelevant You can only   
   mount *partitions* but you want the whole disk - in this case /dev/sdb2   
      
      
   --   
   The higher up the mountainside   
   The greener grows the grass.   
   The higher up the monkey climbs   
   The more he shows his arse.   
      
   Traditional   
      
   --- SoupGate-Win32 v1.05   
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)   
   SEEN-BY: 1/19 16/0 19/37 80/1 90/1 105/81 106/201 123/130 129/305   
   SEEN-BY: 142/104 153/757 7715 203/0 218/700 840 220/70 221/1 6 242   
   SEEN-BY: 221/360 226/17 30 100 227/114 229/110 111 114 200 206 300   
   SEEN-BY: 229/317 400 426 428 470 550 616 664 700 230/0 240/5832 266/512   
   SEEN-BY: 267/800 280/5003 282/1038 291/111 292/854 301/1 310/31 320/119   
   SEEN-BY: 320/219 319 2119 322/757 762 325/304 335/364 341/66 342/200   
   SEEN-BY: 396/45 423/81 460/58 633/280 712/848 770/1 3 100 330 340   
   SEEN-BY: 772/210 220 230 5020/400 5053/58 5058/104 5075/35   
   PATH: 770/3 1 218/840 221/6 1 320/219 229/426   
      
|