Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-11-2005, 05:30 AM   #1
LQ Newbie
Registered: Jun 2005
Location: Bangalore , India
Distribution: Fedora Core 4, Suse 10.1
Posts: 27

Rep: Reputation: 15
exact procedure of mount?

what exactly happens when i mount a fat32 partition on ext3?

is the partition actually "mounted" and takes up the space on ext3?
is the partition just read from where it is?

for example if i have given 25 gb to ext3 and i try to mount 30 gb of fat32 on it will it be mounted?

also is it possible to mount ntfs? can someone give me the command.
Old 08-11-2005, 05:36 AM   #2
Registered: Jun 2005
Location: Oslo, Norway
Distribution: Slackware 11, Solaris 10, Solaris 9, Sourcemage 0.9.6
Posts: 322

Rep: Reputation: 31
When you mount partitions, they will not take up space from the partition you mount them to. Mount works for both FAT32 and NTFS, but to have read and write access to NTFS you must compile NTFS support into the kernel.
Old 08-11-2005, 05:40 AM   #3
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
I think you've got things a bit tangled here (if that's the right word...). Could you give (as user root ('#' is root shell prompt)) the result of:
# cat /etc/fstab
# mount
# fdisk -l
As for NTFS, you'll only have read-only access, unless you use the "Captive" driver; I have never used this so I can't help with ntfs.

Old 08-11-2005, 06:01 AM   #4
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,908

Rep: Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754
Think of the command "mount" as putting a tape on a tape drive so the system can read and write to it.

When you mount a fat32 partition, it is added into the existing file system at some mount point you specify.

The concept in Linux is different to other OS's like windows. Everything starts at the root, designated by the "/" If you add a directory, it is referenced from the root. ie. /home/user is where your user stuff goes. Note the "/" at the beginning. This says root.

Partitions are simply mounted to some point; either from the root, or through some directory structure. There is is difference in that linux doesn't reference hard drives as windows does, and that doesn't show up in the single tree structure.

So to answer one question, mounting a fat32 has nothing to do with the ext3 partitions you have or the ext3 size.

The basic thing you have to do is create a directory in the existing file system where you want to mount the new partition. Most linux distro's have a directory /mnt. This is a place you can mount more partitions if they are to be used by the system, or local users. If at any point you want to share files on this partition through samba, ( windows shares) you need to mount it within a home directory.

As for the mount command, it is much easier to add the command to your /etc/fstab file and have it mounted at boot time. Here is a sample of a fat32 partition I have mounted.

/dev/hda1 /mnt/win_c vfat umask=0,iocharset=iso8859-15,codepage=850 0 0

The first part /dev/hda1 is the hard drive and partition I'm mounting. The /mnt/win_c is the mount point I'm specifying. I had to run a command "md" make dir once to create an empty directory. The rest of the stuff tells linux what file system (vfat) character set etc to expect. Fstab is read during the boot process, and a mount command is done for each partition.

Hope this helps.
Old 08-11-2005, 06:08 AM   #5
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
#mkdir /mnt/ntdrive
= look which is your NTFS drive eg /dev/hda5
#mount /dev/hda5 /mnt/ntdrive -t ntfs -r -o umask=0222
= ntfs kernel must be installed find in sourceforge must same kernel use using

#mkdir /mnt/fatdrive
= look which is your fat drive . eg. /dev/hda6
#mount -t vfat /dev/hda6 /mnt/fatdrive

have fun
Old 08-11-2005, 02:16 PM   #6
LQ Newbie
Registered: Jun 2005
Location: Bangalore , India
Distribution: Fedora Core 4, Suse 10.1
Posts: 27

Original Poster
Rep: Reputation: 15
thanks a lot guys.... appreciate the great answers! thanks camorri for the detailed answer!


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
Exact HD-to-HD copy samtheviking Fedora 7 02-25-2005 05:32 PM
what exact does DNS and NFS do. Do I actually need them? babyboss Linux - Networking 1 09-21-2004 08:32 PM
Automatic "mount" procedure-How? kpachopoulos Linux - Newbie 1 06-28-2004 03:00 PM
making an exact cd copy coolamit78 Linux - Software 2 04-04-2004 02:03 PM
Exact URL to get gcc? ivanatora Linux - Newbie 4 09-19-2003 07:15 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:37 AM.

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