home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.raspberry-pi      Raspberry Pi computers & related hardwar      26,127 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 24,784 of 26,127   
   Jesper to The Natural Philosopher   
   Re: Move bookworm system from SSD to NVM   
   16 Aug 24 20:25:35   
   
   From: Vitsky.kasperski@gmail.com   
      
   On 16.08.2024 15:17, The Natural Philosopher wrote:   
   > On 16/08/2024 13:46, Ahem A Rivet's Shot wrote:   
   >> On Fri, 16 Aug 2024 11:04:26 +0200   
   >> Jesper  wrote:   
   >>   
   >>> raspberrypi@raspberrypi:~ $ sudo dd if=/dev/sda of=/nvme0n1 bs=1b   
   >>> dd: error writing '/nvme0n1': No space left on device   
   >>   
   >>     Your command is missing a /dev it should be:   
   >>   
   >> sudo dd if=/dev/sda of=/dev/nvme0n1 bs=1b   
   >   
   > No. Again 2 things wroing.   
   >   
   > /dev/nvme0 is the RAW device.   
   No, it did not like the 'nvmeO'. Here is what it said:   
   raspberrypi@raspberrypi:~ $ sudo dd if=/dev/sda of=/dev/nvme0   
   dd: skriver til '/dev/nvme0': Ugyldig argument   
   1+0 records in   
   0+0 records out   
   0 bytes copied, 0,000298314 s, 0,0 kB/s   
   'Ugyldig argument' is norwegian for 'illegal argument.   
   But I managed at last to make the copy like this:   
   raspberrypi@raspberrypi:~ $ sudo dd if=/dev/sda of=/dev/nvme0n1   
   500118192+0 records in   
   500118192+0 records out   
   256060514304 bytes (256 GB, 238 GiB) copied, 2157,41 s, 119 MB/s   
   raspberrypi@raspberrypi:~ $   
      
   After that I shut down the raspi, removed SD-card and SSD. Applied   
   power, and it booted from the nvme, and I am running on that while   
   writing this.   
      
   Thanks for all patient help from you all :-)   
      
   Best regards   
      
      
   > bs=1M is correct  for decent transfer rate   
   >   
   >   
   >>   
   >>     The "no space on device" error comes because without the /dev dd is   
   >> attempting to write a file called nvme0n1 in / but since / runs out of   
   >> space before it finishes the file is never closed and thus no directory   
   >> entry is written which is why yuou never see it.   
   >>   
   >>     Also I don't think bs=1b is likely to be a good blocksize (1   
   >> byte). If the version of dd you're using doesn't support bs=1m then try   
   >> bs=1024k or be=1048576. The idea is to get it to use the largest block   
   >> size   
   >> (and thus writes) that the data path will support.   
   >>   
   > bs=1M is sensible.   
   >   
   >   1Mib.   
   >   
      
   --   
   Jesper   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca