Seeking solution to Windows messing with flash drive

Using applications, configuring, problems
Post Reply
Message
Author
B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

Seeking solution to Windows messing with flash drive

#1 Post by B.K. Johnson »

Hello
I have flash drive(s) that are used mostly in a puppy system as a storage device. I don't have a printer, so occasionally when I need to print a file, I take the flash drive to the library. The Windows machines used there always modify the drive, adding (1) a System Volume Information file (2) a null named directory in the root and (3) moving files in the root to the null named directory. [See screenshot - modified drive] I doubt that there is anything I can do to prevent this offficious behavior by Windiwsm but perhaps, I can persuade the administrator to implerment a change if there is a solution,

Does anyone know how this can be avoided?
Attachments
modified.png
modified display of file list
(17.3 KiB) Downloaded 224 times
unmodified drive.png
screenshot of unmodified display.
(32.74 KiB) Downloaded 224 times
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#2 Post by Flash »

Hmm. This probably won't be any help, but I recently bought a cheap "adventure" camera that wouldn't work with a micro SD card that I'd formatted FAT32 with Gparted. The camera wouldn't even see the card at all. Then I formatted the micro SD card FAT32 with Windows 10 and it worked in the camera but Puppy couldn't see it.

There is some difference between what Windows thinks the FAT32 standard is and what Gparted's developers think it is. They probably both think they're right.

What if you plugged a write-protected SD card into a USB adapter and plugged that into your library's computer? Would the computer crash?

User avatar
Makoto
Posts: 1665
Joined: Fri 04 Sep 2009, 01:30
Location: Out wandering... maybe.

#3 Post by Makoto »

I think Windows defaults to running a quick (not deep) chkdsk/scandisk on a USB drive when you connect it to the system, these days (but I could be wrong). And maybe automatically 'optimizing' the drive for use with the system. Either one could be causing the issues.

Unfortunately, I'm not sure there's a way to bypass that, especially on a shared public system where the admins might not want you changing system settings. If it's not necessary for you to write anything to the drive, I'd recommend flipping the write-protect switch as well, if the drive has one. Or, just buy a cheap USB scratch drive for those occasions when you have to take files to the library computer, one you can just leave in the Windows-modified form.
[ Puppy 4.3.1 JP, Frugal install ] * [ XenialPup 7.5, Frugal install ] * [XenialPup 64 7.5, Frugal install] * [ 4GB RAM | 512MB swap ]
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#4 Post by bigpup »

I would also just get a USB flash drive and use it just for this purpose.

What format is the drive that does this?

Do you know if it is Windows 10 on the library computers?
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
Burn_IT
Posts: 3650
Joined: Sat 12 Aug 2006, 19:25
Location: Tamworth UK

#5 Post by Burn_IT »

I would be surprised if it was Windows itself doing this. It is far more likely to be something on the library's computer that they or the county have put there.
"Just think of it as leaving early to avoid the rush" - T Pratchett

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#6 Post by rockedge »

partition the USB drive into 2 parts
1. FAT32 as a small partition for GRUB4DOS and what ever windows 10 wants to think

2 the main partition as ext3 or ext4 for the Puppy Linux frugal install you will be booting into.

works in a similar situation for me

PS. I formatted the empty USB first as FAT32 with Win10
then using GParted resized and created the ext4 partition as the 2nd step. then created a directory in the ext4 and copied my Puppy Linux and save folder into that directory...then ran Grub4Dos and let it install the mbr in the FAT32 partition

then Windows 10 thinks all is good with the USB when in fact a Puppy is in the horse.

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#7 Post by B.K. Johnson »

Flash wrote:
Hmm. This probably won't be any help, but I recently bought a cheap "adventure" camera that wouldn't work with a micro SD card that I'd formatted FAT32 with Gparted. The camera wouldn't even see the card at all. Then I formatted the micro SD card FAT32 with Windows 10 and it worked in the camera but Puppy couldn't see it.
No help, :wink: but very interesting. :)
There is some difference between what Windows thinks the FAT32 standard is and what Gparted's developers think it is. They probably both think they're right.
Last week the library computer (Windows version unknown) couldn't open a SanDisk Cruzer 8Gb drive. This drive had the unnamed directory/folder. Their computer was able to access files on a SanDisk Cruzer 4Gb which doesn't have the null directory in the root. Both of these drives were originally factory formatted, so Gparted is not involved. Could the size have mattered? But I remember seeing the file arrangement changed after using the drive in a computer somewhere.

I saw the rearrangement happen recently on a Windows 7. I used puppy to move the files back to the root and delete the null named directory. I haven't noticed an adverse reaction yet when using puppy. Haven't used it in Windows since.
What if you plugged a write-protected SD card into a USB adapter and plugged that into your library's computer? Would the computer crash?
I don't have a SD card.
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#8 Post by B.K. Johnson »

Makoto writes:
I think Windows defaults to running a quick (not deep) chkdsk/scandisk on a USB drive when you connect it to the system, these days (but I could be wrong). And maybe automatically 'optimizing' the drive for use with the system. Either one could be causing the issues.
Undoubtedly, Windows does the rearrangement in its own interest. :x This is my drive, not Microsoft's. :twisted: It is the arrogance that whatever device that is used in their system is beholden to them, that irritates me. And it is done without notice :evil: (rant off).
Unfortunately, I'm not sure there's a way to bypass that, especially on a shared public system where the admins might not want you changing system settings. If it's not necessary for you to write anything to the drive, I'd recommend flipping the write-protect switch as well, if the drive has one. Or, just buy a cheap USB scratch drive for those occasions when you have to take files to the library computer, one you can just leave in the Windows-modified form.
I know that a fix exists. I remember seeing it about a couple years ago. I gave it to the system admin, but he did not implement - laziness, not policy. In a public place like the library, where devices are plugged in all the time, it should be policy IMHO. But most users are content because they only use M$, at home or at the library . But for me, it is annoying when using my puppy.

