LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-01-2004, 11:30 AM   #1
Agi Hammerthief
LQ Newbie
 
Registered: Jan 2004
Posts: 5

Rep: Reputation: 0
Angry From WindowsXP I cannot access files written onto vfat-partition under Linux


Hi Linux-community...

My current problem involves my dual-boot IBM ThinkPad T23 with WinXP and Linux.

I can properly access a 'transfer'-vfat-partition from Linux, but when I try to access files created under Linux from WinXP I have this problem:
1) I don't see these files!
2) After I use WinXP-tools to analyze and defragment this partitiion I can see the files, but with the 'lost'-files naming convention from WinXP. After renaming to the appropriate file-type, the files are OK.
3) I can read and access all Linux- and WinXP-written files under Linux (but not vice versa - see above)

I am currently running:
uname -a
Linux linux 2.4.21-144-default #1 Fri Nov 14 00:01:36 UTC 2003 i686 i686 i386 GNU/Linux

My /etc/fstab looks like this:
/dev/hda6 /windowsf vfat iocharset=iso8859-1,codepage=437,defaults,umask=0000 0 0


Has anyone ever experienced anything alike?

Thanks for your effort and replies...

Agi
 
Old 01-01-2004, 08:01 PM   #2
bareego
Member
 
Registered: Nov 2003
Location: Brisbane, Australia
Distribution: Crux 2.0
Posts: 66

Rep: Reputation: 15
2 things I could think of

1) permissions for the folder you mount on
2) the codepage... are you using some different language windows XP maybe ?
you might want to try codepage=850 and see if there's a difference.

To be honest I don't know too much about charsets and codepages, maybe someone else might want to comment on this ?

cheers
newbee
 
Old 01-01-2004, 10:13 PM   #3
ryeman
Member
 
Registered: Jan 2004
Location: Gainesville, GA
Distribution: Ubuntu
Posts: 118

Rep: Reputation: 15
I could be wrong, but isn't WinXP NTFS and not VFAT..?

I'm not using a dual-boot.. I have only Mandrake 9.2 on (this laptop) and networked to a WinXPHE laptop via 802.11a wireless card. I don't have a prob with files using Samba..

Try:
/dev/hda6 /windowsf ntfs noauto 0 0

(I'm not sure why the /windowsf has an "f" in it.. was that a typo..?)

Anyway, good luck
 
Old 01-02-2004, 05:00 AM   #4
Agi Hammerthief
LQ Newbie
 
Registered: Jan 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Hi there,

thanks for your quick response...

As for my comments/answers/new questions:

Ryeman:
1) I could be wrong, but isn't WinXP NTFS and not VFAT..?
--> You're right, but this transfer partition is Fat32, i.e. to my knowledge it should be vfat under Linux...
2) I'm not sure why the /windowsf has an "f" in it.. was that a typo..?
--> No, that transfer partition is "F;" under Windows, thus the mountpoint I chose was /windowsf

Bareege:
1) permissions for the folder you mount on
--> don't you think, that linux would give me a nice 'permission denied' error once I try to write onto these? I think I did confirm that permissions are rwx for veryone, but I'm going to double-check anyway...
2) the codepage... are you using some different language windows XP maybe ?
you might want to try codepage=850 and see if there's a difference.
--> It's always difficult to tell, what language you are exactly using, since every other package/utility comes with its own language pack... It is either English or German,anything else seems highly unlikely... What 'language' is codepage 850? Do you think this'll fit with my WinXP-languages? Anyway, I'm trying to do some more research on this one...

Again, thanks for your effort, answers and your ideas so far...

Agi
 
Old 01-16-2004, 04:25 AM   #5
Agi Hammerthief
LQ Newbie
 
Registered: Jan 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Linux-Community,

for whoever is interested in the results of my investigations:
It looks like the problem I have experienced is (as almost always) due to a wrong procedure.
I have extensively used the Windows-XP hibernation mode to speed up the boot process of my laptop. However, Windows seems to cache some or even a lot of data abou the current status of the drive.
Thus, when
1) hibernating Windows XP
2) booting into Linux, writing to any shared drive, shutting down linux
3) waking up WinXP (what's the opposite of hibernation)
the cached data is of course wrong.
The only way to refresh the cache I have found so far is to scan the drive for errors - or of course reboot the system...

One last Question: If anyone knows the Windows analogon to 'sync' and possibly sth to refresh what you see on the drive, It would be helpful...
Agi
 
Old 01-16-2004, 04:07 PM   #6
ryeman
Member
 
Registered: Jan 2004
Location: Gainesville, GA
Distribution: Ubuntu
Posts: 118

Rep: Reputation: 15
Quote:
Originally posted by Agi Hammerthief
Hi Linux-Community,

for whoever is interested in the results of my investigations:
It looks like the problem I have experienced is (as almost always) due to a wrong procedure.
I have extensively used the Windows-XP hibernation mode to speed up the boot process of my laptop. However, Windows seems to cache some or even a lot of data abou the current status of the drive.
Thus, when
1) hibernating Windows XP
2) booting into Linux, writing to any shared drive, shutting down linux
3) waking up WinXP (what's the opposite of hibernation)
the cached data is of course wrong.
The only way to refresh the cache I have found so far is to scan the drive for errors - or of course reboot the system...

One last Question: If anyone knows the Windows analogon to 'sync' and possibly sth to refresh what you see on the drive, It would be helpful...
Agi
Are you using lilo for a boot loader? If you want to 'hibernate' XP and be able to run linux, try using a linux boot disk instead of a boot loader. That may resolve your problem? Windows is not very friendly with multi OS's.. You may have to do a traditional windows shut down if the above doesn't work and have your laptop use standby instead of hibernate to save power.
 
Old 01-16-2004, 06:02 PM   #7
brodo
Member
 
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current 32 / 64
Posts: 406

Rep: Reputation: 30
My T23 looks as follows

My t23 has a nice dual-boot /Ibm-XP & slack 9.1/ and everything works properly.
Hope all below can help .....


1. fstab:

/dev/hda1 /mnt/xp ntfs ro,umask=666 0 0
/dev/hda3 swap swap defaults 0 0
/dev/hda2 / ext3 defaults 1 1
/dev/hda4 /fat-d vfat defaults 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
/dev/sda1 /mnt/cam vfat noauto,owner 0 0

2. lilo.conf:

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda2
prompt
timeout = 50
# VESA framebuffer console @ 1024x768x64k
vga = 791

# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda2
label = Linux
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
# DOS bootable partition config begins
other = /dev/hda1
label = XP
table = /dev/hda
# DOS bootable partition config ends


Regards,
brodo
 
Old 01-18-2004, 11:23 AM   #8
Agi Hammerthief
LQ Newbie
 
Registered: Jan 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Hi community,

thanks for your replies...

Rye:
I'm using GRUB - but I'll give the boot disk solution a try... In the meantime I'm trying to get some statistical data whether my findings are correct... Rebooting can be so cumbersome... ;o)

Brodo:
I'm also running a dual-boot T23. And I'd also say: Everything works fine... Except for the hibernation/disk cache issue described above/below...
Therefore my question: Do you also hibernate WinXP, run linux and write to your shared disks, and then access this disk under WinXP?
Thanks for your time...

Agi
 
Old 01-18-2004, 11:39 AM   #9
brodo
Member
 
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current 32 / 64
Posts: 406

Rep: Reputation: 30
I use my XP rarely and I did not hibernate it yet.
If I spoil something while hibernating ...? :-((

Do You use an IBM-for-T23 version of XP like I do ???
This version is trimmed especially for Thinkpads.
You can get install disks from IBM for almost free.

Regards,
brodo
 
Old 01-19-2004, 03:02 AM   #10
Agi Hammerthief
LQ Newbie
 
Registered: Jan 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Hi brodo,

thanks for your reply...

I'd say yes, I do use a specialised version of XP for IBM, but how can one be 100% sure?
This partition is mostly maintained by my Sys-Ad... ;o)
ONE of the reasons to use Linux whenever possible!

One final statement about hibernation:
1) It works really fine (otherwise)
2) it 'boots' XP so much faster... ;o)
3) To reduce the risk I have mounted my important XP-data read-only
4) I have created a transfer fat32-partition, where only temp-data will be stored...
If this partition shows problems I simply reformat... ;o)
 
Old 01-19-2004, 01:07 PM   #11
brodo
Member
 
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current 32 / 64
Posts: 406

Rep: Reputation: 30
Maybe try to set your "transfer partition" just like mine -
from my fstab it is:

/dev/hda4 /fat-d vfat defaults 1 0

so try to use vfat filesystem;

My windows partition is:

/dev/hda1 /mnt/xp ntfs ro,umask=666 0 0

Otherwise it is a good idea to work under linux if it`s possible.
Some programs, unfortunately, work only in Windows - my example is Circuitmaker CAD that I use. There are no good ones for linux as far as I know ...

Regards,
Brodo
 
  


Reply


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
want to access WindowsXP partition from Red Hat 7.3 farmerphysicist Linux - General 4 07-21-2005 03:22 PM
How can I access files in my Windows 98 partition from my Linux partition, /w BASH? Fabyfakid Linux - Newbie 4 09-17-2004 11:05 PM
how do i access linux partition from windowsXP dual boot? Lleb_KCir Linux - General 9 08-28-2004 09:15 AM
vfat partition access denied demmylls Linux - General 1 01-19-2004 02:09 AM
Access a vfat mounted partition vector Slackware 2 02-25-2003 09:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:28 PM.

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