Reputation
2,256
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
5 15
Impact
~60k people reached

23h
comment Unix equivalent of smart folders
ah. overlayfs is in linux mainline kernels now (the other kernel union mounts had to be patched in). It looks like Debian stable is still reliant on aufs though.
1d
comment Is there ever a good reason to run sudo su?
"Your home will not be root's home" (for sudo -s) - I believed this too, but the env's shown in the question don't bear it out! (Nor testing). Still, if I know sudo -i is supposed to work, it seems best to avoid stacking sudo and su.
1d
comment rsync is changing my directory permissions
If permission bits are turned off in the source file, rsync will apply the same to the destination file, --no-perms is the default and adding it does not change behavior. The man page does suggest adding --chmod=ugo=rwX if you want to re-enable the permission bits in the destination file, so I think that's the option you need. Ownership (including group) is not copied by default, it's just the permission bits.
2d
comment How do I resize a windows partition without using gparted?
i've submitted an edit to put the second ntfsresize after the fdisk write, the other way round didn't make sense. looking great now + upvoted :).
2d
comment How do I resize a windows partition without using gparted?
Nice demo! You left some margin but only 5%, if you're trying to cover GB/GiB unit error I believe that's around 7%. I also recommended a final resize with no explicit size, to automatically take up the margin - at least it would exclude some future puzzlement.
Jul
26
comment grub2: error: /vmlinuz-3.16-ucs109-amd64.efi.signed has invalid signature
Honestly I would guess the root problem is reflected in the very first GRUB error message. It sounds like GRUB is installed fine. (In the EFI System Partition, as expected for EFI, and not in the MBR). I don't have any further ideas though.
Jul
26
comment grub2: error: /vmlinuz-3.16-ucs109-amd64.efi.signed has invalid signature
I can't find the list of chroot commands in your paste link?
Jul
24
comment rsync is changing my directory permissions
--no-perms is the default already, it shouldn't be necessary in this example.
Jul
24
comment apt-get: changing status of packages in bulk to not automatically installed
xfce4 depends e.g. on thunar. Thunar will still be marked "automatically installed" but it will not be listed during other apt-get operations, nor removed by apt-get autoremove. See dep thunar etc at packages.debian.org/jessie/xfce4 ... if that's not the case then something is going very wrong :(.
Jul
20
comment Enlarge a filesystem image
Btw @JohnnyBoy there's a convenient shortcut mount -oloop file /path that does the losetup bit for you automatically.
Jul
20
comment Enlarge a filesystem image
Sorry, fixed. truncate works too, and there is a difference in the result w.r.t possible performance (commented on the other answer).
Jul
20
comment Enlarge a filesystem image
Nice, I see the seek method doesn't require conv=notrunc (but there's still the possibility to botch it if you get the size too small, in the same way as truncate). The manpage says dd sets the size it truncates to to the value of the seek argument.
Jul
20
comment Enlarge a filesystem image
Both are useful. The seek / truncate method creates a "sparse file", where the space is not allocated until content is written to it. The result may become more fragmented on-disk as a result.
Jul
16
comment How do I set up bind mounts on startup correctly in the systemd world?
I have a circular mount / -> /d/root and it seems to work (Debian 8). I can't work out how your result could follow from a mis-ordering. The mounts shown for non-existent directories are odd, it's almost as if they're still there but an empty filesystem was mounted on top later on. Can I suggest a) findmnt (it shows the source directory of binds as well) b) looking at inode numbers using stat, they should match for both the target and source directory.
Jul
1
comment Why to choose (sd-pam) as a process name?
Maybe I read the comment by @kos sub-consciously, but I was just about to say it's probably to avoid people looking in vain for a binary called sd-pam. After reading that ps already uses the exact same syntax, that may well be deliberate. Certainly there would be other process listing tools that don't add the brackets. (systemd-cgls?)
Jun
29
comment Is it possible to tell what source loaded a Linux kernel module?
I don't particularly understand why the nomatch platform option is there btw. Might be some policy from the udev developers, telling kernel devs they were doing something the wrong way (by breaking the pattern they used).
Jun
29
comment Is it possible to tell what source loaded a Linux kernel module?
I apologize for my vagueness. It could be the of: alias. OpenFirmware, right? udev finds something exposed by the firmware, somewhere under sysfs, with a matching modalias file. It effectively runs modprobe with the contents of that modalias file. (In new versions of udev, it uses libkmod). This is the same process e.g. how usb-storage is loaded when you plug in a USB stick. The udev initscript scans all devices in sys at boot, which is called "coldplug" because it's not quite "hotplug".
Jun
28
comment Is it possible to tell what source loaded a Linux kernel module?
I think c_can_platform is loaded first - going by "used by" in lsmod output. So that's what you want to check for aliases rather than c_can.
Jun
28
comment Is it possible to tell what source loaded a Linux kernel module?
ok rtnl-link-can won't be in /sys/devices, it's not the normal udev coldplug. that modalias must be to do with netlink sockets... basically if you ran some program that tries to configure a CAN bus in a certain way it would load that module.
Jun
28
comment Is it possible to tell what source loaded a Linux kernel module?
check dmesg. If there's an init-thingy it should say like [ 0.404592] Unpacking initramfs... [ 1.021297] Freeing initrd memory: 18764K (ffff880035b4a000 - ffff880036d9d000)