Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Hi,
I am relatively new to Linux, and I have tried searching, both in here and elsewhere, for a solution to no avail.
I have recently installed Ubuntu and have configured /etc/fstab to mount a Fat32 partition on boot. When I boot Linux, everything works like it should. I can read and write to my Fat 32 partition fine.
However, when I boot into Windows, the partition can no longer be seen. In Windows, it shows up as "Healthy, Unknown Partition" and it refuses to recognise it as Fat 32.
Using fdisk and other partition tools, it seems as though the partition's type has been changed to "Fat 32 (Hidden)". I can change it, via fdisk, back to "Fat 32" and boot into Windows with everything working like it should.
However, if I then boot back into Linux and mount the partition, the partition type changes back to Fat 32 (Hidden). It makes no difference if its mounted via fstab or manually by mount -t vfat.
I can then change it back to Fat 32 through fdisk each time, but that solution isn't really ideal.
Is there something I'm missing? Is there anyway, short of mounting it ro, to stop this occurring? The main reason I have this partition is so I can access and write files across both Linux and Windows.
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441
Rep:
I've used FAT32 with Linux on numerous times (both for Windows and only for Linux) but I didn't have any issue like this. This sounds like that mounting your partition from Ubuntu changes partition type. Can you post your fstab entry, (I don't expect to see anything extraordinary)
Anyway did you check LQ's Ubuntu forum and other Ubuntu specific discussions to see wheather this is an Ubuntu specific problem?
dystopian: I guess you could try adding the "unhide" option to fstab.
I have Ubuntu 5.04 dual booting with Win98SE - I don't have this problem with a hard drive partition, though I have seen something like it with windows CDs and floppys. AFAIK: FAT32(hidden) is not a different fs from fat32 - it is the normal fat32 marked as hidden.
I too would like to see that fstab entry you're using.
aysiu: Do you happen to know that varying from that formula will produce the bahavior mentioned? After all, dystopian's fstab line must be pretty close. The only thing that could vary is the options. (Character encoding and umask.) I'd personally like to know how varying or leaving off any of these could produce the stated behavior.
I thought about an experiment. Can you unhide the partition, boot into windows. Then reboot into windows. I am just curious whether it is the Windows boot process that is hiding the partition. I've only had this happen to me once, but it was caused by partition magic hiding the NTFS windows partition. (C: drive).
If the partition isn't hidden, what does fdisk -l say about the partition when you are in Linux?
The fstab line suggested by ubuntu guide:
/dev/hda1 /media/windows vfat iocharset=utf8,umask=000 0 0
The fstab line actually used:
/dev/hde3 /media/stuff vfat umask=1000,quiet 0 0
Spot the difference? dystopian has enable suid and sgid, and left off sticky. You don't need to do this. iocharset is unspecified - but it'll just use system defaults.
You don't want to use "quiet" either since, presumably, you want to know about it when something goes wrong.
... yes I have, actually. It contains nothing wot ain't in the man pages neither. Just how does this answer my question? vis:
Quote:
Originally posted by Simon Bridge
I'd personally like to know how varying or leaving off any of these (the umask or iocharset) could produce the stated behavior (partition "hidden" status changed on reboot).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.