Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.linux.ubuntu    |    I preferred Xubuntu, seemed a bit faster    |    134,477 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 133,503 of 134,477    |
|    Dan Purgert to All    |
|    Re: how to incorporate gzip lines with m    |
|    02 Nov 23 10:08:31    |
      From: dan@djph.net              On 2023-11-02, bilsch01 wrote:       > Hello, I was never very good at linux scripting, and now I've forgotten       > much what I did know. I hope somebody here can help me incorporate gzip       > with the dd copy lines I use for backing up laptop to an external drive.       > The two different thumb drives I use to boot laptop and copy SDD are       > 1) Ubuntu Installer and 2) Knoppix. Both of those come with gzip.       > I've never actually ever used gzip.       >       > Here's the lines I use to copy the SDD contents to an external drive:       >       > ## first do fdisk -l to sort out the devices       > sudo mkdir -p /mnt/sdb1 (creating a mount point)       > sudo mount -t ntfs /dev/sdb1 /mnt/sdb1       > sudo mkdir -p /mnt/sdb1/images (if u don't already have that directory)       > sudo dd if=/dev/nvme0n1 of=/mnt/sdb1/images/asyymmdd.img bs=4096       > conv=notrunc,noerror              You'd need something to the effect of:        dd if=/the/device (NO if=) [...] | gzip > /mnt/sdb1/images/xx.img.gz              restore would be:               gunzip -c xx.img.gz | dd (NO if=) of=/dev/whatever [...]              But that's just from a quick spin on the corresponding manpages for the       commands themselves. I'd test it on something small (e.g. a USB stick       image) before doing it on the main drive.              --       |_|O|_|       |_|_|O| Github: https://github.com/dpurgert       |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860              --- 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