|
From the Desktop: Dealing with the Dark Side
Peace in Our TimeJust got back from a week-long trip to the South, and I must say there's some beautiful country down there, particularly in South Carolina. Charleston was a fascinating city to visit--old and balmy, and still referring to the American Civil War as "the Unfortunate Misunderstanding." Having lived next door to Illinois all of my life, I discovered there are whole new ways of people remembering Abraham Lincoln, and not with a great deal of fondness. What's going on in the operating system theater is certainly not a civil war by any means, but it is regarded in the media as a war nonetheless. Windows vs. Linux: the battle royale between the super heavyweight and the scrappy underdog, er, penguin. It's a good thing Microsoft has no logo that can be anthropomorphized, otherwise we'd be seeing splash art with a penguin in boxing gloves squaring off against whatever cutesy representative Microsoft had. Having been a newspaper editor once upon a time, I'll let you in on a little secret: the press loves a good fight, and they will do almost anything to egg contenders on. Conflict, they will teach you in Journalism 101, is news. I am not a big fan of this idea, though I certainly understand it. People in general like a good scrap, which is why Jerry Springer is still on the air. (Those of you outside North America, be glad if you don't know who I'm talking about.) But I am here to preach another line of thought: why does there have to be a war at all? This concept is not so radical: if you like Linux, use Linux. If you need Windows, use Windows. Even the most hardcore Linux users usually grudgingly admit that they keep a Windows partition or PC around their house. "It's for the wife," they mutter, "or the kid's education games." Don't be afraid, speak up! You're a bi-OS user! Be proud of your choice! And, in the spirit of utter moral corruption, I'm going to tell hetero-OS users how to be bi-OS, too!
Knocking Down the Partition WallIf you have set up your PC for dual-booting Linux and Windows, then you have the ability to access Windows' directories with ease. All you need to do is mount the drive, just like a floppy or CD-ROM drive. The first thing to do is to find out what your Windows hard drive is named.
In your Linux system, open the file
In the file, look for a set of lines that list your system's drives.
From this set of values, you can see that your hard drive is named hda (most hard drives are, but you should check anyway). Go ahead and exit emacs. Now you know the name of your hard drive. But what is the name of your Windows partition? Remember, Linux does not use such silly notations as C:\ or D:\ drive. Luckily, there's an easy answer to this question. In your terminal window, type:
This will start the fdisk application and bring up this prompt:
Type p at this prompt to see a list of the partitions located on your hard drive, like this example:
And right there, in black and white, is the specific name of the Windows partition: hda1. You're almost there. The first thing you need to do is make a directory on your Linux file system to mount the Windows partition. I usually do something like
Now, if you are the root user, you could enter the mount command to access the Windows partition. The syntax of this command is always
So, in this instance, you might type
But this would not quite be right. After all, the filesystem format on your
Linux partition is ext2, while Windows uses FAT32. So to get these two systems
to work together, we just need to add the
Now you can access the files on the Windows partition to your heart's
content. Unless you want to use the partition as a regular user, because then
this command won't fly. And, even if you were logged in as root, why retype the
mount command every time? What you need to do is edit the
When you open the
So, if you add a line for your Windows partition, you'll be all set. The format of the line is similar to the mount command. When you are finished, your file should look something like this:
If you want to mount other types of partitions, you are certainly able to do
so with the mount command or the
Let's All Do the Samba!Using the Samba sever is another excellent way of connecting to Windows PCs that you might be networked to. I could go on and on explaining how to set this up, but someone else has already done so--in a very concise way. I strongly recommend you go out and read the Samba series of help files written by Ying Zhang. They are well written and easy to follow. After you get done setting up Samba using these articles (or any other
method you choose), I have one further suggestion: make a copy of these six
files in the
Save these files on a floppy, or on another partition or machine. That way,
if you every reinstall another version of Linux on your machine, all you need
to do is reinstall the Samba server, create the smb group, the smbuser, and the
public and data directories. The you can just copy over these six files to your
Now go in peace, and work together with your fellow operating systems and make the world a nicer place.
|