« first day (1272 days earlier)      last day (3976 days later) » 

slm
slm
can we move all this to initramfs.stackexchange.com or something???
@Gilles - I'm no zealot - I'm not even Jewish?
slm
slm
wait so you don't even know if you're Jewish? ^^^ the question mark...
@slm well, family trees being what they are...
Why would we move it? This is the most fundamental part of your linux-based system - the relationship between userspace and kernelspace.
slm
slm
I was joking...back to Gilles
00:10
Oh - you mean about moving it or about my heritage?
slm
slm
the moving
Why does this bother everybody? And why would anyone downvote the kernel docs? @slm well, I was joking about my heritage...
*crickets*
slm
slm
i would assume gilles DV'd it based on his comment. I didn't do anything beyond commenting here.
@mikeserv - I would assume there's some leftover frustrations from the initramfs Q&A. Keep with it. Perhaps you could move that A to something that's more appropriate. I do not know what that Q would be but I'm just trying to be constructive
Yeah, and his comment is nonsensical, as far as I can tell!
I'm not unreasonable or anything. I just don't see the point in getting upset about it.
slm
slm
I don't know that much about this end of the pool, Gilles is probably the most knowledgeable about it. You seem to know a fair amount about it as well, but all I can do is watch. And try and help.
00:21
So you believe that the linux kernel documentation detailing what initramfs is and how to compile it in as rootfs is irrelevant to a question about how to compile a root file system into the linux kernel?
slm
slm
If you don't understand one of his comments ask him to elaborate.
I did. Of course. I'm not unreasonable.
slm
slm
No I didn't say that, I'm just offering suggestions w/o knowing anything specific on the topic.
I'd be happy to delete it if it's wrong.
slm
slm
If you feel it's right then ignore the DV, it's one persons DV.
00:22
The asker says: I'm building custom Android Kernel based on Cyanogenmod ROM' kernel source code. What I need to do is to add folders and files into the root folder of the OS ("/").
So I posted the doc on rootfs.
Makes sense to me. Am I missing something?
slm
slm
I'd have to re-re-read what you both wrote to be a tie breaker 8-)
I didn't write any of it. I bolded some of it.
slm
slm
@mikeserv - gilles will DV A's that he feels are weaker then his own or if they're egregiously wrong in his opinion.
Yeah, but his answer is technically wrong anyway.
slm
slm
I've never known him to DV out of spite
He's done it to me at times as well, and I've disagreed w/ him at times on it as well, I would take it as one guys opinion and not dwell on it too much. See if the OP finds yours more helpful then his. That and future visitors are the target audience.
00:27
Well, I don't know him to do anything at all. All I know is you said he was a robot. But I don't care - politics are not my forte, you could say. Points and the rest make no difference to me.
It's just that, especially on this issue, there's a lot of undue mystery for, as far as I can tell, no reason.
So I try to be specific. Nothing more.
slm
slm
Yeah so if you think that's a solid A then I'd leave it alone.
He's human just like everyone else here.
Yeah, I don't take it one way or another. Well, I will, so long as I do. But if I'm convinced otherwise, then I'll remove it only because I relish correction - it's nice to be right, especially if you used to be wrong!
I like to learn.
slm
slm
yes everyone has been wrong before they've been right 8-)
Amen.
You know what's cool about init, though? It's just root. That's it. The kernel mounts a root and looks for some executable called init - after that, you can do whatever you want.
And it's really easy - it's just shell script, usually.
You don't need a disk - or even an image file, because you can compile that in.
So a single kernel binary can be a self-contained os.
It's pretty neat.
I have this file in my /boot directory ` initrd.img-3.13-1-amd64
00:35
The only really unusual thing that happens in early-userspace generally is switch-root. And the only thing that's strange about it is instead of execing a file with a program, the kernel execs a mount, kind of.
I thought I was using initramfs, in fact I probably still am despite the name of the file.
@Graeme - that's your initramfs image file.
It is. You can compile the image in, or keep it separate - or both, if you want.
@mikeserv Ok, I didn't know that. I thought it had to be separate.
It's cpio - copy in/out - it's an archive file that the kernel unpacks into / just before it looks for init.
I know all that, just thought that it was required to be a separate file.
00:37
cpio archives are kind of cool too, because they're streamed -0 like tarballs - but they're more... hmmm... raw, I guess you'd say.
No, it needn't be.
Learn something new every day
Yeah, cpio has its limitations, but perfect for nicely named files
Actually when you do switch-root, the kernel deletes everything in the real root - the kernel's root - it's always there. If you don't do switch-root, you can just mount other disks onto your ramdisk.
And it'll continue to work. You don't need the rest, it's just conventional.
There was a lot of heated discussion in the kernel world when cpio was chosen, actually.
Somewhere out there is a long letter in which Linus defends the choice.
@mikeserv what were the alternatives
?
Well, tar.
Everyone was like ! BUT !!! tar!
Does seem like the obvious choice I guess, but then I don't know much about the nitty gritty of the formats.
00:41
Everyone knew it, and I don't know why it wasn't chosen, but I think it has to do with cpio more easily handling special files. Or maybe politics and licensing... I have no idea. Only conjecture.
Neither do I - and long hours in info have not expanded upon that understanding very much, either.
I discovered something else interesting tonight after playing with my answer here - unix.stackexchange.com/a/122844/48083
The directory that contains the most files in my system (after /var/lib/dpkg/info in an expected first place) is /usr/share/qt4/doc/html
I did get this with tar the other day, though. This was cool - unix.stackexchange.com/a/122736/52934
6317 files - that is a well documented API
qt5 is a lot bigger - do you have that one yet?
I need to set up a 32 bit build environment. Any ideas for the easiest / least awful way to do this? virtualbox, linux containers, just plain chroot? something with debootstrap, sbuild/pbuilder?
00:45
Well, you're in a 64-bit system now/
?
Probably debootstrap. And without rebooting, qemu is pretty easy - at least once you get a command line down, anyway.
@mikeserv yes
@mikeserv pax can do that too, but without the archive as a mid point.
@mikeserv nah, not yet. Used to do quite a bit of Qt programming. Not so much recently, haven't even played with Qt5 yet.
@Graeme - I've never used it. The POSIX spec is... daunting, to say the least. I'm interested though. Gotta clearer doc than I've found at the POSIX guidelines site?
I never have - I'm usually too involved with trying to fix what I last effed up in the terminal to get far enough along with the gui, unfortunately...
Oh, yes. The documentation is what makes it - there really is nothing else like it. If you use QtCreator, you get everything right there at your fingertips.
01:00
@Graeme I meant pax - I've seen the qt docs though, and their size is daunting, but at least they're friendly. Pax, in my experience, is another story.
You can get the same functionality with -printf and | . /dev/stdin too, but I like seeing people use find with sh and the like - it's creative.
@mikeserv Its a fun one to play with. Finding out that Qt basically has more documentation than the rest of my system was an interesting result.
They're huge - and with 5.2 - they're mobile/desktop/unix/windows agnostic.
It's the future.
@mikeserv more than Java I find (but then Java offers better backward compatibility).
@slm, that bash hackers wiki is a really good resource. It must be fairly new though, I have come across it a couple of times before, but only fairly recently.
slm
slm
@Graeme - you might want to make a Q specifically for your find command on the inode Q.
@Graeme eek. Java. I hate Java. It's an entire virtual machine, and all of their nasty licensing in/outs over the past decade have only turned bad to worse.
@slm what does that mean? Why would you make a question for an answer - you said something to me about that the other day - that and swimming practice... memory's fuzzy...
slm
slm
@Graeme Yeah I had it bookmarked, the problem is going through the list of resources and finding things now. I pretty much have everything "bookmarked" in delicious. I'm almost at 20K links thus far.
@mikeserv Yes sometimes an A to a Q can be better served by making a customized Q for rather then leave it on a Q that's extremely specific b/c of the OP that asked it.
What, for exposure or something? Damn, I have got to turn down the volume - that almost gave me a heart attack!
slm
slm
In graeme's case his A includes the ideal Q for it: "How can I list the top 50 directories in the filesystem containing the most files/directories in their first level"
@Graeme ^^^^^
01:37
And then you answer it yourself?
slm
slm
yes
of course
slm
slm
think of it as blogging
mm... we are hot tonight
@slm in the QA style, tho
01:38
You just get some new pants or something?
slm
slm
of course
I don't know how we end here
@slm, good idea. There was another question I was thinking about doing this with...
3
Q: how do I do this: dd if=coolstuff.iso of=(ssh kev@mypi )

kevcoderthe card reader on my laptop doesn't want to work. can I use dd (or some other tool) to write an image to a networked disk. I am trying to replace one raspberry pi distro with another. The SD card has 6gb free and uses only 2gb. from the SD card $ sudo parted -l Model: SD SU08G (sd/mmc) Disk ...

slm
slm
@Graeme I can ask it for you and then you can answer it
if you like
"Find the top 50 directories containing the most files/directories in their first level?"
I am in two minds whether or not to just do my own Q&A here or just heavily edit the original question
slm
slm
01:43
too late, just asked it for you
I think it's a useful Q by itself. We can reference it when dealing with inode or general house cleaning Q's
It's generally best to leave OP Q's alone and not hijack them too much
Put your answer in and then I can accept it
@Graeme - I think most of my Q's have been for A's that I had in mind, w/o a Q to put them on. I've also lifted A's from Q's and made new homes for them on my own Q's
@Graeme - use it as a teaching moment and really explain the hell out of the A. That way it can be a canonical A more then some other 1/2 @ssed one 8-)
@Graeme can you add some sample output of what it will show when run?
@slm sure, just add a files with newlines alternative now.
slm
slm
@Graeme - you're adding it or am I?
@slm *adding, sorry
slm
slm
@Graeme - OK that makes more sense 8-) or like this...
@Graeme if you press the up arrow you can edit your last message ;) like this
01:55
@Braiam Ok, so you still get the ping for edits, I see
yeah
slm
slm
@Graeme - yes, terdon will ping the heck out of ya, I always disable them...with the edits....apparently so do I 8-)
02:09
xterm does read ~/.Xdefaults right?
@slm, have I missed anything?
slm
slm
@Graeme - sample output and then I can accept it
if they use sort -h it will put the output in human readable too
@slm I thought that just already sorted sizes that already had M, G etc appended
@slm btw, don't try to run it without the -xdev - the output was taking a long time. I had to stop it when I realised what was causing it.
02:26
@Braiam it does for me
@casey didn't for me :( askubuntu.com/a/442661/169736
had to use something else
@Braiam did you try .xresources instead? you could also run xrdb -m <file> to merge an arbitrary file of X resources
@casey read the answer again :(
 
1 hour later…
04:01
Interesting, so the guy on the Q I posted above finally came back and, despite very clear advice not to, decided to go ahead and hose his system by updating the disk image on a mounted filesystem. unix.stackexchange.com/questions/121983/…
 
2 hours later…
06:28
@terdon @Gilles @derobert I've been on a school trip. I'll look at everything when I get back tomorrow.
06:44
hi, all
 
1 hour later…
08:01
 
5 hours later…
13:02
I have a question about the benefits of using a 6 Gb/s SATA connector for a HDD over a 3 Gb/s one. I am not sure if it is on topic or not since it seems more hardware related ...
informal poll, take two. if i need to set up a 32 bit build system on a 64 bit machine (both debian wheezy), what are the least painful way to do it? virtualbox / lxc / chroot / some debootstrap thing, sbuild, pbuilder, something else? someone suggested qemu. i'd not heard of that being used.
@FaheemMitha I would use either qemu or virtual box chroot should work quite find also but request every 32 bit library I think
@Kiwy "but request every 32 bit library"? don't follow.
Sorry it was not relevant, I read install not set up @FaheemMitha
13:18
Hey does anyone know of an existing application which already does this -- the part after However... :
2
A: Emptying a file without disrupting the pipe writing to it

TAFKA 'goldilocks'Another form of this problem occurs with long running applications whose logs are periodically rotated. Even if you move the original log (e.g., mv log.txt log.1) and replace it immediately with a file of the same name before any actual logging occurs, if the process is holding the file open, it...

I'm thinking I'd find this useful too and it deserves to be snazzied up and implemented in C. Something that you could use, e.g., myapp | pipelog -l log.txt, where pipelog would daemonize and you could subsequently send it signals, kill -s SIGUSR1 PID to clear the log, kill -s SIGUSR2 PID to rotate the log, etc. But I don't want to reinvent the wheel either.
13:30
@FaheemMitha you could use wiki.debian.org/Debootstrap to create a chroot.
@StrongBad Thanks.
@StrongBad don't think i've seen you in here before. just visiting?
@FaheemMitha My NAS died so my project today is to figure out how to fix it.
@TAFKA'goldilocks' I think you've done the best script possible, but I can't think or find of any system that alreay exist
@StrongBad Oh, that's too bad. Did you post a question?
Ok, I see:
31 mins ago, by StrongBad
I have a question about the benefits of using a 6 Gb/s SATA connector for a HDD over a 3 Gb/s one. I am not sure if it is on topic or not since it seems more hardware related ...
Yes, that would be off-topic for the main site. But you can ask it here.
@FaheemMitha not really that one. I posted a couple on the main site.
13:35
@StrongBad ok
I am planning on pulling the drives out of the NAS and sticking them into a Linux box. My MOBO has enough connectors if I pool across SATA II and III, but I have no idea what happens with RAID and LVM.
@StrongBad RAID and LVM could explode but the data could be lost if you had both configuration
@Kiwy Hun? I meant LVM on RAID.
@StrongBad sorry I'm not at my maximum today, I'm fuµµg tired and I want to sleep
@StrongBad you are Daniel E. Shub ?
13:41
@StrongBad if you manage to restore the RAID and the lvm you could restore your data but good luck
I see you asked unix.stackexchange.com/q/122903/4671. Sorry, no idea.
@Kiwy Yes, I am Daniel. E. Shub my SE names are all screwed up. I didn't realize it.
@StrongBad no, that as me
it's probably better to have consistent names across the site.
but not a big deal
@FaheemMitha It definitely is better to have consistent names. I need to fix it ...
@StrongBad couldn't you just rebuild your filesystems from scratch?
why are you trying to mount them read-only?
13:44
@Kiwy I am not sure the RAID and LVM are corrupt. I think the NAS box itself might be screwed
@FaheemMitha I want some of the data off of them.
@StrongBad you do have backups, right?
@StrongBad ok, so apparently no.
hmm, then i guess asking why you don't rebuild doesn't make sense.
wouldn't it be easier to get another nas?
16KB block size is non-standard then?
@FaheemMitha Sort of. I have backups of everything important. I have some ripped music and movies that are backed up cd/dvds and reripping them would be a pain
@StrongBad ok
@FaheemMitha The issue isn't were to put the data I have backed up. The issue is getting the data I don't have in an easily restorable form.
@StrongBad gotcha.
mke2fs says
-b block-size
Specify the size of blocks in bytes. Valid block-size values are 1024, 2048 and 4096 bytes per block. If omitted, block-size is heuristically determined by
the filesystem size and the expected usage of the filesystem (see the -T option). If block-size is preceded by a negative sign ('-'), then mke2fs will use
heuristics to determine the appropriate block size, with the constraint that the block size will be at least block-size bytes. This is useful for certain
hardware devices which require that the blocksize be a multiple of 2k.
@StrongBad you can't just tell mount abou this?
 bs=value
          Give blocksize. Allowed values are 512, 1024, 2048, 4096.
mount says: bs=value
Give blocksize. Allowed values are 512, 1024, 2048, 4096
Hmm.
13:50
@FaheemMitha 5 years ago you couldn't tell mount about a 16KB block size.
@StrongBad and now you can?
I don't see a mount option to do this.
Off to dinner. Take care guys.
@FaheemMitha see you
@FaheemMitha That is the question.
14:35
@StrongBad I don't see anything in the docs that say you can.
 
1 hour later…
16:00
don't we have a duplicated of this? unix.stackexchange.com/questions/122977/…
16:44
@StrongBad SATA II v. III might matter if these are SSDs and their read can actually saturate SATA II. Then it'll just be somewhat slower.
17:10
I'm not sure I understand the issue with
0
Q: How to mark "not fully installed" apt-get package as "successfully installed"

akmI have installed Debian 7.4 on my Iomega ix2-200 NAS, following this blog. The ix2-200 is running an ARM Marvel CPU and has a 128 MB NAND flash memory. The flash contains an initramfs image (uInitrd) and a kernel image (uImage) to boot the system. Sometimes, a new package (like cryptsetup) requi...

why is his package erroring out, and why can't he fix it?
17:29
@FaheemMitha Yeah... that really seems to be a case of OP needs to fix his/her packages.
@derobert Right. But I'm unclear what is actually going wrong.
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1
... that's what's going wrong
@FaheemMitha there, I plopped in a quick answer
@derobert Looks good, but I had never heard of flashing a kernel. The hits I get on google are mostly for Android.
@FaheemMitha It's common on any embedded product
@derobert ok
17:46
Guess what exiting activity I'll be doing later this afternoon? I'll be installing a extremely modern Debian system... Debian Etch.
@derobert Why? You mean exciting, I presume.
Dialogic, that's why :-(
It's very modern, the machine currently has sarge.
@derobert that proprietary thing?
@FaheemMitha Yep.
something to do with telephony, as I recall.
@derobert what is your recommendation for getting a 32 bit build system working on a 64 bit machine, where the host runs wheezy, and the 32 bit one should run the same?
17:54
@FaheemMitha Correct. Drivers & protocol stack for telecom line cards.
@FaheemMitha Hmmm... Depends on the build system. gcc -m32 would be easiest if the build system will do it.
setarch may work, too
@derobert You mean cross-compiling? According to the multi-arch people, that does not work.
with current implementations of multiarch. they recommend a separate system, some chroot or vm
yeah, if that won't work, the next easiest would be a chroot
@derobert ok. what about lxc?
lxc is like a chroot, but with more isolation
not sure why that'd be needed. You don't need a separate network setup, for example
@derobert just more flexible, if needed for other purposes. like running an isolated service for example
18:01
sure, if you need that, you could use LXC. Of course, you can fairly easily turn your chroot into a container
@derobert indeed? didn't know that was possible.
Sure. Containers aren't typically images, like you'd have with kvm, etc.
They're just parts of the filesystem
@derobert ok
 
2 hours later…
20:30
@FaheemMitha You can install i386 libraries on an amd64 system, but not i386 -dev packages (except libc6-dev-i386). And only GCC is available as a cross-compiler. So unless you only use the standard library, a chroot is the way to go.
24
Q: How do I run 32-bit programs on a 64-bit Debian/Ubuntu?

GillesI have a 64-bit (amd64 a.k.a. x86_64) Debian or Ubuntu installation. I need to run 32-bit (i386/i686) programs occasionally, or to compile programs for a 32-bit system. How can I do this with a minimum of fuss? Bonus: what if I want to run or test with an older or newer release of the distributi...

@FaheemMitha I don't see the point of lxc, it would be more complex for no benefit
With a 3.8 kernel, you could set up a namespace, which has the advantage of not requiring root access
20:49
@Gilles ok, thanks for the feedback
@Gilles i've not heard of that. has the site covered it?
@FaheemMitha not much. Try searching for namespace. , even
@Gilles ok, thanks
Anyway, I'm running 3.2, default for stable
@Gilles i see you have an answer here
11
A: kernel: Namespaces support

GillesIn a nutshell, namespaces provide a way to build a virtual Linux system inside a larger Linux system. This is different from running a virtual machine that runs as an unprivileged process: the virtual machine appears as a single process in the host, whereas processes running inside a namespace ar...

 
2 hours later…
22:35
Who hasn't downvoted meta.unix.stackexchange.com/a/2550 yet? I think the hot question selection has been slightly improved recently — but still, we need 5 more downvotes to overtake Server Fault
slm
slm
23:29
@Gilles - what are you asking us to do?
@slm downvote the ad for our twitter bot, if anyone who hangs around here hasn't done so already
just to show off against SF
nice
I'm looking at how to do something, surely someone's cobbled up the script for it already
yup, a guy called Gilles on a site called Unix & Linux
slm
slm
I UV'd their's so it's like a 2 for one.
@Gilles where was this from?
@slm that seems a bit unfair
0
A: How to take a screenshot of an totally obscured window

GillesIt's probably the fault of the game, not the fault of the screenshot utility. X11 sends applications a VisibilityNotify event to tell them that their window is fully visible, partially obscured or totally obscured. When the window is totally obscured, most applications don't bother updating their...

slm
slm
23:50
@Gilles too late, vote's locked

« first day (1272 days earlier)      last day (3976 days later) »