Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: jur on January 11, 2010, 02:56:47 PM

Title: [SOLVED] VFAT file system mounting gives inconsistent results
Post by: jur on January 11, 2010, 02:56:47 PM
I am having trouble with thunderbird; it thinks my mail directory is not mounted when it actually is.

Before opening tb, I mount the drive where the mail is:
Code: [Select]
sudo mount -t vfat /dev/sda2 /mnt/mail
This works - I can browse the mail directory.

But thunderbird reports an error. (The reported error seems unrelated but from experience I know unmounted data/profile is what causes this error report.)

Previously, I had the data directory on an ntfs drive which I mounted with
Code: [Select]
sudo ntfs-3g /dev/sdb2 /mnt/mail
which worked.

Now for the inconsistency:

If I FIRST mount /dev/sda2 on mnt/sda2 using rox by clicking on sda2, then tb proceeds fine.
However, if I FIRST mount /dev/sda2 on mnt/sda2 by typing
Code: [Select]
sudo mount -t vfat /dev/sda2 /mnt/sda2
, then as before, tb fails.

In all of the above cases, the file system is actually mounted as I can browse sda2 using rox. But tb proceeds ONLY if I first mounted sda2 by clicking on it in rox.

Help please?

Edited title by adding vfat
Title: Re: file system mounting gives inconsistent results
Post by: bmarkus on January 11, 2010, 02:58:45 PM
I am having trouble with thunderbird; it thinks my mail directory is not mounted when it actually is.


Please specify version. Is it thunderbird or thunderbird3 or both?
Title: Re: file system mounting gives inconsistent results
Post by: gerald_clark on January 11, 2010, 03:01:21 PM
try specifying a userid during the mount, as vfat has no concept of file ownership or permissions.
Title: Re: file system mounting gives inconsistent results
Post by: jur on January 11, 2010, 03:24:35 PM
I am having trouble with thunderbird; it thinks my mail directory is not mounted when it actually is.


Please specify version. Is it thunderbird or thunderbird3 or both?
Both are doing the same thing.
Title: Re: file system mounting gives inconsistent results
Post by: roberts on January 11, 2010, 03:37:30 PM
Stop using Microsoft file systems! They do not fully support *nix.
http://www.osnews.com/story/9681/The_vfat_file_system_and_Linux/page1/
Title: Re: file system mounting gives inconsistent results
Post by: jur on January 11, 2010, 03:38:20 PM
try specifying a userid during the mount, as vfat has no concept of file ownership or permissions.
How would I do this? Google and manpages weren't very helpful.
Title: Re: file system mounting gives inconsistent results
Post by: jur on January 11, 2010, 04:05:09 PM
Stop using Microsoft file systems! They do not fully support *nix.
http://www.osnews.com/story/9681/The_vfat_file_system_and_Linux/page1/

Very interesting, thanks for the linky. :)

The trouble is, at my workplace windows is the spoken language (not to mention every other member of my household). So I am faced with the necessity of being able to access data from both OS's. What other options are there?
Title: Re: VFAT file system mounting gives inconsistent results
Post by: roberts on January 11, 2010, 04:24:32 PM
Create a virtual disk formatted for linux. http://www.tinycorelinux.com/faq.html#qemu
Title: Re: VFAT file system mounting gives inconsistent results
Post by: curaga on January 13, 2010, 10:41:27 AM
If you give a full mount command, ie "mount -t vfat /dev/sda2 /mnt/sda", the command thinks you wish to ignore what's in /etc/fstab.

Doing simply "mount /dev/sda2" fills in the blanks from fstab, including the user option so you can access the files as a regular user. I'm guessing Rox does it like this.
Title: Re: VFAT file system mounting gives inconsistent results
Post by: jur on January 13, 2010, 02:29:00 PM
If you give a full mount command, ie "mount -t vfat /dev/sda2 /mnt/sda", the command thinks you wish to ignore what's in /etc/fstab.

