Slashdot Mirror


Linux Anecdotes

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. '"

26 of 68 comments (clear)

  1. Did something similar 3 days ago... :( by Anonymous Coward · · Score: 2

    Hi,
    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 /dev/hdc backup.img

    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!

  2. Re:Long term Linux is is bad for your brain... by Anonymous Coward · · 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.

  3. There were no BSD for 386 at the time by Per+Abrahamsen · · Score: 2

    Bill Jolitz 386 was released after Linux had gain momemtum, and BSD 4.4 Lite and FreeBSD was much later than that.

    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.

  4. Re:I remember something like that... by llywrch · · Score: 2

    > Whoever moderated that funny doesn't have a heart. The poor guy suffered thru that experience, it's not nice to laugh at his
    > 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

    --
    I think I see a trend here. Maybe for them it really would be easier to muzzle the entire internet than to produce p
  5. Re:I remember something like that... by PD · · Score: 2

    I once did a dd if=bootdisk.imb of=/dev/hda.

    Luckly, /dev/hda had Windows 95 and a swap partition on it. /dev/hdb was where Linux lived. Nothing important was lost.

  6. Re:One Question by edhall · · 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?

    -Ed
  7. Now We Know by SEWilco · · Score: 2
    Linus wasn't very happy with Minix, so he kept improving his terminal emulator, and modifying it to become more like an operating system.

    Now we know. MS-DOS/Windows is an overgrown filesystem. Linux is an overgrown terminal emulator.

  8. Re:I remember something like that... by Fluffy+the+Cat · · Score: 2

    I've done something similar. While installing an old version of Debian, I needed to edit my fstab. The boot floppies came with a tiny editor called ae. Momentary brain fade led me to do

    ae /dev/hda

    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.

  9. ttyS1 Sounds like BS... by Leghk · · Score: 2

    That anecdote about using /dev/hda instead of /dev/ttyS1 sounds like BS. /dev/ttyS1 didn't exist in the kernel until very late, something like the 1.2 kernel line. Before that people used /dev/cua0, not /dev/ttyS1. You can still use the /dev/cua0 devices in the current kernels, but the kernel will throw a warning in syslog.

    1. Re:ttyS1 Sounds like BS... by barracg8 · · Score: 2
      • That anecdote about using /dev/hda instead of /dev/ttyS1 sounds like BS.
      Yeah - I want to believe, but...

      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.

    2. Re:ttyS1 Sounds like BS... by sconeu · · Score: 2

      That one sounds like this UserFriendly strip.

      --
      General Relativity: Space-time tells matter where to go; Matter tells space-time what shape to be.
  10. Re:I remember something like that... by jfunk · · Score: 2

    I set up a Netwinder at work, which was cool. I like that little guy.

    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. :-)*

  11. PoP forever by QuantumG · · Score: 2

    number 2 was cinematic, sure, but it lacked that special something that PoP had. Guess it's like that with all sequels.

    --
    How we know is more important than what we know.
  12. Re:One Question by treke · · Score: 2

    he said why himself, he started Linux as an attempt to teach himself to program his 386. He never planned on it being popular, it was just a project for himself. Look back at the hole Linux is Obsolete thread, not much talk of any available alternatives.
    treke
    Fame is a vapor; popularity an accident; the only earthly certainty is oblivion.

  13. Re:I find this hard to believe by psergiu · · Score: 2

    Nope, it isn't hard :) A friend of mine once formatted a floppy in ext2 with the command "mke2fs /dev/hda". On a running webserver. Big one. It had only one hdd. /dev/hda. :)

    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 /dev/vg00/lvol3 is the /home partition an the command is correct. So i pushed Enter and it reduced the /dev/vg00/lvol2 (as it was clearly written on the command line which 4 eyes inspected it :) and reduced the swap partition. On a live system. Also big one. I now use 12x24 fonts and read the command aloud at least three times in moments like that. :)

    Shit INDEED happens :)

    --

    --
    1% APY, No fees, Online Bank https://captl1.co/2uIErYq Don't let your $$$ sit in a no-interest acct.
  14. Cuddly Penguin Mascots vs. Microsoft by billstewart · · Score: 2
    Lars said > What is it that Linux has that no other operating system has? A cuddly, lovable, silly-looking mascot. If we play our cards right, the Linux penguin could be the next mass-consumer hit product. Can you imagine a Windows flag competing against our penguin? No, this time Mr. Gates has definitely dropped the ball and we're in exactly the right position to pick it up. Forget Microsoft, they're history. Start worrying about Mattel and the Barbie doll!


    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....

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  15. I remember something like that... by S5o · · Score: 2

    "...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..."

    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.

    1. Re:I remember something like that... by Stephen+Samuel · · Score: 4
      Similarly for me, doing a backup to rsd1a instead of rst1a (disk instead of tape). I hit 'break' real fast and spent the rest of that night (and much of the following morning) recovering the data on that disk.

      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.
      --

      --
      Free Software: Like love, it grows best when given away.
    2. Re:I remember something like that... by am+2k · · Score: 2
      The poor guy suffered thru that experience, it's not nice to laugh at his mistakes.

      Sadly, there's no "+1, Poor Boy"...

  16. Rebel Code by Vanders · · Score: 2

    I knew I'd read some of this before (Especially the "dialling the harddisk" thing). Rebel Code by Glyn Moody has a few of the anecdotes from Lars, as well as some more from diferent people who were involved with Linux & Linus in the early years. The book even has some of the original news articles to the Minix group, which can be very interesting when you put them in context.

  17. Re:One Question by Vanders · · Score: 3

    For a more detailed answer, get Andy Tanenbaums OS Design & Implentation, but for now, i'll try & explain.

    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.

  18. more Linux arcana by The+Pim · · Score: 3
    A fun collection of Linux quotes (which doesn't seem to have a cannonical source anymore). My favorite:
    It's God. No, not Richard Stallman, or Linus Torvalds, but God.

    --

    The evaluation of an action as 'practical' . . . depends on what it is that one wishes to practice.
  19. Re:One Question by MrBogus · · Score: 4

    http://www.softpanorama.org/People/Torvalds/linus_ finland_period.shtml is a fairly detailed story about the beginnings of Linux and the problems that folks were having getting a PC version of BSD out.

    --

    When I hear the word 'innovation', I reach for my pistol.
  20. Re:When did Linux first appear? by RatFink100 · · Score: 2

    According to Rebel Code (excellent book by the way) 0.01 was released September '91 - but Linus only told a group of friends he'd met ont the Minix newsgroup. 0.02 was announced on the newsgroup on 5th Oct 1991.

    Answer to your sig - 'cos liGNUx is ugly

  21. For those of you who don't get this... by TheOutlawTorn · · Score: 4

    The "Dry Finnish Humor" patch is currently being reviewed by Alan Cox and should be available Real Soon Now. Linus sees no need for it, as he already gets the jokes.

    --

    He who joyfully marches in rank and file has already earned my contempt. - "Big Al" Einstein
  22. Re:I tell ya' by zeng · · Score: 2

    I think that he hadn't implemented file permissions into the kernel yet, and this incident was what prompted him to do so. If there were no file permissions, then he could have done this as a normal user.