Return to Level1Techs.com

The small linux problem thread

linux
helpdesk

#1924

Illegal under DMCA.


#1925

pedantics.


#1926

The DMCA is my favorite legislation to

Violate


#1927

Wasn’t it changed recently so you could break DRM to fix your machine?

Edit, an link


#1928

Is the device that the drm content was delivered on broken?

if so, I’d argue that breaking the drm to get the content you purchased, is acceptable.


#1929

Upgraded my Fedora workstation to 29.

No problems, big or small, just sayin’ :grin: It’s that time.

image


#1930

The first ibm fedora release


#1931


#1932

So, one of my long time goals with my fileserver has always been to have a simple backup solution. Plug a USB hard drive into the front of the case, walk away, come back later and it’s done sort of simple.

I have a rsync script that works fine with my two USB hard drives, and I run it from my desktop from time to time. I have done some research and understand how to make a UDEV rule to launch a script, so I am pretty sure I can modify what I have to accomplish the main goal.

For the cherry on top, I’d like to do one final thing: gracefully unmount the USB hard drive when rsync is done and make the PC speaker beep incessantly until it is unplugged. Anyone have an idea on doing this?

I’ll probably have some time this weekend to work on this. If I can muster up the desire. I also have to relearn how to replace a drive in a ZFS pool.


#1933

OK so I have Fedora 28 with some RPMFusion repos and the jerbear Mesa+DXVK repo. Am I asking for trouble if I hit the upgrade button?


#1934

dnsmasq question:

I have a router configured with dnsmasq, which is working fine except that when I query the router’s hostname, I get the loopback address (127.0.0.1). I can add a static entry for it, but host router.whatever.tld still returns both the static address and 127.0.0.1. Arguably, there’s never a good reason for any DNS server to return a 127 address at all.

Is there a solution here?


#1935

Is your OS installed on an LVM volume? If you’re uncertain, just take a snapshot and record which kernel you’re running, so you can revert if it goes to shit.

Did it get any bluer?


#1936

Actually, it isn’t. The root partition is installed straight to an ext4 partition. /home is installed to a separate ext4 partition. I’ve always felt that LVM adds an extra layer of complexity (that I don’t really understand) in the event that the filesystem needs repair.


#1937

To me, LVM is the easiest way to add snapshot capabilities to a bare metal Linux system, which is ideally what you want here.

For a plain ext4 partition on the drive, I believe the best thing is to dd the drive either to another drive or an image file which you can restore from in case the upgrade goes badly.


#1938

dd’ing now to external USB drive. God, I love pigz…


#1939

Adding this for posterity sake


Compression

dd if=/dev/sdX | gzip -c | dd of=Backup.img.gz

Decompression

dd if=Backup.img.gz | gzip -d | dd of=/dev/sdX

#1940

I almost never use dd without compression because why not - CPU’s are too fast not to.


#1941

For compression I performed:

dd if=/dev/sda | pigz --fast > /backup-path/Backup.img.gz

For decompression I think I’d use:

gunzip /backup-path/Backup.img.gz | dd of=/dev/sda

dd will accept stdin, right?


#1942

Yeah, dd accepts stdin. Your methods are probably the most efficient option for compressed dd backup/restore.


#1943

idk try it.

echo “Hello World!” | dd | cat