LinuxQuestions.org
Visit Jeremy's Blog.
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 01-14-2007, 09:43 PM   #1
stephen.madden
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
Partitions


I recently created a dual boot for Linux and Windows. I am running Kubuntu and Windows XP Pro. Before loading Linux, I created a FAT32 partition - I was told this was necessary in order to trasfer files between the two systems. I am brand new to Linux, so I am wondering how to find this Windows-created partition?

Thanks in advance.
~Stephen Madden
 
Old 01-14-2007, 10:09 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
If you can't see the partition when you are running Windows, and if you could see it before you installed Linux, then you may have destroyed the partition when you installed Linux.
 
Old 01-14-2007, 10:16 PM   #3
FnordPerfect
Member
 
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Rep: Reputation: 15
(If I remember correctly, to make Windows "see" a FAT32 partition, it has not only to be created in the partition table, but also formatted.)

However, I hope I understand you correctly in that you just want to make the partition accessible in Linux??
The rest of the post is assuming that.

What kind of hard disk do you use?
I suppose it is IDE/ATA. If it is SATA, then just substitute any occurence of "hda" with "sda".

Ok, here we go..

In Linux, any device in your computer is available as a device file in /dev
Your hard disk connected as the first IDE device is /dev/hda
This is the whole hard disk. Every partition it contains are available as the files /dev/hda1 to /dev/hda4 (/dev/hda5 and higher would be logical partitions..).

To find your partition type in the terminal:
sudo fdisk -l /dev/hda

It will tell you in the "System" column which of your partitions is formatted FAT32.
However, to access files on it, this partition has to be mounted to a directory in the file system (called a mount point).

By default, you have to be root to mount a hard disk

For example, if /dev/hda1 is your FAT32 partition, you would create a directory where the partition content would appear
mkdir /mnt/fat32 ( <- example. name it whatever you like)

and then mount it
mount -t vfat /dev/hda1 /mnt/fat32

Now you can access the content.

You might want to do it as a normal user, and you might want to have it mounted automatically at boot time.

Therefore, you have to make an entry in /etc/fstab which looks like this

Code:
/dev/hda1       /mnt/fat32            vfat    auto,user,quiet,showexec,uid=1000,gid=1000,umask=022       0 0
As you can see, the first column is the device file, the second is the mount point, and the third is the file system type.
The forth column however contains a comma-separated list of mount options which vary from file system to file system. You can look them up using man mount
These are needed, since FAT32 does not support all features Linux demands from a file system (e.g., ownership and permissions).
 
Old 01-15-2007, 12:33 AM   #4
stephen.madden
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Original Poster
Rep: Reputation: 0
This is exactly what I was looking for. Thank you very much. What I need to do is take time every evening and go through tutorials.
 
Old 01-15-2007, 07:41 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I'm pretty sure that Kubuntu automatically sets up mount points for every HD /partition that it finds

Look in /mnt and see if there are some entries like hda1, hda2, sda1, etc. If these are there, you can simply mount them by typing ---eg---"mount hda1"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
windows killed my partitions! no linux partitions found on this computer. The MJ Linux - Software 10 01-05-2007 09:31 AM
Question on creating more partitions than default ones, i.e. /home,/root partitions casmac SUSE / openSUSE 1 12-20-2006 06:02 PM
e2fsck: root partitions and ro mounted partitions Clemente Linux - General 4 11-06-2006 10:32 PM
how do I add partitions to drives that have Logical Volume (LVM) partitions? The MJ Linux - Software 5 08-17-2006 07:15 PM
/proc/partitions showing wrong partitions netstv Linux - General 1 07-10-2006 02:11 PM


All times are GMT -5. The time now is 08: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration