Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can I access my FAT32 partition in Linux?

Status
Not open for further replies.

Oxymoron

Technical User
Dec 17, 2000
168
GB
I have a dual boot system, and am happy with Linux on one partition, and Windows on the other. BUT allllll my lovely MP3's reside on the Windows partition, is there any way o accessing these, and other .gif files for example, through a Linux file system????

any and all comments welcome!
thanx y'all
JoE
 
try the following in your
Code:
/etc/fstab

Code:
/dev/hda1        /win     vfat    defaults   1 2

This will mount the FAT32 (
Code:
/dev/hda1
) partition at mount point
Code:
/win
.

(Make sure that
Code:
/win
exists)

Then try
Code:
mount /win
. AV
tnedor@yahoo.com

Did this post help? Click below to let me know.
 
Hi,

Firstly you need to create a 'dummy' directory on linux which will serve as the mount point. You can call it what you like but by convention it would be a sub-directory of /mnt. For example:

mkdir /mnt/win

Then you use the mount command to mount the partition at that mount point. For example :

mount /dev/hda1 -t vfat -o ro /mnt/win

(substitute your real windows partition if its not /dev/hda1. This example shows read-only)

If you want to regularly mount this partition then you would indeed but an entry in /etc/fstab. If you use the 'auto' option it will be mounted automatically at every boot. Otherwise, you'd have to mount it manually each time with 'mount /dev/hda1' or 'mount /mnt/win'. Unmounting, incidentally, is done with umount (not unmount!) - for example 'umount /dev/hda1'.

All you windows files will be found in the linux file system under the mount point directory. For example, using mount point /mnt/win, the directory '/mnt/win/windows/system' would be equivalent to 'c:\windows\system'.

Rgds



 
What if that partition was an NTFS one - is that possible?
 
I don't believe you can wmg. NTFS is designed not to be modified (r/w/x) from outside its partition. Besides, I'd recommend you create a FAT32 logical partition at least where you want linux to mount necessary files in your Windows partition. I'm not 100% sure of this method but it looks about right.
 
Well I may be wrong, but I know you can mount almost any File System from Unix. I guess Linux falls under that category, so unless someone proves me right in my previous post :) You may be able to with by setting a mount of your ntfs partition in the etc/fstab directory....
 
Hi,





You should be able to mount ntfs as long as you either have it compiled into the kernel (unlikely unless you have a customised kernel) or available as a module.





mount /dev/hda1 -t ntfs -o ro /mnt/win





Would be the ntfs equivalent to mounting a fat32 partition as shown in prior post. Note that, while you can quite safely mount fat/fat32 partitions in read/write mode, ntfs support in linux is only recommended for read-only access at present.





You might have to do the following (as root) to load the ntfs module into memory before mounting a ntfs partition :





/sbin/modprobe ntfs





Hope this helps





 
I recompiled my kernel yesterday and installed the ntfs module. It only had the read only option so I have to assume that an NTFS CAN be mounted, but as read only.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top