LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-15-2016, 05:07 PM   #1
morfeus80
Member
 
Registered: Mar 2006
Distribution: OpenSUSE 10.3
Posts: 53

Rep: Reputation: 15
SD card mount problem


Hi,
I am using a Real-Time board to run software written with Labview and this run in Linux environment.
I encountered a problem reading a SD card that correspond exactly to this http://digital.ni.com/public.nsf/all...3?OpenDocument . As you see in the solution, they suggest to format the card in format EXT3, but the problem is that I need to be able to write the same car also with Windows and it does not support that format.
Do you have any suggestion? Thank you
 
Old 12-15-2016, 05:36 PM   #2
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
It's kind of unclear what you are asking. Based on the link you provided that "corresponds exactly" it seems you're having these issues because of ungraceful (unexpected) loss of power. Are you saying that your sd card is locked in ro and you need help unlocking it?
 
Old 12-15-2016, 05:44 PM   #3
morfeus80
Member
 
Registered: Mar 2006
Distribution: OpenSUSE 10.3
Posts: 53

Original Poster
Rep: Reputation: 15
Hi,

for some reasons, my system will always have an "ungraceful" loss of power. What I need, is to be able to read the SD card every time after the reboot, that is not what is happening now...
 
Old 12-15-2016, 05:56 PM   #4
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
Does your os boot from the sdcard?

check /var/log/syslog for mount errors
 
Old 12-15-2016, 06:03 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
That is the nature of filesystems when the system is not shutdown in an orderly fashion. ext3 can recover due to it having a journal but FAT does not. If there are any files open or being written to when power is removed then the filesystem can be corrupted. As suggested a filesystem check will usually repair it so that it is read/writable again but that may not be 100% reliable. There could be some data lost.

The simplest fix as suggested is to use ext3. There is extfs from Paragon that you can use to read ext filesystems in Windows but I do not know how well it works.

http://www.linuxjournal.com/content/...-extfs-windows
 
Old 12-16-2016, 02:15 AM   #6
morfeus80
Member
 
Registered: Mar 2006
Distribution: OpenSUSE 10.3
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks michaelk.
I have another doubt: this problem does not happen if instead using the SD card, I use an USB memory. Is there any reason?
 
Old 12-16-2016, 02:32 AM   #7
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
How are you mounting the sdcard in Windows? If you are using a usb adapter try another, especially if it's a cheap one. Even better would be a sd/mmc card slot. I have had sdcards that Windows refused to read for whatever reason it decided if it was in a usb adapter but worked just fine in an mmc adapter on the same computer!
 
Old 12-16-2016, 02:43 AM   #8
morfeus80
Member
 
Registered: Mar 2006
Distribution: OpenSUSE 10.3
Posts: 53

Original Poster
Rep: Reputation: 15
The board already has the slot...
 
Old 12-16-2016, 05:25 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Are you booting the system from the USB or just writing data?
 
Old 12-16-2016, 06:50 AM   #10
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,487

Rep: Reputation: Disabled
What is the card formatted to?

fat, vfat, ntfs?

Try a different format.

Edit: Else try remounting it rw - I think the command is 'mount -o remount rw /path'

Last edited by fatmac; 12-16-2016 at 06:55 AM.
 
Old 12-20-2016, 02:14 AM   #11
morfeus80
Member
 
Registered: Mar 2006
Distribution: OpenSUSE 10.3
Posts: 53

Original Poster
Rep: Reputation: 15
Hi, the system is NOT booting from the SD.
The SD card format is FAT32.
 
Old 12-20-2016, 03:13 AM   #12
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
you can read ext3 from windows, you need to install the driver. see for example here: https://www.howtoforge.com/access-li...s-from-windows
 
Old 12-20-2016, 09:12 AM   #13
morfeus80
Member
 
Registered: Mar 2006
Distribution: OpenSUSE 10.3
Posts: 53

Original Poster
Rep: Reputation: 15
Dear all, I have an update, doing some tests, i found that extracting the card and inserting it again is enough to make it readable. The problem is that the system is supposed to be used from remote, so extracting the cars is not easily possible. Do you see a way to make it working
 
Old 12-23-2016, 07:30 AM   #14
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by morfeus80 View Post
Hi,
I am using a Real-Time board to run software written with Labview and this run in Linux environment.
I encountered a problem reading a SD card that correspond exactly to this http://digital.ni.com/public.nsf/all...3?OpenDocument . As you see in the solution, they suggest to format the card in format EXT3, but the problem is that I need to be able to write the same car also with Windows and it does not support that format.
Do you have any suggestion? Thank you
who is "they"?

as you already know what you are suggesting is impossible. You already know that Windows only reads Windows.
So what would you suggest one would do in that situation?

Problem-solving 101:

looking at the facts.

One needs to have it so both Systems are able to read data on the same medium.

Windows only reads Windows? yes, no
Linux reads Windows and Linux? yes, no

what format is best suited to accomplish this?

Last edited by BW-userx; 12-23-2016 at 07:32 AM.
 
Old 12-23-2016, 10:49 AM   #15
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,487

Rep: Reputation: Disabled
Quote:
Originally Posted by morfeus80 View Post
Dear all, I have an update, doing some tests, i found that extracting the card and inserting it again is enough to make it readable. The problem is that the system is supposed to be used from remote, so extracting the cars is not easily possible. Do you see a way to make it working
Could be your computer is powering down that socket.

I believe there is a way to re power it, but I can't remember how, you may need to look online for how to do it.
 
  


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
[SOLVED] unable to mount a usb flash drive and an SD card after changing mount directory name remn Linux - Newbie 24 10-24-2015 03:04 PM
MEPIS: how to mount a flash card in an usb card reader for n00b frenchn00b Linux - General 1 08-06-2008 05:26 PM
SD Card Mount Problem GNewbie Linux - Newbie 2 06-27-2006 01:12 PM
SD Card Read Problem (Not Mount Problem) GNewbie Linux - Newbie 0 06-21-2006 12:44 AM
MP3 player - SD card reader mount problem Suse 9.2 FastestHamster SUSE / openSUSE 12 04-24-2006 01:54 AM

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

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