PDA

View Full Version : Why I Love Linux - Part II


sleddog
03-28-2001, 11:00 AM
[Too late I realized that "WILL - Part I" should not have been in the After Hours Forum. That forum advises "no techie stuff here!"]

Why I Love Linux - Part II

Can you imagine a world without drive letters? Have you even popped a 2nd harddrive in a machine and had it mess up everything? D becomes F, E becomes H, and god knows where the CDROM ends up. Just who's in charge here, anyway?!

Welcome to the Unix filesystem, where drive letters are a blessedly unknown concept.

Linux uses a native Unix-style filesystem called ext2. It's a flexible and extensible system that takes a totally different approach than does the DOS-based system we're familiar with.

The filesystem is a tree, beginning at the root "/". From /, directories are created -- for example /home and /tmp. These of course can have subdirectories: e.g., /home/sleddog

Much like DOS, you say, except it uses a forward-slash separator (/) instead of the backslash (\).

The magic comes with how this filesystem works with harddrives and partitions.

Suppose we have a harddrive fdisked with 3 partitions. In DOS we'd get this:
-- C drive, the primary partition
-- D drive, a logical drive in the extended partition
-- E drive, a logical drive in the extended partition

Linux would see it this way:
-- hda1, the primary partition
-- hda2, the extended partition
-- hda5, a logical drive in the extended partition
-- hda6, a logical drive in the extended partition

So the three partitions where data is stored are hda1, hda5 and hda6. (What happened to hda3 and hda4? Those designations are reserved for other *primary* partitions -- a harddrive can have up to 4 primary partitions.)

But you don't "see" hda1 or hda5 in the Linux filesystem. You see the directory tree you created (as above). The harddrive partitions are "plugged into" the directory tree, wherever you want them to be.

On a Linux system all user-files are usually stored in the /home directory. Suppose we want these files to reside on the second harddrive partition (hda5). In Linux we issue the command:

mount /dev/hda5 /home

And the hda5 partition is now accessed through the directory /home. Of course, mount commands like this are usually executed automatically when Linux first boots.

This approach provides you -- the user -- with complete control of your filesystem and harddrives. *You* decide *exactly* how you want you drives and partitions to appear in the filesystem.

Supoosed that partition hda5 started to get pretty full and you need to upgrade to a larger harddrive. Yet get a nice new 30gb and partition it. Now installing it in a DOS/Windows system without disrupting all the drive letters is pretty darn difficult.

Here's how you could do it in Linux. This assumes for the sake of illustration that the 30gb is installed as the second harddrive, and you're going to use the 1st partition on that drive):

mount /dev/hdb1 /mnt/tmp
cd /home
cp -a * /mnt/tmp
umount /mnt/tmp
umount /home
mount /dev/hdb1 /home

These commands do this:
1. plugs the new harddrive into the filesystem at a temporary place.
2. changes the current working directory to /home
3. Copies ("-a" means archive, which copies recursively) everything currenlyt in /home to the tmp location where the new harddrive is mounted.
4. unmounts, or releases, the new drive partition from the temporary place.
5. unmounts the old partition from /home
6. mounts the new drive partition at /home

The filesystem is *exactly* the same as before, except now you've got tons of diskspace at /home! (of course you'd also edit the boot-up mount command so it automatically mounts the new drive partition at /home instead of the old partition).

Where's my CDROM drive? at /cdrom of course, and the floppy drive is /floppy!

So long alphabet soup!



