• 0 Posts
  • 240 Comments
Joined 1 year ago
cake
Cake day: June 19th, 2023

help-circle










  • If I understand the problem correctly it has a pretty simple solution that I have done before. Make a new partition on the destination and dd if=/dev/diskAsB of=/dev/diskXsY where A is the source disk and B is the source partition and X is the destination disk and Y is the destination partition. You may have to run fsck on the destination afterwards and maybe a gpt repair tool.

    Honestly though, since it’s an ext filesystem, if it were me I’d just mount the source and dest and rsync.




  • I had the same experience on my one gui Ubuntu machine. I also have several headless machines, and due to some shared libraries I always ended up with snapd installed even though none of the packages I was running were installed through snap. I always found it through the mount point pollution that snapd does.




  • Sadly, it was Grace Hopper who said “It’s easier to ask forgiveness than it is to get permission.”

    Rear Admiral Grace Murray Hopper (9 December 1906 – 1 January 1992) was a U.S. Naval officer, and an early computer programmer. She was the developer of the first compiler for a computer programming language; at the end of her service she was the oldest serving officer in the United States Navy.

    That brings me to the most important piece of advice that I can give to all of you: if you’ve got a good idea, and it’s a contribution, I want you to go ahead and DO IT. It is much easier to apologize than it is to get permission.

    • The future: Hardware, Software, and People in Carver, 1983

  • It’s not a typo. The first section of the regex is a matching section, where a dot means “match any character”, and an escaped dot is a literal dot character. The second section is the replacement section, and you don’t have to escape the dot there because that section isn’t matching anything. You can escape it though if it makes the code easier to read.

    rename is written in Perl so all Perl regular expression syntaxes are valid.

    However, your comment did make me realize that I hadn’t escaped a dot in the third example! So I fixed that.