Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 42 |
Nodes: | 6 (0 / 6) |
Uptime: | 01:29:02 |
Calls: | 220 |
Calls today: | 1 |
Files: | 824 |
Messages: | 121,541 |
Posted today: | 6 |
On 01.08.2024 21:38, Björn Lundin wrote:
On 2024-08-01 21: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 <Vitsky.kasperski@gmail.com> wrote:
But I still do not know what a command that clones both sda1 and sda2
to NVME should look like. Please?
Really? It is given to you more than once
dd if=/dev/sda of=/dev/nvme0n1 bs=1m
Now I have the nvme installed and showing in a lsblk command.
Booted from a SD-card and did a few tries to copy the system from SSD to nvme.
First there was a complaint about the switch "1m". Changed it to "1b"
and got a complaint about missing permission to open SDA (the SSD I want
to copy from). Threw a sudo at it, and it ran for maybe half an hour,
until it stopped with error "writing nvme0n1, No space left on device".
The SSD and the nvme have the same size, and that seems to be a problem.
Bright ideas are welcome :-)
Below I have copied in what happend in the command line: raspberrypi@raspberrypi:~ $ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 0 238.5G 0 disk
├─sda1 8:1 0 512M 0 part /media/raspberrypi/bootfs
└─sda2 8:2 0 238G 0 part /media/raspberrypi/rootfs
mmcblk0 179:0 0 58G 0 disk
├─mmcblk0p1 179:1 0 512M 0 part /boot/firmware └─mmcblk0p2 179:2 0 57.5G 0 part /
nvme0n1 259:0 0 238.5G 0 disk
raspberrypi@raspberrypi:~ $ dd if=/dev/sda of=/nvme0n1 bs=1m
dd: invalid number: ‘1m’
raspberrypi@raspberrypi:~ $ dd if=/dev/sda of=/nvme0n1 bs=1b
dd: failed to open '/dev/sda': Permission denied
raspberrypi@raspberrypi:~ $ dd if=/dev/sda of=/nvme0n1
dd: failed to open '/dev/sda': Permission denied
raspberrypi@raspberrypi:~ $ sudo dd if=/dev/sda of=/nvme0n1 bs=1b
dd: error writing '/nvme0n1': No space left on device
107929249+0 records in
107929248+0 records out
55259774976 bytes (55 GB, 51 GiB) copied, 1476.65 s, 37.4 MB/s raspberrypi@raspberrypi:~
Best regards
On 16.08.2024 12:40, The Natural Philosopher wrote:
On 16/08/2024 10:04, Jesper wrote:Thank you for the reply.
On 01.08.2024 21:38, Björn Lundin wrote:
On 2024-08-01 21: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 <Vitsky.kasperski@gmail.com> wrote:
But I still do not know what a command that clones both sda1 and
sda2 to NVME should look like. Please?
Really? It is given to you more than once
dd if=/dev/sda of=/dev/nvme0n1 bs=1m
Now I have the nvme installed and showing in a lsblk command.
Booted from a SD-card and did a few tries to copy the system from SSD
to nvme.
First there was a complaint about the switch "1m". Changed it to "1b"
and got a complaint about missing permission to open SDA (the SSD I
want to copy from). Threw a sudo at it, and it ran for maybe half an
hour, until it stopped with error "writing nvme0n1, No space left on
device".
The SSD and the nvme have the same size, and that seems to be a problem. >>> Bright ideas are welcome :-)
Below I have copied in what happend in the command line:
raspberrypi@raspberrypi:~ $ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 238.5G 0 disk
├─sda1 8:1 0 512M 0 part /media/raspberrypi/bootfs
└─sda2 8:2 0 238G 0 part /media/raspberrypi/rootfs
mmcblk0 179:0 0 58G 0 disk
├─mmcblk0p1 179:1 0 512M 0 part /boot/firmware
└─mmcblk0p2 179:2 0 57.5G 0 part /
nvme0n1 259:0 0 238.5G 0 disk
raspberrypi@raspberrypi:~ $ dd if=/dev/sda of=/nvme0n1 bs=1m
dd: invalid number: ‘1m’
raspberrypi@raspberrypi:~ $ dd if=/dev/sda of=/nvme0n1 bs=1b
dd: failed to open '/dev/sda': Permission denied
raspberrypi@raspberrypi:~ $ dd if=/dev/sda of=/nvme0n1
dd: failed to open '/dev/sda': Permission denied
raspberrypi@raspberrypi:~ $ sudo dd if=/dev/sda of=/nvme0n1 bs=1b
dd: error writing '/nvme0n1': No space left on device
107929249+0 records in
107929248+0 records out
55259774976 bytes (55 GB, 51 GiB) copied, 1476.65 s, 37.4 MB/s
raspberrypi@raspberrypi:~
Best regards
WTF is '/nvme0n1' ?"nvme0n1" is the "fucking" NVME I have installed in the raspi5.
I see no trace of the new file you are referring to.
It looks like you have created a file in the root directory of the
device you are copying from....
Best regards
On 16.08.2024 13:23, The Natural Philosopher wrote:
On 16/08/2024 12:19, Jesper wrote:raspberrypi@raspberrypi:~ $ ls /n*
On 16.08.2024 12:40, The Natural Philosopher wrote:
On 16/08/2024 10:04, Jesper wrote:Thank you for the reply.
On 01.08.2024 21:38, Björn Lundin wrote:
On 2024-08-01 21: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 <Vitsky.kasperski@gmail.com> wrote:
But I still do not know what a command that clones both sda1 and >>>>>>> sda2 to NVME should look like. Please?
Really? It is given to you more than once
dd if=/dev/sda of=/dev/nvme0n1 bs=1m
Now I have the nvme installed and showing in a lsblk command.
Booted from a SD-card and did a few tries to copy the system from
SSD to nvme.
First there was a complaint about the switch "1m". Changed it to
"1b" and got a complaint about missing permission to open SDA (the
SSD I want to copy from). Threw a sudo at it, and it ran for maybe
half an hour, until it stopped with error "writing nvme0n1, No
space left on device".
The SSD and the nvme have the same size, and that seems to be a
problem.
Bright ideas are welcome :-)
Below I have copied in what happend in the command line:
raspberrypi@raspberrypi:~ $ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 238.5G 0 disk
├─sda1 8:1 0 512M 0 part /media/raspberrypi/bootfs
└─sda2 8:2 0 238G 0 part /media/raspberrypi/rootfs
mmcblk0 179:0 0 58G 0 disk
├─mmcblk0p1 179:1 0 512M 0 part /boot/firmware
└─mmcblk0p2 179:2 0 57.5G 0 part /
nvme0n1 259:0 0 238.5G 0 disk
raspberrypi@raspberrypi:~ $ dd if=/dev/sda of=/nvme0n1 bs=1m
dd: invalid number: ‘1m’
raspberrypi@raspberrypi:~ $ dd if=/dev/sda of=/nvme0n1 bs=1b
dd: failed to open '/dev/sda': Permission denied
raspberrypi@raspberrypi:~ $ dd if=/dev/sda of=/nvme0n1
dd: failed to open '/dev/sda': Permission denied
raspberrypi@raspberrypi:~ $ sudo dd if=/dev/sda of=/nvme0n1 bs=1b
dd: error writing '/nvme0n1': No space left on device
107929249+0 records in
107929248+0 records out
55259774976 bytes (55 GB, 51 GiB) copied, 1476.65 s, 37.4 MB/s
raspberrypi@raspberrypi:~
Best regards
WTF is '/nvme0n1' ?"nvme0n1" is the "fucking" NVME I have installed in the raspi5.
Not as far as dd is concerned.
What does the outpout of
ls /n*
ls: klarte ikke å åpne '/n*': Ingen slik fil eller filkatalog
It means "Could not open /n*. No such file or catalog"
andraspberrypi@raspberrypi:~ $ ls /dev/n*
ls /dev/n*
show?
/dev/ng0n1 /dev/null /dev/nvme0 /dev/nvme0n1
raspberrypi@raspberrypi:~ $ sudo dd if=/dev/sda of=/nvme0n1 bs=1b
dd: error writing '/nvme0n1': No space left on device
On Fri, 16 Aug 2024 11:04:26 +0200
Jesper <Vitsky.kasperski@gmail.com> 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
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.
On 16/08/2024 10:04, Jesper wrote:
The SSD and the nvme have the same size ...
But are they?