LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 06-26-2023, 07:14 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
SDCard nutty issue on 3dprinter.


Somebody have a guess here please.

I have a newish Anycubic 3d Printer, newish (large)sdcard in terms of usage, and a new (large) one with only one disk image ever put on it. These fit straight into the sdcard slot with no adapter.

I made filesystems on them, one with mkfs.fat, and one with mkfs.vfat, copied 4 or 5 files onto them and put them in the 3d printer. The one with mkfs.vfat sees one file. The one made with mkfs.fat sees none. I'm on slackware-15.0.

mkfs.fat is a program. mkfs.vfat & mkfs.msdos are symlinks, so I'm guessing
  • mkfs.msdos = fat-16
  • mkfs.fat = fat-32
  • mkfs.vfat = vfat.

I can see all the files fine in Linux. The printer won't read ntfs. All this has started out of the blue, on both sdcards.

No further detective work possible. Guesses/Suggestions?
 
Old 06-26-2023, 08:09 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
As far as I know if you do not specify the FAT size with the -F option mkfs.fat will pick the best fit for filesystem size. For a large card I would expect FAT32 but you can verify with the file command.

The difference between FAT and VFAT is support for long filenames which I believe that mkfs.fat adds regardless of FAT size. Does the one file that is recognized have a 8.3 filename format where the others do not?
 
Old 06-26-2023, 09:12 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Original Poster
Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
They're 4G & 64G with .gcode extensions. No 8.3 here. That settles it then.

Any thoughts why I'm only seeing 1 file?
 
Old 06-26-2023, 09:31 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
Not a clue.
 
Old 06-26-2023, 10:05 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Original Poster
Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
Now I had made a vfat filesystem for the 64G card, and that sees one file (out of 4).

I dd'ed zeroes all over the 4G card, made a filesystem with 'mkfs.fat -F 32' and that sees 2 files (out of 4). Fine tuning temperatures ATM, so I'm just using the Cal Cube, but any ideas are welcome.
 
Old 06-28-2023, 06:06 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Original Poster
Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
Given that the sdcards read & write fine on the pc, but fail in the printer, I eventually made an unusual finding in favour of the sdcards and against the printer.

The one thing I wanted to explore is this: If memory serves, at some stage M$ had a fat/vfat version with long file names and an 8.3 directory listing as well with truncated filenames for old stuff to use. Which version was that, and does mkfs.fat re-create it? This first came out back around the days of win 95/98, iirc. Windows 3.x was all 8.3 filenames.

The anycubic manual says to format sdcards fat32, and I did that.
 
  


Reply



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
mounting ext4 sdcard to work like a FAT32 sdcard Brusca.lyfe Linux - Newbie 8 03-26-2021 10:20 AM
current sdcard installs try to mount nonexistatnt sdcard justwantin Slackware - ARM 4 02-09-2021 02:15 AM
LXer: Nutty: GUI Network Monitoring And Information Tool For Ubuntu, Linux Mint And elementary OS LXer Syndicated Linux News 0 12-04-2018 06:11 PM
SDCard Partition Problems ch4se Linux - Hardware 1 08-14-2005 07:44 PM
Need help from a FileSystem Expert (for SDcard FAT) theYinYeti Linux - Hardware 4 10-04-2004 04:09 AM

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

All times are GMT -5. The time now is 09:18 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