None of my drives have a write-protect switch, so that suggestion is out. But I like the suggestion of a cheap scratch drive dedicated to use in Windows machines only. Thanks!
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#9 Post by B.K. Johnson »

bigpup:
I would also just get a USB flash drive and use it just for this purpose.

Good idea.
What format is the drive that does this?
FAT32
Do you know if it is Windows 10 on the library computers?
I don't know the version, but I'm going there shortly and will find out if I remember to ask :) .
[Edit @16:13]
It is a Windows 10.
Last edited by B.K. Johnson on Tue 04 Dec 2018, 21:15, edited 1 time in total.
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#10 Post by B.K. Johnson »

Burn_IT
The thought of a virus either on their computer or the drive crossed my mind.
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

User avatar
Makoto
Posts: 1665
Joined: Fri 04 Sep 2009, 01:30
Location: Out wandering... maybe.

#11 Post by Makoto »

B.K. Johnson wrote:Undoubtedly, Windows does the rearrangement in its own interest. :x This is my drive, not Microsoft's. :twisted: It is the arrogance that whatever device that is used in their system is beholden to them, that irritates me. And it is done without notice :evil: (rant off).
Hey, Microsoft knows what's best. :mrgreen: There's probably still someone there who thinks "hiding file extensions for 'known' file types" is a good idea. :?
Burn_IT wrote:I would be surprised if it was Windows itself doing this. It is far more likely to be something on the library's computer that they or the county have put there.
Windows does attempt to do some 'housekeeping' (on a drive) when you insert a USB drive. I just don't know what that involves under more recent versions of Windows.
[ Puppy 4.3.1 JP, Frugal install ] * [ XenialPup 7.5, Frugal install ] * [XenialPup 64 7.5, Frugal install] * [ 4GB RAM | 512MB swap ]
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).

peterw
Posts: 430
Joined: Wed 19 Jul 2006, 12:12
Location: UK

Windows and System Volume Information

#12 Post by peterw »

Interesting discussion. Since I very rarely use MS Windows then I have never seen this issue before. Googling it I see from https://www.howtogeek.com/282214/what-i ... delete-it/ that "On exFAT or FAT32-formatted drives, you can choose to delete the folder—but Windows will just recreate it in the future, since it needs it." And so I don't think that you can stop Windows doing what it does. It is nothing to do with gparted way of formatting the drive.

I sometimes use a Linux file system for Puppy on a USB drive with the addition of a small FAT32 partition for those occasions I need a file to be seen on a Windows system. Why not try that to see if the Linux partition remains OK, which I think it will.

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#13 Post by rockedge »

peterw wrote:I sometimes use a Linux file system for Puppy on a USB drive with the addition of a small FAT32 partition for those occasions I need a file to be seen on a Windows system. Why not try that to see if the Linux partition remains OK, which I think it will.
exactly what I describe here -> http://murga-linux.com/puppy/viewtopic. ... 90#1012090

this method has worked for me in a similar scenario

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#14 Post by B.K. Johnson »

peterw and rockedge
I sometimes use a Linux file system for Puppy on a USB drive with the addition of a small FAT32 partition for those occasions I need a file to be seen on a Windows system. Why not try that to see if the Linux partition remains OK, which I think it will.
partition the USB drive into 2 parts
1. FAT32 as a small partition for GRUB4DOS and what ever windows 10 wants to think

2 the main partition as ext3 or ext4 for the Puppy Linux frugal install you will be booting into.
Apologies guys for not commenting on your obviously sanguine solution. Just an oversight.
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Windows 10s Fat32 is different

#15 Post by mikeslr »

I agree with Rockedge. However, my wife just acquired a Windows 10. I'm only allowed to use it when she has a problem or needs something installed. Even though the USB-Keys I used to transfer files was formatted Fat32, her computer couldn't read them. I had to acquire a USB-stick (factory formatted Fat32) which could be read by both her computer and my Puppies.

I would assume that if I allowed her Windows 10 to format a USB-key it would also be readable by both.

User avatar
Ananda98
Posts: 56
Joined: Mon 03 Jul 2017, 10:04
Location: Bali, Indonesia

#16 Post by Ananda98 »

Well, maybe because Windows computer in your library has virus(es)?
In my country (Indonesia), there are so many viruses that make null folder in flash disk, and move any files in flash disk to it.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#17 Post by Flash »

B.K. Johnson wrote:...Last week the library computer (Windows version unknown) couldn't open a SanDisk Cruzer 8Gb drive. This drive had the unnamed directory/folder. Their computer was able to access files on a SanDisk Cruzer 4Gb which doesn't have the null directory in the root. Both of these drives were originally factory formatted, so Gparted is not involved. Could the size have mattered? ...
Size does matter. Older digital cameras (and probably other older devices that use flash memory, if there are any) can't use newer large capacity flash memory cards. Sometimes a firmware upgrade will fix that.
Also, older SD card readers (SD-to-USB converters) won't work with newer SD cards above a certain size. I don't know if this is planned obsolescence or a boneheaded lack of forethought on the part of the designers.

Post Reply