9,586 reputation
11123
bio website github.com/frostschutz
location
age 32
visits member for 1 year, 11 months
seen 46 mins ago

1d
comment Finding the correct tmp dir on multiple platforms
You should probably also test if it's writable.
1d
answered Finding the correct tmp dir on multiple platforms
1d
answered tar append to file in archive
2d
answered unable to open luks encrypted device (wrong password)
Dec
15
answered Recovering mismatched sectors in a RAID array
Dec
14
comment parted 3.2 says 1024MiB is outside of the device (of size 1024MiB)
You could always report it as a bug... maybe it is supposed to work after all, if it used to work in an older version... who knows?
Dec
14
answered parted 3.2 says 1024MiB is outside of the device (of size 1024MiB)
Dec
13
revised Init as a shell script
added 210 characters in body
Dec
13
comment Init as a shell script
Remind me to never invite you to any of my parties.
Dec
13
revised Init as a shell script
deleted 12 characters in body
Dec
13
comment Init as a shell script
pivot_root, on the other hand, is a syscall. It's not used for switch_root though and can't be used without jumping through some hoops, and either way it matters none whatsoever for this answer, so I just removed it altogether. Too bad, I thought that magic and vanish into thin air worked really well... :-P
Dec
13
revised Init as a shell script
deleted 119 characters in body
Dec
13
comment Init as a shell script
A switchroot syscall would indeed be news to me. Do you have a source for that? If you look at the switch_root.c source code, it seems to be quite a manual process, and the same as is described in Documentation/filesystems/ramfs-rootfs-initramfs.txt. Also if you delete everything and mount it over, it's pretty much vanished at this point, don't you think?
Dec
13
answered Init as a shell script
Dec
7
comment HP SmartArray RAID5 recovery on linux
Oh, now I see the problem. With md you'd get 024135 instead of 012345, and you probably don't want to abuse the device mapper as it'd involve a giant mapping. Thanks for elaborating...
Dec
6
comment HP SmartArray RAID5 recovery on linux
It seems to me that this layout is already supported by md, or rather I fail to see what is special about this layout as shown in the comment of your source file. If the parity shifts after 16 stripes as you say, does it not just mean that the chunksize (as md understands it) is stripesize (as hp unterstands it) * 16?
Dec
6
answered Create a write-cache loop device for a much larger block device
Dec
5
comment Raid 5 not starting
according to that data the disk was missing since may 2012 so the data on it should be wholly useless. You should find out why sda1 failed, ddrescue it if necessary, and then see if you can assemble force with sda1 and sdb1
Dec
5
answered BTRFS data integrity (CRC32c) and HDD data integrity (sector ECC)
Dec
5
comment Shrinking LVM physical volume on top of mdadm degraded RAID array, adding a spare and rebuilding it
@TranslucentCloud the whole point of LVM is the ability to resize and move things while the system is in use. Same for MD, you may replace disks and resize while it's running. The only thing that could prevent you is if your filesystem does not support live resize (if you had to shrink it).