7,245 reputation
621
bio website
location
age 35
visits member for 3 years, 6 months
seen yesterday

May
5
comment gparted live CD can't resize a partition?
Rather than create a new partition, you should use use parted or fdisk in sector mode to delete the existing partition, and recreate it with the exact same starting sector, but a larger size. Then run pvresize to extend the pv, and then you can use lvresize and resize2fs.
May
3
comment How can I kill a particular thread of a process?
@Lazer, one thread can not check spelling at the same time as another thread is updating the text because you are typing. Because of this, to have a background spell checking thread, it must do something like grab a lock to prevent the other thread from changing the text, make a copy of some of the words, release the lock, then check the copied words in the background. If you happened to kill it while it held the lock, you would hang the other thread as soon as you tried to type. Multithreaded applications are full of inter dependencies like this.
May
3
answered Set process exclusivity in Linux
Apr
30
comment “Remote function call interrupts” (CAL in /proc interrupts). What is it?
Without seeing the source code of the program, or at least a simplified pseudocode example, it is difficult to say what is wrong. Also what do you mean by "asynchronous IO"? If you mean posix aio, then the whole point is to be able to queue a bunch of background IO without having to create a bunch of threads. The more threads you create, the more overhead there will be, so how many threads are we talking about here?
Apr
30
comment sda and sdb block specials point to same device and get mixed up (hardware RAID doesn't work after new installation of 12.04)
dmraid does not recognize or support any such flag. In recent releases of Ubuntu, it does remove the partitions from the underlying disks when it activates the raid array ( with the -Z switch ), but the raw disk itself is still visible. This has nothing to do with a bios setting though. The bios does not even have a setting to hide component devices since the bios and windows driver always only present the virtual raid disk to the OS.
Apr
30
comment Fdisk partition alignment, NAND, not showing specified heads
@TechZilla, CHS is still meaningless. If you need more than 1MB alignment, and the device optimal alignment is not automatically detected ( is not in your fdisk output ), then you will just need to put fdisk in sector mode and specify an aligned sector. Playing games with the bogus geometry isn't going to help. Also SSDs do not need erase block alignment. They can ( and will for wear leveling purposes ) relocate smaller writes to any free erase block. That smaller write size is usually either 512 bytes or 4KB, but certainly will be less than 1MB.
Apr
30
answered sda and sdb block specials point to same device and get mixed up (hardware RAID doesn't work after new installation of 12.04)
Apr
30
comment sda and sdb block specials point to same device and get mixed up (hardware RAID doesn't work after new installation of 12.04)
This is a red herring. The BIOS has nothing to do with it; it is the kernel and the dmraid package that detects and activates the array in Linux, and the underlying physical disks are never hidden.
Apr
30
answered Fdisk partition alignment, NAND, not showing specified heads
Apr
30
comment Create Logical Volume Snapshot at boot and before mount
@jippie, properly behaved applications are designed to recover from a system crash or power failure, which is what it looks like when you take a snapshot on the fly, back it up, and restore it later. Things like database servers and even web browser history work properly when this happens. There may be some poorly behaved applications that can not recover properly from a power failure, so yes, you will want to shut those down before taking the snapshot.
Apr
30
answered Create Logical Volume Snapshot at boot and before mount
Apr
30
comment dd copies more data than exists in .img?
You obviously can't write more to the disk than it can hold, so the only thing I can think of is that you are misinterpreting the output of dd, which you haven't shown in your question.
Apr
30
comment dd copies more data than exists in .img?
ls -l reports the apparent size of the file ( counting the sparse space ), not how much disk space it is actually using, as your example clearly shows.
Apr
28
comment When using btrfs, why “Size”, “Used” and “Avail” values from df do not match?
@sup, 1.75GB is allocated for metadata, so it consumes twice that or 3.5GB of space. Only 385mb of that 1.75 gb is currently used for metadata, but the full 1.75GB is reserved for that use and so is not counted towards available space for file data.
Apr
28
answered When using btrfs, why “Size”, “Used” and “Avail” values from df do not match?
Apr
27
answered Tools that list the prototypes in .so library
Apr
27
comment Tools that list the prototypes in .so library
That's the same as nm
Apr
26
comment Location on disk to write a byte-flag?
@DavidPfeffer, true, but that's not specific to extended partitions.
Apr
26
comment Location on disk to write a byte-flag?
@DavidPfeffer, how so? I've never had trouble resizing them with (g)parted.
Apr
26
answered kexec from within initramfs