17,918 reputation
2653
bio website
location Virginia
age 31
visits member for 3 years, 8 months
seen 8 hours ago

9h
comment CRON Permission Denied
I suggest trying strace -f -p `pidof cron` and see if you can't find out where that permission denied is coming from. (That will make a lot of output, you'll want to become familiar with strace before trying it...)
23h
comment TAR Backup to Remote Server
+1 Indeed, there are tools already written and debugged, and they should be preferred over quick hacks.
23h
comment TAR Backup to Remote Server
I'm unclear what you're trying for. It sounds like you want to set up rsync on your laptop, then after rsync finishes, run tar on the server? In which case, isn't that just rsync … && ssh user@server 'tar …' ? But have you considered backup software?
23h
comment Where does ext4 store directory sizes?
I'd add that this isn't just ext4; stat simply doesn't have a way to return multiple sizes—so it can only return the size of the directory itself, not of its contents. And also "directory size including contents" becomes less clear when you have hardlinked files.
1d
comment Are system calls the only way to interact with the Linux kernel from user land?
@BruceEdiger this causes a signal to be raised, which seems more interacting than the scheduling interrupt, which is mostly transparent to the process. It does as much as the kill syscall would...
Apr
10
comment Do I have two VGA compatible controllers?
@slm Ah, I have no experience with that particular model, sounds like you do...
Apr
10
comment Do I have two VGA compatible controllers?
If you look at linked full lshw output, its a ThinkPad T400 notebook... so its switchable graphics...
Apr
10
comment Do I have two VGA compatible controllers?
Your machine is supposed to be able to switch between them as a performance/power-usage trade off. That's "switchable graphics (integrated and discrete)" on the spec sheet at lenovo.com/us/en/PDFs/Thinkpad_t400_and_t500_datasheet.html.
Apr
8
comment Need to search for files in a linux directory that has 256 sub-directories, but want to bypass empty directories
Could you give an example of what you want this to look like? How different is what you want from find -type f -ls?
Apr
8
comment How could I signal to a cron job to skip runs?
You don't actually need a wrapper (or to edit the script), you can just put the file test in the crontab itself—cron runs it through a shell.
Apr
8
comment While trying to open /dev/mtd2 for read/write access: Permission denied
I've added an answer, please feel free to edit it if I've missed anything important. Was a long comment thread late at night...
Apr
8
comment While trying to open /dev/mtd2 for read/write access: Permission denied
They appear to match. Remember one is a list of sizes, the other is a list of offsets. If you subtract the first offset from the second, you get the size. Also, /proc/mtd lists a 64 KiB erase size, so you just need to make mtd2 bigger or smaller, so it's a multiple of 0x10000. At least, that's what the error says. Keep in mind my lack of real embedded experience.
Apr
8
comment While trying to open /dev/mtd2 for read/write access: Permission denied
You need to use the same base for both (0x40 = 64). Or use a calculator that can handle mixed bases. Anyway, it is divisible by 64. But it's bytes, not KiB, you need to divide by 64 KiB = 0x10000 = 65536.
Apr
8
comment While trying to open /dev/mtd2 for read/write access: Permission denied
Normally erase blocks are much larger than 64 bytes, 64 KiB is more likely... I'm not sure how to repartition it, though, as that's beyond my (quite limited) embedded knowledge.
Apr
8
comment While trying to open /dev/mtd2 for read/write access: Permission denied
Yeah, those two forcing read only messages are very likely what's wrong, your partitions are apparently not aligned right.
Apr
8
comment Attaching different LibreOffice Writer documents
If you mean into one document, LibreOffice calls that a "master document". If you just want into one file, tar or zip? Please clarify which you mean.
Apr
7
comment Can the 25 years of development of the Linux kernel be qualified or abstracted in layman's terms?
I vaguely recall there being at least a few people planning on writing dissertations on this, or similar. I suspect you will find academic literature on the subject... Other than pointing to existing publications, it seems like your questions would require months of research to answer.
Apr
7
comment Can I enable framebuffer support in xterm
This sounds distinctly like you're going about solving a problem in the wrong way (i.e., the XY Problem. Please back up a step; why do you want framebuffer support in a terminal emulator?
Apr
7
comment Is a SuperServer 6017R-72RFTP Debian-compatible?
@Sylca OK, I've rewritten your question to be just about the one machine—if feel free to revert if you're unhappy about that, but beware that questions which aren't focused or alternatively are more about starting a discussion than asking a specific question are likely to be closed.
Apr
7
comment Grub2 on wiped MBR
@user3439528 You are just clearing the MBR. Its just that the MBR also contains the partition table, so you need to restore that after clearing.