Linux - NewbieThis 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
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 11, Solaris 10, Solaris 9, Sourcemage 0.9.6
Posts: 322
Rep:
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.
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.
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.
MOUNTING=====NTFS
#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
MOUNTING=====FAT
#mkdir /mnt/fatdrive
= look which is your fat drive . eg. /dev/hda6
#mount -t vfat /dev/hda6 /mnt/fatdrive
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.