Reputation
1,941
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
5 12
Newest
 Student
Impact
~50k people reached

Feb
1
comment Why do I get mail when I unplug my adapter?
maybe because of udev timeouts; you're not supposed to run stuff directly from udev if it's going to e.g. sleep for 60 seconds.
Jan
31
comment Why do I get mail when I unplug my adapter?
either should work
Jan
31
comment Can a systemd dependency be applied only to a unit's “ExecStart” action?
Scratch that, I just read your post comment about systemd-cryptsetup and RequiresMountsFor
Jan
31
comment Can a systemd dependency be applied only to a unit's “ExecStart” action?
I'm quite surprised. I admit I haven't tested this. However I wouldn't have expected that systemd would detect the service accessing the filesystem & generate a dependency like that. Does a dependency show up in systemctl list-dependencies?
Jan
30
comment Can a systemd dependency be applied only to a unit's “ExecStart” action?
actually your override seems wrong. surely you should have After= as well. "If two units have no ordering dependencies between them, they are shut down or started up simultaneously". if it's happening to work at the moment, you could try replacing Requires with After and it might happen to work how you want it :P. not recommended tho.
Jan
27
comment Why isn't sda1 showing up in dev and how can I fix that?
Unless you really want to hack udev, or hack your broken system image to downgrade udev / mount devtmpfs, I think you found the right solution. However you need to check if /dev/ is a normal tmpfs. In that case it won't survive reboot. There used to be init scripts that created nodes in the tmpfs. Possibly copying from /dev/.static/dev?. So you'd want to create a node there too.
Jan
27
comment Why isn't sda1 showing up in dev and how can I fix that?
I'm pretty sure your /dev/ is not devtmpfs. E.g. it contains MAKEDEV. This is an ancient script which was used to create device nodes for all commonly used devices, regardless of whether they exist on the current system.
Jan
27
comment Why isn't sda1 showing up in dev and how can I fix that?
Definitely not the USB driver. Maybe you have a recent version of udev, which never creates device nodes. It assumes /dev/ is a devtmpfs filesystem, where the device nodes are created by the kernel. Check the NEWS for udev 176.
Jan
20
comment Automounting NTFS Hard drive in Centos 7
If the Mount Options dialog is lying (about the additional auth bit) then I have no idea, sorry.
Jan
19
comment Automounting NTFS Hard drive in Centos 7
ah, nofail should avoid any problems booting. The changes will take effect immediately. (but it can be a good idea to reboot to check that actually works). However as I said if you boot with it plugged in, I bet it gets mounted so only root can read or write the files. Solution: either uncheck the "at startup" tickbox, or add option uid=myusername. Unchecking seems simplest to me.
Jan
18
comment Moving a directory from a user to another user, keeping the correct permissions
+1 for considering the group as well (:bob)
Jan
18
comment gparted without GUI / X
my assumption after observing this has been that gparted is calling out to resize2fs etc., and that does seem to be the case. E.g. see the last question on this 2014 interview.
Jan
18
comment How do I resize a windows partition without using gparted?
Personally if you're using fdisk / gdisk for the backup, it'd seem simpler to stick to that for the partition editing as well. In particular parted's print command seems vague about offsets, to verify this sort of work (e.g. for large values it shows the nearest whole GB). Though the rescue command ("rescue a lost [deleted] partition near START and END") seems nice. I'd want to use testdisk for that, but it's nice to know in case you've only got parted.
Jan
18
comment How do I resize a windows partition without using gparted?
I feel the description "resize the partition" omits the important detail of needing to delete the partition and re-create a smaller one. But good point about saving the partition table before that.
Sep
19
comment How to remove nodes from a HUGE (>2gb) XML file?
Note that xmlreader should be able to work because it's a streaming API. I guess you're on 32-bit & it hasn't been built with "large file support", so it's using a 32-bit int for file offsets (which only goes up to 2GB) :(.
Aug
7
comment Is this a so-called “Hybrid” Mac Partition table, and how can I mount this in Linux?
Yes, I think the drive is messed up. Because we're expecting it to only have one partition/filesystem, but we're seeing the drive split into several smaller pieces. Maybe it just had an "interesting" history, but it seems pretty off.
Aug
7
comment Is this a so-called “Hybrid” Mac Partition table, and how can I mount this in Linux?
Surely 148237192 * 512 = 75 897 442 304 bytes. But yes, if none of the existing 5 HFS partitions can be mounted under linux, it would be interesting to look at the 5 HFS filesystems which testdisk found at rather different locations. While bearing in mind that mounting HFS+ on Linux could potentially be a destructive operation & that backups are a really good idea.
Aug
7
comment Is this a so-called “Hybrid” Mac Partition table, and how can I mount this in Linux?
@olafatchmi where have you posted the testdisk output? I can't see it. Btw I don't think there's any MBR or GPT here, I think it's just an Apple partition map.
Aug
6
comment Partition offset at 63 or 64?
@user66229 answered already. I expanded the reasoning when I updated it regarding offset 0. In this case "everyone else does the exact same thing" is a really good answer. The only real question is whether there might be reasons to align to a larger number in future, not a smaller one.
Aug
6
comment Partition offset at 63 or 64?
@user66229 ty. That explains the 0. (Ideally I could have guessed from online docs). The e command can also used to 'delete' partitions by resetting them to 0 - it looks like there's no separate delete command. Offset 0 is invalid because it overlaps the MBR, so I guess the non-zero size is just ignored (by the kernel?). In that case I think an offset value of 2048, or 64, would be aligned as I wrote in the answer.