MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hello all. I have recently installed Mandrake 9.1 as a dual boot with WinXP. After I had already installed Linux, I got a new hard drive (40 gig) and installed it as a second disk. I partitioned/formatted it in Windows to two 20 gig Fat32 partitions. I was under the assumption that Linux could read this, but I haven't been able to access anything on it via Mandrake. I opened Mandrake Configure (or whatever the management tool is called) and found that the drive was recognized in Linux and was denoted as "Windows" with "Win98 Fat32" partitions. Did I mess up here? Should I reformat. Or is there something else I need to "click" in Mandrake so that it can read it.
thing (after fiddling around until I found the correct terminal) and it listed the contents of the first partition. Nothing about the second. Then you told me to
but the command 'edit' isn't recognized (I am using KDE Power User Terminal (or called something close to that)). I fooled around and finally used 'view /etc/fstab/' and (after figuring out what I was kind of doing) added the line
(and then a bunch of stuff that I copied from the "dev/hda1" line because it looked like it was used everywhere else (some font stuff etc.) )
Well, it did nothing. The /etc/win2 directory is empty when I reload linux, so I obviously guessed wrong.
Anyway, if you haven't guessed by now I am a linux nebie and probably shouldn't be screwing around with root privaleges on files which are important without more of a clue than I've got. So, if any of you could tell me what I should put in my /etc/fstab file that would be helpful.
go to mandrake control center -> mount points and then click on disk drake. You will see all the drives and partitions that mandrake recognizes. Click on the two new ones and then choose a mount point for each. A mount point is a directory, btw. It should be an empty directory. That's what the
should have accomplished.
ok.... here's a tip that all newbies need to know: man is your friend. If you don't know the syntax, options, or simply what a command does, type "man [command]" (man's short for manual). It may be thick at times, but you can figure just about anything out by looking at the man pages.
now, that said, read the man page for mount. It will probably help out alot. As for the other partition, that's fairly easy. You already know that the physical drive you're looking for is hdb. So, look in /dev for all the files that start with hdb. Chances are that the other partition is hdb2. Once you know what that is, then just create a new directory for the second partition and mount it there.
These last two lines are the ones I added. If there is anything wrong, please let me know. Also, I couldn't find anywhere what "umask=0 0 0" does, because I wasn't paying total attention when I edited this, I left it in. The mount seems to work, but does this umask thing do anything (or, rather, what is it supposed to do?)
I'll help you out anyways though... umask is used to set the default of when you create a new file on that partition. You should also read the man page on chmod. It will be useful in the future (such as when you download a self-executable file and need to tell the system that it can be executed). You currently have the 2 windows partitions set so that all new files on them are defaulted to everyone being ablle to read, write, and execute them. The standard on *nix machines is to default to the owner can read and write, the group can also read and write, and everyone else can only read. This would be umask = 113. You should change it to this for security reasons.
And I know you will get confused when you read the chown, so I'll help you out there. Think about it like this, umask is set to block permisions, hence 1 = block exec, 2 = block write, 4 = block read. chmod is set to allow permisions, so 1 = allow exec, and so on. It does make sense once you bang your head enough times.