292 reputation
211
bio website
location Belo Horizonte, Brazil
age
visits member for 2 years, 2 months
seen Aug 11 at 3:28

Electrical engineer and Linux enthusiast. I work developing telemetry and remote data acquisition and control equipment based on x86 and embedded Linux ARM platforms.


Aug
12
comment Strange temporary network outage in Linux
@Gilles, you were right. I just found today somebody's cell phone was using my IP through a DHCP assignment (my IP is fixed but the DHCP pool was overlapping it). Like I said, I initially discarded this possibility because I was to be able to ping another host while the first one was unreachable, but today I quickly changed my IP while everything stopped and there was my IP being pinged from another NIC. Would you please move your comment into an answer so I can accept it? You were the first to really answer it, anyway. Thanks!
Aug
8
comment Strange temporary network outage in Linux
Gilles, I'm pretty sure my IP is unique on the network, but supposing that could happen I still think it wouldn't explain one host getting pinged normally while the other not (they are being pinged simultaneously). Don't you agree?
Apr
15
comment Does setting the system time back impair logrotate operation?
Thanks for your answer Patrick. On another embedded system using the same board I also sync time with NTP so I don't have to worry about logrotate getting screwed up. The problem with this one specifically is that it doesn't even have an ethernet connection available. I know deleting the status file just makes logrotate recreate one next time referring to 1970, but I wonder if it gets restarted again it will not rotate properly because the clock got backwards even during "1970".
Aug
8
comment Why my partitions don't show the right capacity on a 4096 byte physical block hard drive?
Yeah.. I used "right" as an irony, because the simple existence of the switch misleads the user into thinking it should be used to specify the correct size to match the physical block.
Aug
8
comment Why my partitions don't show the right capacity on a 4096 byte physical block hard drive?
Thanks for the input @psusi. What I did to solve the problem was indeed to repartition without the -b switch and start my first partition on sector 4096 to guarantee alignment, making both fdisk and mkfs stop complaining about performance degradation due to physical sectors misalignment. But I was still wondering why the system was interpreting the number of blocks as 512 byte long when the "right" switch was used.
Aug
8
comment Interesting Secure Copy Behavior
You're welcome! Think of scp as a secure ftp (there's an exact equivalent in the form of sftp, which is also part of openssh). What it does is to copy a file to or from a remote server through an encrypted channel. You wouldn't ever need the extra overhead of encryption and network connection if you are doing things locally, where you have complete control over the system.
Aug
8
comment Interesting Secure Copy Behavior
If your goal is just making the copy, I can see no reason to go over the network for it :)
Aug
8
comment Interesting Secure Copy Behavior
scp -r /tmp/test /tmp/test, without any hostname references does seem to call cp indeed, as the error message is exactly the same as cp -r /tmp/test /tmp/test.
Aug
8
comment Interesting Secure Copy Behavior
I carried out a simple test and the behaviour with cp is different, as it doesn't allow to copy a directory over itself: $ cp -r /tmp/test /tmp/test (line break) cp: cannot copy a directory, ‘/tmp/test’, into itself, /tmp/test/test’. With the scp line you supplied an infinite recursion takes place.
Aug
8
comment Interesting Secure Copy Behavior
Which switches did you use with scp? Do you have the full command line?
Aug
8
comment Why my partitions don't show the right capacity on a 4096 byte physical block hard drive?
Alexios, thanks for the tip. It didn't change though. I issued a partprobe before making the filesystems and after a reboot it kept the same (results on the recent edit).
Jul
31
comment How to load HID kernel module from the kernel command line?
@AlanCurry, I always keep the old kernel for these cases, but since I upgraded the existing packages but forgot to install the new ones (I use Slackware), somehow something went missing and even the old one wouldn't load any modules, also leaving me out. I solved it by booting from an USB stick, chrooting to the system partition and then finishing the upgrade. Anyway, I think the question is still valid, since having loaded the usbhid module would have saved me a lot of hassle. For now I just recompiled it statically into the kernel.