1,721 reputation
411
bio website
location
age
visits member for 1 year, 11 months
seen yesterday

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.
Aug
2
comment PC Boots to grub> prompt after putting partition table entries in disk order
Let us continue this discussion in chat.
Aug
2
comment PC Boots to grub> prompt after putting partition table entries in disk order
I also just realized I don't know if grub.conf on your CentOS includes hard-coded partition numbers (which would need to be updated), or if it will just refer to the filesystem UUID. Sorry.
Aug
2
comment PC Boots to grub> prompt after putting partition table entries in disk order
Ah, you probably don't need that. It's more relevant to the case where you install Windows, it overwrites GRUB, and you need to reinstall GRUB and add a GRUB entry for Windows.
Aug
2
comment PC Boots to grub> prompt after putting partition table entries in disk order
Gah. If you found & followed that article from Googling - you could consider this a warning about the reliability of random relevant sources. I can't imagine what the point of that article is; it doesn't really provide anything over the built-in help from fdisk
Aug
2
comment PC Boots to grub> prompt after putting partition table entries in disk order
did you miss the chroot step?
Jul
28
comment Is LILO still usable on modern PC?
@mikeserv Ok, that explained a lot :).
Jul
27
comment Is LILO still usable on modern PC?
welp lilo is dead (and uboot deprecated) so yeah. What's the problem you had in mind? People aren't using FAT for /boot yet... BootLoaderSpec is a good project but not really there yet... and there's good reason for that (evil patents, FLOSS compatible license granted only for EFI interop).
Jul
27
comment Is LILO still usable on modern PC?
@mikeserv I know, but loading a filesystem driver struck me as somewhat obscure for most cases. You'd even need to install some sort of EFI script (terminology?) to load the driver & then the kernel. Oh, & I bet no-one has MS secure boot signatures for these drivers so that's another wormcan :p.
Jul
27
comment Is LILO still usable on modern PC?
-1 The (deb/ubuntu) kernel package will not update EFI. (EFI won't read fs that support symlinks, so you can't just use my answer). +1 for EXTLINUX as a newer alternative to LILO. Your link shows it supports several other filesystems which is a good sign. EFI support looks a bit new though, where that's necessary.
Jul
16
comment Low level system call
You can't, because it's not part of the C standard :p. IOW it depends on the cpu architecture, e.g. x86 or ARM, and has to be written in assembly language. Ref syscall(2)
Jun
30
comment How do I enable IPv6 inbound traffic to get forwarded to my machine?
Heh, that rant of mine was begging to get out for a while. It sounded at least like you weren't 100% confident about what was happening & why. (Of course it's right not to be 100% if you're not yet comfortable with the code). I have difficulty with answers that could be "here's the exact code, maybe I have no idea why and just copied+pasted it". Tho for someone in your position my answer was probably just as bad in that respect :).
Jun
29
comment Capture web traffic grouped by individual TCP streams
(in Wireshark presumably using right click -> "follow tcp stream")
Jun
29
comment How do I enable IPv6 inbound traffic to get forwarded to my machine?
If you're note sure which rule causes the drops, iptables --list --numeric --verbose might help - it shows counters for each rule.
Jun
29
comment How do I enable IPv6 inbound traffic to get forwarded to my machine?
I don't think you've said what your system is (distribution name, version, machine type). Maybe the distro is implied by the name of that config file, but it would be best to be explicit :).