Linux Anecdotes 68
Doug Muth writes: "Earlier today, I came across an old document on
Lars Wirzenius's website titled
Linux Anecdotes, which tells about the side of Linux that we never knew. An excerpt: 'At one point, Linus had implemented device files in /dev, and wanted to dial up the university computer and debug his terminal emulation code again. So he starts his terminal emulator program and tells it to use /dev/hda. That should have been /dev/ttyS1. Oops. Now his master boot record started with "ATDT" and the university modem pool phone number. I think he implemented permission checking the following day. '"
One Question (Score:1)
Re:Long term Linux is is bad for your brain... (Score:1)
Coming from Windows.. (Score:1)
Did something similar 3 days ago... :( (Score:2)
Not to claim fame but to ask for help.
While trying to backup a UFS (Solaris/Sparc) partition, I run the (incorrect!) command:
tar cvI
Not to mention, I corrupted the first bytes of the UFS partition.
If someone has a Ultra 5/10 with IDE hard disk (was about 4GB), Solaris/Sparc,
could s/he possible send me the first 512 bytes of the disk?
You can use the command:
dd if=/dev/myufsdisk of=backupToSend.img count=1
My e-mail is: simos@hellug.gr
thanks!
Re:Long term Linux is is bad for your brain... (Score:2)
I normally don't respond with such a boring comment,
I took a look at your posting history... and I beg to differ, bro.
Re:One Question (Score:1)
There were no BSD for 386 at the time (Score:2)
He might or might not have heard of the partial releases of BSD (for VAX and Tahoe) (Net 1 and Net 2), and in any case they probably wouldn't have helped him much. I doubt he at that time was qualified to port BSD to 386. Remember, he used Linux as a tool to learn about the 386.
Re:I remember something like that... (Score:1)
I suspect lots of people have had the opportunity to do this. While installing Win95 for dual boot I made the big mistake of using MS fdisk. I was trying to figure out why MS didn't like the partition I had create using linux fdisk. I didn't think that I told MS fdisk to write anything to disk but it overwrote large chunks of the partition table. When I tried to boot into linux I found that I didn't have any filesystems left and that all my linux partitions except for / were gone. I used some scribbled down notes from several weeks earlier to figure out what my partition boundaries had been. I recovered everything but /usr. I goofed with /usr and didn't use 'fsck -b' correctly.
Re:I remember something like that... (Score:2)
> mistakes.
If he posted that story here, he's asking us to laugh WITH him. Which I hope all of us are.
It beats the alternative: ``You're very angry about what just happened with your computer? Great, take this gun, go up into that clock tower & start shooting people. With any luck, you'll reduce the number of calls to tech support asking where the `Any' key is."
Not to advocate violence. Of course. Except against the humor-impaired.
Geoff
Re:I remember something like that... (Score:2)
Luckly,
Re:One Question (Score:3)
One other reason why Linus and others might have been staying away from BSD was the whole legal morass it was involved in at the time. Who would want to spend time on a project which might well be declared contraband if AT&T's lawsuit against Berkeley succeeded?
Re:That shouldn't have happened (raw devices!) (Score:1)
First, if you actually read this, you'd see that we're talking about Linux circa 1991 - 1992. If you took a look a 386BSD then (I don't think FreeBSD even existed yet) you'd see that it wasn't much nicer then Linux was.
Second,
And why are you spouting off about fsync ? A journaling filesystem would be doing it's own syncronization as would a database accessing a raw disk device. fsync should eventually end up calling the filesystems sync function anyways.
And finally, yea the securelevel stuff in FreeBSD is nice, but OpenBSD is still more secure. Does that make OpenBSD a better OS then FreeBSD?
When did Linux first appear? (Score:1)
Re:When did Linux first appear? (Score:1)
And you're right; LiGNUx look ugly.
I like brunettes better... (Score:1)
Re:That shouldn't have happened (raw devices!) (Score:1)
"but it's in no way necessary."
secondly, putting a FreeBSD machine in securelevel 3 makes it vastly more secure than a default OpenBSD machine...
rm -- '-i' ? :-P (Score:1)
Now We Know (Score:2)
Now we know. MS-DOS/Windows is an overgrown filesystem. Linux is an overgrown terminal emulator.
Re:I remember something like that... (Score:2)
ae
Ok, my screen's full of binary garbage. Never mind. A brief bit of experimentation got me a file open prompt, and I had my fstab. I made a few alterations, and then saved. And, having just hit enter, saw where it was saving it. I spent the rest of the night rebuilding my partition table by hand.
ttyS1 Sounds like BS... (Score:2)
Re:I remember something like that... (Score:2)
At one point I changed the root password. Typed it, typed it again, then logged out. When I logged back in, the password was incorrect. I managed to type the wrong password twice. Sigh.
Netwinders don't have floppy drives, by the way
I spent ten minutes trying different possible erroneous passwords...
Luckily, I was able to boot from the rescue partition and fix it, but that required a fair bit of paniced searching because there was nothing in the included docs...
But then again, that's nothing compared to the time I did physical damage from a program.
I was working on a robotic arm with a big servo. A gripper had to move up and the servo would go forward at one point. I was debugging (that was hell, but that's another story) and there was no delay between those operations (I forgot to add it). Result: gripper didn't clear what was in front of it when the servo pushed forward at "nothing gets into my way" mode. Can you say, "smashy-smashy?"
No I didn't get fired.
Re:The future of Linux? (Score:1)
Tears in my eye ... (Score:1)
In those days I didn't know any UNIX at all so I had to start learning all these small and somewhat silly commands on my Linux box. This was hard but I mastered it in a few years.
Everyone was laughing at me on work for using this toy operating system. Time has changed and no one laughs anymore.
//Pingo
PoP forever (Score:2)
Re:I remember something like that... (Score:1)
I, also, once had to edit my partition table by hand. (Though not the hairy experience you went through.) And now I'm wondering how many people out there have done something like this. Less than one thousand? One hundred? How many people know the feeling of watching that computer boot up after having diddled with the partition table?
Re:ttyS1 Sounds like BS... (Score:2)
Reminds me of urban legend of the software company demonstrating voice recognition software for MS-DOS. One member of the audience viewing the demonstration calls out "format c colon enter", and in quick succession someone else shouts "y enter". The demonstration is brought to a premature end ;-)
G.
Re:One Question (Score:2)
treke
Fame is a vapor; popularity an accident; the only earthly certainty is oblivion.
Re:I remember something like that... (Score:1)
I editted my partition table by hand once, using a disk sector editor - and a calculator...
*Urgh*
Steve
---
Re:ttyS1 Sounds like BS... (Score:2)
Re:Long term Linux is is bad for your brain... (Score:1)
Re:I find this hard to believe (Score:2)
I myself once reduced a HP-UX LVM partition on the fly. Not wanting to make any mistakes i grabbed someone to confirm me that everything was correctly written before i pressed enter. He confirmed me that indeed the
Shit INDEED happens
--
Re:I remember something like that... (Score:1)
Cuddly Penguin Mascots vs. Microsoft (Score:2)
No, no. Microsoft already has a cuddly stuffed animal toy - it's the Microsoft Barney doll that sings and dances and is Evil Purple colored. Fear that! -- Gates doesn't have a chance....
Re:That shouldn't have happened (raw devices!) (Score:1)
I find this easy to believe (Score:1)
Surprisingly Windozes didn't fall over straight away but kind of staggered about a bit first, it was interesting from a distance
All together now: "wouldn't happen under Linux!"
Re:I remember something like that... (Score:1)
YES!!! A Twin Peaks reference!!!
"How's Annie? How's Annie!?!"
The future of Linux? (Score:1)
Aha! Good to see that Ximian knows this [thinkgeek.com] and are pushing ahead in this exciting new technology!
I remember something like that... (Score:2)
Reminds me of a time where I had to write a small program (years ago) for Windows 3.1. I had about 40000 (exagerating) files with "random" filenames that needed to be named sequentially by date, to the format "00000001.dat". One wrong character in a string of the source made the program think it should be starting from C:\ instead of the current directory, so it happily started in C:\, and renamed each (writable) file to a nice, clean, number, recursively searching each directory under it.
Not really relevant, but we've all done things just as dumb, although I doubt how many people would've been inspired enough to turn a mistake into an operating system.
Re:I remember something like that... (Score:4)
It turns out that I didn't actually lose that much, but I had to write my own version of tar to suck off the parts of the disk that I could still reach (I had a terminal open in an affected (the most important!) subdirectory, I just couldn't doi any thing that tried to access the mount point (like 'pwd').
I had a hot date the next evening that didn't turn out that hot, when I pretty much fell flat on my face and didn't get up.
--
Re:Damn those Barbie dolls! (Score:1)
Rebel Code (Score:2)
Re:One Question (Score:3)
An OS is just a peice of software, just like any other peice of software. To the CPU, it's the same opcodes (With a special exception, but we'll skip that for now) The only reason that an OS is thought of as "special" is because it is the lowest level of software that you run on your computer. But it doesn't perform magic.
Now, on the Intel x86, task switching (Which is what Linus's terminal emulator was doing) is fairly simple. You set up a few CPU tables (The Global Descriptor Table & Interupt Descriptor Table), and point a software interupt to your interupt handler. That is, and interupt occures every n nanoseconds, and your code is automatically jumped to by the CPU. Now, you can do anything in that peice of code, but an Operating System does something called scheduling, were it saves the status of the currently running "process", and loads the status of a previously saved process. (All this involves is pushing the CPU flags onto the stack, changing a few CPU registers, and then poping data off the stack) Then your interupt code exits and the CPU goes back to running the code. Except you've changed the CPU registers, so it actually goes back to running the code from the process you've just swaped in.
This is all there is too it, in theory. Your two (Or however many) processes can do anything a program normally would.
Just having the scheduler though, does not make your code into a kernel. You need things like memory allocators, device drivers, process loaders, a filesystem, and a callable API, before your code can be considered an Operating System.
hahaha (Score:1)
Oh my how times have changed
And for those of you horrified by how badly Linus got beat playing Quake at the Transmeta Demo, I'm just glad to see he hasn't lost his love of games. I think.
Peace,
Amit
ICQ 77863057
filename globbing errors (Score:1)
It's not until you see the error about .html not existing that you realize what just happened.
You can touch -- -i in directories you are afraid of doing this in. Many would proably just instinctively answer yes anyway though.
IP of this? (Score:1)
--
Re:Hi Kirk. (Score:1)
--
Re:filename globbing errors (Score:1)
After doing some editing I find myself typing "rm *~", except sometimes I leave off the trailing ~.
This really sucks when you're in
more Linux arcana (Score:3)
Re:I remember something like that... (Score:1)
Tried to boot from a blank floppy by mistake. Buh-bye partition table and hello hours of work and frustration.
I hate whent that happens.
KFG
Re:I remember something like that... (Score:1)
Re:Damn those Barbie dolls! (Score:1)
NO! NO! peeing cat barbie is a real product!
See? http://www.barbie.com/Catalog/product.asp?type=100 001&theme_id=100001&subtype=100001&product_id=1002 7 [barbie.com]
Re:One Question (Score:4)
not really funny ... (Score:1)
um.. (Score:1)
I find this hard to believe (Score:1)
Long term Linux is is bad for your brain... (Score:1)
Re:Long term Linux is is bad for your brain... (Score:1)
Re:When did Linux first appear? (Score:2)
Answer to your sig - 'cos liGNUx is ugly
For those of you who don't get this... (Score:4)
I tell ya' (Score:1)
That's what you get for conceiving of, designing, sweating over, compiling, debugging, researching, debugging, not implementing permissions in and then running Linux as root.
Jeeze!!
Re:I remember something like that... (Score:2)
Sadly, there's no "+1, Poor Boy"...
Re:I tell ya' (Score:2)
link cache (Score:1)
Linux Anecdotes [google.com]
for the I hate clickable links crowd,i w/texts/linux-anecdotes.html+&hl=en
http://www.google.com/search?q=cache:liw.iki.fi/l
Re:I remember something like that... (Score:1)
why would you be ready to click 'y' when 'dir' doesn't ask you that question?? it should have clicked to you
hmm (Score:1)
good job!
Re:I remember something like that... (Score:1)
Re:I remember something like that... (Score:1)
Re:not really funny ... (Score:1)
where your MBR should be.
But when someone else does it... muahahaha.