292 reputation
212
bio website
location Belo Horizonte, Brazil
age
visits member for 2 years, 4 months
seen Oct 9 at 5:19

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


Jan
24
asked Does setting the system time back impair logrotate operation?
Sep
11
accepted SDcard support in Linux for ENE Flash UB6250 card reader (found on Acer Aspire One 522)
Sep
8
answered SDcard support in Linux for ENE Flash UB6250 card reader (found on Acer Aspire One 522)
Sep
8
asked SDcard support in Linux for ENE Flash UB6250 card reader (found on Acer Aspire One 522)
Aug
8
awarded  Teacher
Aug
8
awarded  Commentator
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
awarded  Scholar
Aug
8
awarded  Supporter
Aug
8
accepted Why my partitions don't show the right capacity on a 4096 byte physical block hard drive?
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
revised Interesting Secure Copy Behavior
added 237 characters in body
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
answered Interesting Secure Copy Behavior
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).
Aug
8
revised Why my partitions don't show the right capacity on a 4096 byte physical block hard drive?
Showing /proc/partitions after reboot, pointing out the system is considering less blocks for the 4096 byte partitioning than the 512 byte one