7,434 reputation
621
bio website
location
age 35
visits member for 3 years, 7 months
seen 16 hours ago

Nov
20
comment How can `dd` be used to right-shift data blocks?
The fact that it refuses to operate if the input and output are the same is probably a good indication that it isn't safe.
Nov
17
comment How is the display updated when the erase character is typed in a terminal emulator?
That is implemented in the real terminal, not the kernel driver. With a real hardware terminal, it handles local line buffering, echoing, and backspace, and only sends the finished line down the wire when you press enter.
Nov
17
comment How is the display updated when the erase character is typed in a terminal emulator?
This is true for the linux virtual console driver since it is emulating a real terminal on a VGA display, but is not true of real terminals, which is what the question was about
Nov
17
answered How to know list of directories under a filesystem?
Nov
17
comment LVM volume corrupted, can't be mounted after reboot
@NicolasRealini, last year I went with 3x Blues. They have perfectly respectable performance and reliability ( which is to say, quite a bit better than the greens and reds ). I run them in a mix of raid10 and raid5 so if one does die it won't bother me, and a linux raid10 in the offset layout gets me ~500 MB/s of sequential read, and the duplicate copies boost the performance of random reads a bit too. The red pro is really no different; they just charge more.
Nov
17
comment run btrfs balance with cron
That article is misleading. While it is true that btrfs df reports only chunk usage, which can be higher than actual usage if chunks are only partly used, df reports a proper amount of free space. Partially filled chunks don't matter so there is no reason to bother with a balance simply to make the output of btrfs df look nicer. In other words, free blocks are free blocks, whether they are part of a chunk or not; either way they are available for use by files on demand.
Nov
17
comment LVM volume corrupted, can't be mounted after reboot
@NicolasRealini, AFAICS, red is the same as green, only with a 3 year warranty instead of only 2. Both are only 5900 rpm drives. I recommend staying clear of both red and green.
Nov
16
comment run btrfs balance with cron
Balance is for when you add a new disk to the fs; it is not something you do on a regular basis.
Nov
16
answered LVM volume corrupted, can't be mounted after reboot
Nov
14
comment How can `dd` be used to right-shift data blocks?
@starfry, the only way I know of to do this in a generic way is to use the algorithm Emmanuel suggested ( work backwards from the end ), which is what gparted does.
Nov
14
answered How can `dd` be used to right-shift data blocks?
Nov
14
comment How can `dd` be used to right-shift data blocks?
You didn't list how you computed the second md5sum
Nov
10
comment Can you run X11 in Emacs?
And how do you think a graphical environment is supposed to be displayed in a subset of a text only terminal?
Nov
10
comment How to update directory size after file removal?
Or if you don't want to unmount the filesystem to fsck it, you can just create a new directory, move the remaining files there, remove the original directory and rename the new one in its place.
Nov
9
comment How to kill app that captures keyboard input for killing the app?
That's pretty much the only way. The fact that any app can steal the keyboard input is one of the many deficiencies of the old X11 protocol and so one of the reasons for the push to abandon it and switch to wayland.
Nov
5
comment Why is the boot sector on a Linux partition empty?
Note that in order to install grub to the pbr, it has to use blocklists to find /boot/grub/core, which is error prone and not recommended, thus it requires a force flag.
Nov
3
comment How do I resize an ext3 partition that is not part of a LVM group?
@Kev, that version is quite ancient, so you may want to compile it from source yourself. At the very least, using that old version will cause it to fail to update the kernel and you will have to reboot for the changes to take affect.
Nov
3
comment Control which process gets cancelled by Ctrl+C
You almost got it... job control is disabled by default when running a script, but you can enable it with set -m. It's a bit cleaner and simpler than using setsid every time you run a child.
Nov
3
answered How do I resize an ext3 partition that is not part of a LVM group?
Nov
1
answered Layer 2 handover