You are reading a single comment by @aggi and its replies. Click here to read the full conversation.
  • I'm trying to back up my primary ssd to an external hard drive using dd

    NAME                  FSTYPE        SIZE MOUNTPOINT LABEL
    sda                               238.5G
    ├─sda1                ext2          487M /boot
    ├─sda2                                1K
    └─sda5                LVM2_member   238G
      ├─ubuntu--vg-root   ext4        234.3G /
      └─ubuntu--vg-swap_1 swap          3.7G [SWAP]
    sdb                                 1.8T
    ├─sdb1                              300G
    ├─sdb2                ext4          300G
    └─sdb3                ntfs          1.2T            1200Size
    

    I'm trying to back up sda to an image file on sdb2 using the command

    sudo dd if=/dev/sda of=/dev/sdb2/plexdisk.img
    

    but getting the message

    dd: failed to open '/dev/sdb2/plexdisk.img': Not a directory
    

    Any suggestion what I'm doing wrong? Cheers

  • You haven't mounted the target partition, sdb2 is just the device node. Also I suspect there's a chance you'll end up with a corrupt image if you dd a drive (your sda) while there are partitions mounted as rw.

About

Avatar for aggi @aggi started