0

I am trying to backup to ehdd while on a liveUSB but when I write

$dd if=/dev/sda6 bs=8M | gzip -9 > /media/usb/backupimage.gz

I get the message "failed to open /dev/sda6':Permission denied (the /home/folder in there is encrypted).

What do I need to do?

I want to backup before resizing partitions with gparted before reinstalling system.

  • 1
    Welcome to Ask Ubuntu. Please edit your question and add more new information. How did you encrypt the home partition? Did you use cryptfs? – user68186 Mar 23 '19 at 21:28
  • This was done many years ago in an earlier Ubuntu version around 2007 so I do not recall exactly what package did the encryption. – user3067676 Mar 23 '19 at 23:22
  • I am not sure the "permission denied" is because of the encrypted /home/folder. Please copy and paste the contents of the file /etc/fstab in your question. Please edit the question and add new information up there. format the pasted content as code, as you have done before with the dd command. – user68186 Mar 25 '19 at 16:39
  • Please remember I have access only via terminal. No cut and paste for me.... – user3067676 Mar 26 '19 at 13:22
  • You can highlight the text in terminal and press Ctrl+Shift+C to copy Right clicking the mouse button after highlighting will also give you the option to copy. – user68186 Mar 26 '19 at 13:29
  • Have you tried the same command (you wrote in the question) with sudo? – user68186 Mar 26 '19 at 13:31
  • Please write your own answer in the "Your Answer" window below. Later please accept your answer as the correct one, by placing the green check mark ✅ on its left margin. This will help others. – user68186 Mar 26 '19 at 17:07

0 Answers0