Reputation
9,024
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
9 26
Newest
 Enlightened
Impact
~647k people reached

Jul
24
awarded  Enlightened
Jul
24
awarded  Nice Answer
Jul
19
comment RAID mdadm virtual disk too small
This is true when you use --create but not --build, which does not store any metadata and instead relies on you doing a --build again every time you want the array assembled.
Jul
19
answered Can cfdisk be used to resize partitions on a disk that will be accessed by Windows computers?
Jul
16
comment How to make this loop Ctrl+C-interruptible?
The default action on SIGINT is to exit, so you don't have to do this unless you have already trapped it.
Jul
16
comment Transmitted packets on a LAN interface may increase received packets on WAN interface?
Except for the fact that the DNS server sends a reply, and the reply increments the other two counters.
Jul
15
comment Transmitted packets on a LAN interface may increase received packets on WAN interface?
This smells like a homework assignment.
Jul
14
answered What is the difference between the /boot partition files and the /boot directory in root?
Jul
11
comment How to construct a GPT-only partition table on Linux?
No; the protective MBR is a part of GPT itself. You can not have GPT without one.
Jul
11
comment How to construct a GPT-only partition table on Linux?
No, you completely misunderstood my comment. You don't get a hybrid table unless you go out of your way to construct one.
Jul
11
comment How to construct a GPT-only partition table on Linux?
This is how all partitioning tools work already. If you want a hybrid you have to use gptsync to mirror some of the GPT partitions in the MBR table.
Jul
11
comment How to prevent selected users from using “newgrp” with a password
Users can only use newgrp to gain access to group identity if you define a password for the group. Don't define a password ( the usual state of affairs ) and only those users you explicitly add to the group can be members.
Jul
4
answered HDIO_GETGEO and HDIO_GET_IDENTITY in Linux using C++
Jul
4
comment HDIO_GETGEO and HDIO_GET_IDENTITY in Linux using C++
No, you have 53575840 sectors. If it were a 4k sector drive, then it would be 1/8th of that.
Jul
2
comment Explaining SMART power error
The CRC is applied by the drive or controller to the data as they transmit it, so memory is only read once. If a bit is flipped in ram, then the controller transmits the flipped bit and computes a correct CRC on that bad data, which the drive can then verify. They only know/care whether the data got corrupted as it traversed the sata cable, not whether it was bad when it was handed to them, or if it goes bad after the controller hands it to the computer.
Jul
2
comment Explaining SMART power error
The CRC is computed before it hits main memory so it can't be that.
Jul
2
comment HDIO_GETGEO and HDIO_GET_IDENTITY in Linux using C++
GETGEO returns bios drive geometry, which is obsolete. IDENTITY returns the raw ATA device identification sector. You shouldn't use either one. Instead, simply read from the files /sys/block/sda/size and /sys/block/sda/queue/hw_sector_size. The former gives the size as a multiple of 512 bytes ( regardless of sector size of the drive ), and the latter gives the real sector size of the drive. If you want the logical sector size instead, use logical_block_size instead.
Jun
30
comment Limit cpu usage to one core
Each program only can run on a single core, unless it is multi threaded, which is unusual for scripts ( C/C++ programs, even even Java, are not scripts ).
Jun
29
comment Limit cpu usage to one core
Why? If two of the scripts can run at the same time, and there are two cores that are idle, why would you not use them?
Jun
24
comment How do I forbid access to physical memory in Linux?
Umm... if the system memory map tells the kernel that isn't a valid address range, then it won't ever try to use it, at least barring some bug that is just as likely to just corrupt some other random, but valid ram and crash the system anyhow.