------------------
sleddog
[sleddog.f2s.com] (http://www.sleddog.f2s.com)

Ghost_Hacker
03-28-2001, 11:42 AM
Thanks Sleddog another tidbit to print our and keep http://www.PCGuide.com/ubb/biggrin.gif

------------------
Comment heard from a Klingon programmer.

"Debugging? Klingons do not debug. Our software does not coddle the weak"

Fish
03-28-2001, 12:14 PM
How do you spell that Sleddog? http://www.PCGuide.com/ubb/biggrin.gif This Linux stuff sounds more and more complicated the more I read about it. lol

------------------
I bet I can screw up more PC's faster than you can fix 'em!

sleddog
03-28-2001, 12:32 PM
Originally posted by Fish:
How do you spell that Sleddog? http://www.PCGuide.com/ubb/biggrin.gif This Linux stuff sounds more and more complicated the more I read about it. lol


Complicated? No. Different? Yes. Just start by unmounting that part of your brain that holds all the DOS/Windows knowledge http://www.PCGuide.com/ubb/smile.gif

------------------
sleddog
[sleddog.f2s.com] (http://www.sleddog.f2s.com)

Fish
03-28-2001, 12:48 PM
That ought to be easy Sleddog. There's not much in there yet!


------------------
I bet I can screw up more PC's faster than you can fix 'em!

mjc
03-28-2001, 12:56 PM
So, basically in DOS you are limited to 26 drives/partitions while in Linux you're only limited by how many names you can come up with for directories?

In Dos you can label your drives/partitions all you want but you can't access them by those labels. I think that my wife would like Linux, she keeps saying things like, "Why can't you call x this and get to it by typing in its name?" where x is a drive.

I know that Linux is also much more efficieant than DOS, it can give acceptable performance on machines that aren't the latest and fastest, but for some reason I can't get any kind of Unix based OS to run on my current machine (HP with onboard video) without removing my video card.....just to much of a pain to do just to play around with a new OS, so I guess I'll need to build a box just for Linux........

The more you guys talk about the more I really want to get it up and running.

------------------
mjc
Links list:Computer Links (http://www.fortunecity.com/skyscraper/highrise/11/index.htm)

Do Vulcans even have to debug?

Rick
03-29-2001, 12:19 AM
Linux does have one major short coming.
High end printer support. (Ie: above 600 DPI)
Having a 1200 dpi printer emulate a 600 dpi is the pits.

It also lacks support for most network protocol's except tcp/ip

In the case of the unknown video driver.
Like windows you must Hope the people who make the card also support linux.

When it comes to network cards. Many 10/100 NIC cards confuse the heck out of the OS and drivers.
Again unless the card manufacturer supports linux.

BTW. I'm not bashing linux. In Fact I like it a lot.
I just hate spending $500 for a printer and then having to use it like a $50 HP 600

Once they solve that It's good by to Windoz.

Kalle
03-29-2001, 04:24 AM
Why I do not love Linux

Reviwes from my point of view:

At boot:
Linux: 5 cds (and that is moderate these days http://www.PCGuide.com/ubb/rolleyes.gif .) A whole lot of questions I cannot answer , even with the manual. And the dilemma of which programs I should install.
Win: I insert the cd and wait, thats it.

Startup configuration of the GUI:
Linux: Warnig after warnig like "this could corrupt your filesystem/data/monitor(!)". No drivers for the hardware I use, not even on installation disks of the hardware (I know, not Linux fault). And its extremely time-consuming & frustrating trying to solve some error messages that you need to bee a guru for to understand.
I haven't as of yet got any soud out of Linux
Win: none

GUI:
Linux: Why won't the (x)windows FIT TO MY SCREEN. I cannot use half of the programs that are pre-installed, because either they are to big for my screen (configured to 640x480, the maximum of my monitor) or they won't just start.
Win:I like it...

Using:
Linux: I now copyed this to my floppy, unfortunately, the next day I notice that I hadn't mounted my floppy so Linux copied all the files somewhere else & didn't even warn me about it. BTW where is my 2nd floppydrive?
Win:I like it...

-What are we going to do today, Linus?
-Same thing we do every night, Tux, Try to take over the world!

I must admit, tough: Linux at school, with me as endlooser with a big screen is rather nice.

monkeyboy
03-29-2001, 11:12 AM
I Love Linux because I forget it's there.

I've been running Linux as my print server now for about 3 years. I began to use it because I needed a way to be able to print on my network from Unix as well as Windows clients and servers. Linux and Samba looked like a perfect fit, and after installing it on a 486/50 with 32MB of ram and a 1GB hd, it's been stable and reliable. Yes...I'm serious about using a 486, and it's still going strong with a HP8000 laser printer. http://www.PCGuide.com/ubb/biggrin.gif

What I really love is that with an X-windows server, you can get all of your Linux machines to display there statuses on a single screen. I just turn around and look every once in a while and I can see if all the servers are ok. Then with SSH, if I need to make any changes I can do it all remotely and securely from my one machine. You gotta love that...
http://www.PCGuide.com/ubb/biggrin.gif

Damn...I guess I am really geekie! http://www.PCGuide.com/ubb/wink.gif

monkeyboy
03-29-2001, 11:13 AM
Sorry, hit reply when I was trying to edit above post. http://www.PCGuide.com/ubb/rolleyes.gif

[This message has been edited by monkeyboy (edited 03-29-2001).]