Doing simply "mount /dev/sda2" fills in the blanks from fstab, including the user option so you can access the files as a regular user. I'm guessing Rox does it like this.
That did it - thanks! :)
Title: Re: [SOLVED] VFAT file system mounting gives inconsistent results
Post by: roberts on January 13, 2010, 03:05:00 PM
Just a heads up that I will not let such an old (circa 1995) file system limit the progress of Core.
As was pointed out by my link above, bzimage when it should be bzImage is only the beginning.
Title: Re: [SOLVED] VFAT file system mounting gives inconsistent results
Post by: jur on January 13, 2010, 03:28:38 PM
Just a heads up that I will not let such an old (circa 1995) file system limit the progress of Core.
As was pointed out by my link above, bzimage when it should be bzImage is only the beginning.
All the same Windows won't go away so access to information from both OS's is not old hat, it's here to stay. Perhaps exFAT support should be considered?
Title: Re: [SOLVED] VFAT file system mounting gives inconsistent results
Post by: gerald_clark on January 13, 2010, 03:47:21 PM
Or update the kernel boot line to use the bogus windows file name.
Title: Re: [SOLVED] VFAT file system mounting gives inconsistent results
Post by: roberts on January 13, 2010, 04:16:29 PM
Demand to use the latest kernel, lib,etc, then demand to use a 1995 file system to host it.
Absoutley amazing.
Title: Re: [SOLVED] VFAT file system mounting gives inconsistent results
Post by: jur on January 13, 2010, 04:50:16 PM
No, what is amazing is your inability to see the need for data access.
Title: Re: [SOLVED] VFAT file system mounting gives inconsistent results
Post by: Jason W on January 13, 2010, 05:13:41 PM
jur,

On TC, fstab is created so you can simply issue a "mount /dev/sda2" instead of having to give a full command.  And you admitted that using that simple command that TC has set up the details for you worked. And it works with TC's file manager extensions that no doubt use fstab to mount the drive with.

So why are you accusing Robert and TC of not understanding the need for data access even though we warn of the potential pitfalls of using a Windows filesystem for Linux?  Fat/vfat will work for things like storing pictures, but for other files that Linux/Unix apps work with it is much better to use a FS that supports Linux/Unix attributes to avoid many potential issues.
Title: Re: [SOLVED] VFAT file system mounting gives inconsistent results
Post by: roberts on January 13, 2010, 05:19:44 PM
jur,

I am not talking about data access, but rather hosting of operating system files.

Bite the hand that feeds you, another example of the thankless. Your welcome for Tiny Core!
Title: Re: [SOLVED] VFAT file system mounting gives inconsistent results
Post by: jur on January 13, 2010, 05:33:28 PM
jur,

I am not talking about data access, but rather hosting of operating system files.

Bite the hand that feeds you, another example of the thankless. Your welcome for Tiny Core!
Look it's you that came up with the silly 'absolutely amazing' remark, can't you take on the chin what you dish out?

I am talking about data access - email, remember? Not hosting system files - that was never the issue, read back over this thread. And remember it's marked [SOLVED].
Title: Re: [SOLVED] VFAT file system mounting gives inconsistent results
Post by: MakodFilu on January 13, 2010, 06:12:30 PM
1- If the thread is solved, then maybe it should be closed as well.
2- Those claiming for exFat support better be ready to pay Microsoft for such license or reverse-engineer it themselves.
3- Point 2 illustrates the cost of 'data access' and for stablishing the hidden costs for the industry of adopting all too happily FAT as default interchange filesystem.
4- http://www.chrysocome.net/explore2fs
Title: Re: [SOLVED] VFAT file system mounting gives inconsistent results
Post by: roberts on January 13, 2010, 06:48:00 PM
Thanks for the link, MakodFilu
That together with my previous link
http://www.osnews.com/story/9681/The_vfat_file_system_and_Linux/page1/
will bring to light the issues with trying to use vfat with Linux and a work around.
Title: Re: [SOLVED] VFAT file system mounting gives inconsistent results
Post by: Jason W on January 13, 2010, 07:26:18 PM
I used this driver years ago to share between a Linux and Windows installation on a particular PC with no issue.:

http://www.fs-driver.org/

It is much less hassle to support ext2 data sharing  through Windows<->Linux with this kind of driver than to try to support vfat/FAT partitions for data used by Linux apps.
Title: Re: [SOLVED] VFAT file system mounting gives inconsistent results
Post by: Juanito on January 13, 2010, 09:22:14 PM
I can confirm that - I've been using the same driver daily for a couple of years to share data between windows and tc on an ext2 usb stick