Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
First you say you want to backup sda1, but you're attempting to back up the entire drive - including swap. Can be done, but it pays to know exactly what you want to do with backups.
Next I suspect the external drive is partitioned, so the "of" should probably be referencing /dev/sdb1. Let's see the output from this
If you want to store the image on an existing filesystem on the external drive you will need to mount it somewhere (like /mnt/external/ or such) and invoke dd something like
@ descendant_command:
-2300:~$ sudo dd if=/dev/sda1 of=/media/sdb1/DiskDump04Ju15/sda1.dd.img
dd: opening `/media/sdb1/DiskDump04Ju15/sda1.dd.img': No such file or directory
2300:~$ sudo dd if=/dev/sda1 of=/dev/sdb1/DiskDump04Ju15/sda1.dd.img
dd: opening `/dev/sdb1/DiskDump04Ju15/sda1.dd.img': Not a directory
I think we are very close. I try to make a directory on the expansion drive:
joseph@joseph-TravelMate-2300:~$ cd /media
joseph@joseph-TravelMate-2300:/media$ ls
Seagate Expansion Drive
joseph@joseph-TravelMate-2300:/media$ cd Seagate Expansion Drive
bash: cd: Seagate: No such file or directory
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,501
Rep:
Question: Why do you want to back up with dd, would it not be easier to use tar (or maybe rsync); do you want copies of your files or your disk?
I suspect tar (& gzip) is what you really want to use.
@ Fatmac Thanks for the references! Also you have tweaked an idea: perhaps I should be doing all this from a live CD; that way I will not be mounted on sda1? What I am trying to accomplish is an image file of my computer, or at least sda1. This computer is ten years old, a broken XP, that was donated to me after a devastating house robbery. I wiped the disk and installed Unbuntu and I have no backup other than personal files like music and documents that I have moved into folders on the backup drive (2T, USB.)
It has taken a long time to set up 12.04-nonPAE. (I have gone through various ver. of Ubuntu) I have resolved several HW issues and I want to save this work in the event of a disk failure.
I will put in a live CD and go through this routine again! :-)
Options: ro (read-only mount), remove_hiberfile, uid=, gid=,
umask=, fmask=, dmask=, streams_interface=.
Please see the details in the manual (type: man ntfs-3g).
It did not mount; but what has happened is that lsblk now shows that the external drive is seen as sdc, no longer sdb! I feel like the shit is getting deeper.
I just want to make an image file of sda1 onto an external drive. I did this a long time ago with Windows7 onto this same external drive. It was a three button event. There must be some way to do it in Linux.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.