LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2003, 12:39 AM   #1
J_Bone
Member
 
Registered: Aug 2003
Location: Vancouver, Canada
Distribution: Mandrake 9.1
Posts: 59

Rep: Reputation: 15
Mounting a logical partition...


Greetings from an uber-newbie....

Pretend you know nothing about Linux, but just installed Red Hat 9.0 (like me ). Now, I also have Windows XP on the same hard drive (NTFS), as well as a logical (FAT32) drive. XP recognizes the logical drive, but for the life of me I can't figure out how to mount it in Linux; my goal is to use that logical partition for both OS's.

I've looked through these forums quite extensively but I'm afraid I really need to know every detail: for instance, I think I open the terminal (or press control+alt+1?)... is this where I start? And then what code need I enter?

Sorry if my explanation seems a little convoluted, but I am still a little lost

Thx in advance.....

J
 
Old 08-17-2003, 12:47 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Open a terminal or get to a prompt (ctrl-alt-F1) and do 'fdisk -l'. You should see a reference to, say, an /hda5 that's formatted as fat. If so, do 'mount /dev/hda5 /mnt/whatever mount point you have handy'. And this fdisk (and probably mount) will need to be done as root. It sounds like what you're confused about is the Linux partition-naming system. Extended partitions start at 5.
 
Old 08-17-2003, 12:53 AM   #3
J_Bone
Member
 
Registered: Aug 2003
Location: Vancouver, Canada
Distribution: Mandrake 9.1
Posts: 59

Original Poster
Rep: Reputation: 15
Hmmmm OK I know which "hda" it is (5 as a matter of fact, but I'm at work right now can't check ), and I can sign in as root..

What do you mean by "whatever mount point you have handy"? Don't I type "FAT32" or something there?

And I read somewhere about having to alter fstab in order to have the drive remounted each time I log in.... now I found fstab (via search, a read-only file), but it wouldn't let me change it.... how do I change it, and what need I put in?

Thanks for your help,

J
 
Old 08-17-2003, 12:57 AM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Oh. Oops. Okay, then it's just 'mount /dev/hda5 /mnt/whatever'. You shouldn't need a -t option (for fstype) but you do need a mount point - an empty directory to incorporate the drive into the root filesystem. It may just be /mnt or it may be /mnt/hd or something of the sort. And fstab shouldn't be read-only. If it is just chmod it and add a line about the partition and it'll automatically mount on boot. I'll come back and post the line shortly if someone else doesn't before me - I have to run to another site real quick first.
 
Old 08-17-2003, 01:06 AM   #5
J_Bone
Member
 
Registered: Aug 2003
Location: Vancouver, Canada
Distribution: Mandrake 9.1
Posts: 59

Original Poster
Rep: Reputation: 15
OK thanks! I'll wait
 
Old 08-17-2003, 01:45 AM   #6
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Sorry about that - I think it's 'chmod 644 /etc/fstab' - it should have

-rw-r--r-- 1 root root

anyway. And then fstab should say something like

/dev/hda5 /mnt/shared vfat auto,users 1 0

My mount point's called 'shared' so modify that to whatever yours is.
 
Old 08-17-2003, 01:47 AM   #7
J_Bone
Member
 
Registered: Aug 2003
Location: Vancouver, Canada
Distribution: Mandrake 9.1
Posts: 59

Original Poster
Rep: Reputation: 15
Thanks, I'll try it when I get home (one hour )

I'll post after I try it
 
Old 08-17-2003, 06:42 AM   #8
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Hi J_Bone

To mount your FAT32 "logical partition" automatically on Boot-up

First - Create a mount point :

Open a shell and type :

su
Then type you root password – then type :

mkdir /mnt/windows

Then - open /etc/fstab with:

kedit /etc/fstab

Then - put an entry at the bottom of your /etc/fstab file on a new line - (just substitute in your Partition and Mount point in place of my example ones)

/dev/hda1 /mnt/windows vfat defaults,umask=000 0 0
 
Old 08-17-2003, 12:52 PM   #9
J_Bone
Member
 
Registered: Aug 2003
Location: Vancouver, Canada
Distribution: Mandrake 9.1
Posts: 59

Original Poster
Rep: Reputation: 15
Thanks Digiot and Skyline!!

It's working now !

I blundered my way upon it.

One note: I used gedit /mnt/window, not regid /mnt/window (still works).

I can now use the gimp to upload the Jpeg in the folder!!

Thanks very much!

One question: I believe I mistakently created a couple of directories by accident, called /fat and /fat/?

Should I delete them, and if so, how? They may have deleted upon restarting because I can't find them....

I have many more questions about Linux but I am happy for now!
 
Old 08-17-2003, 07:09 PM   #10
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
That's strange. If they disappeared I guess it's not an issue. If you do come across them maybe you did accidentally create them or they might have been the default mount points for RH - I can't think of any reason Linux would *need* them so they should be safe to delete. 'cd path one level above fat' + 'rmdir -p fat/fat'. That's assuming they're newly created directories or unused mountpoints, so empty, and that I understood correctly that a second 'fat' was a subdirectory of the first. Or just use a TUI/GUI file manager like mc or - are you using Gnome? - Nautilus.
 
Old 08-17-2003, 07:26 PM   #11
J_Bone
Member
 
Registered: Aug 2003
Location: Vancouver, Canada
Distribution: Mandrake 9.1
Posts: 59

Original Poster
Rep: Reputation: 15
Well, (and once again forgive me, the terminology is all a little new to me, ) what happened was I had been trying to mount the drive by following another thread, but it wasn't working for me.

In the process of trying to mount it, I created the directories /mnt/fat, /mnt/fat32, /mnt/window and /mnt/windows. The problem was, I couldn't figure out how to edit the fstab, but Skyline's method worked for me (although I had to change the line kedit /etc/fstab to gedit /etc/fstab..)

I started another thread asking how I delete these directories (yes I am the UBER-newb) and MasterC showed me how to rm -r them....

All is great now! Now for this offline message thing (see other thread )

Thanks for the help digiot.
 
Old 08-17-2003, 07:35 PM   #12
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Ah, I see. Sorry for not specifying that - it's just one those 'text file with your favorite editor' things. Glad MasterC had you covered. And somebody will get to your gaim issue - I've used it a couple of times but never paid any attention to the offline messages part. Anyway - no problem, glad to help what little I can.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
logical partition to a primary one britcoms9 Linux - Newbie 4 01-20-2008 06:46 PM
Mounting multiple logical partitions - suse 9.3 elroacho Linux - Hardware 2 10-28-2005 07:00 PM
Linux on a logical partition? raid517 Linux - Hardware 7 09-26-2003 07:37 AM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 03:13 PM
logical or primary partition Socrates Linux - Software 1 02-25-2001 03:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration