Sd card read only

Post Reply
selan
Posts: 29
Joined: Tue Apr 21, 2015 2:03 am
languages_spoken: english, spanish
ODROIDs: c1
Has thanked: 0
Been thanked: 0
Contact:

Sd card read only

Unread post by selan » Sun Apr 14, 2019 12:00 am

Hi

I have something to ask:

I would like to upgrade my Odroid C2 OS, but when I try to dd the image I get that is a READ ONLY FILE SYSTEM

I tried without success:
sudo hdparm -r0 /dev/sdb

I rode somewhere that when sd arrive to his R/W limit it changes to read only mode (so the target is broken).

The question is why if I start again the Odroid OS, I can create files normally?? So is not protected?? How can I save my card and burn the new image?

I'm using a sandisk ultra class 10 32GB
My Odroid image is the unofficial Debian Jessie :viewtopic.php?f=138&t=19403#p128996

Thanks in advance

User avatar
tobetter
Posts: 3040
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 9 times
Been thanked: 23 times
Contact:

Re: Sd card read only

Unread post by tobetter » Sun Apr 14, 2019 12:14 am

selan wrote:
Sun Apr 14, 2019 12:00 am
Hi

I have something to ask:

I would like to upgrade my Odroid C2 OS, but when I try to dd the image I get that is a READ ONLY FILE SYSTEM

I tried without success:
sudo hdparm -r0 /dev/sdb

I rode somewhere that when sd arrive to his R/W limit it changes to read only mode (so the target is broken).

The question is why if I start again the Odroid OS, I can create files normally?? So is not protected?? How can I save my card and burn the new image?

I'm using a sandisk ultra class 10 32GB
My Odroid image is the unofficial Debian Jessie :viewtopic.php?f=138&t=19403#p128996

Thanks in advance
So you are saying your Debian has read only file system after all boot procedure is done?
If the file system somewhere is broken or some error happens then root file system any other partition could be remounted with read only property which is described in /etc/fstab like this.

Code: Select all

$ cat /etc/fstab 
# /etc/fstab: static file system information.
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=67cb4393-5664-41b4-8521-37a0df561af4 /               ext4    errors=remount-ro 0       1
If you have another Linux box, you run dd command with your SD card to backup as a file and you can recover any time later. This command will create the same size of your SD card.

Code: Select all

$ sudo dd if=<path/of/your/sdcard/device> of=sd.img bs=1M
Also you can find the same partition table from the image file with file command or from the image file, you can access the file system as well.

selan
Posts: 29
Joined: Tue Apr 21, 2015 2:03 am
languages_spoken: english, spanish
ODROIDs: c1
Has thanked: 0
Been thanked: 0
Contact:

Re: Sd card read only

Unread post by selan » Sun Apr 14, 2019 12:25 am

Hi,

I don't explain myself well:

* If I put the sd card on my computer is read only file system
* If I put the card on the Odroid and acces via ssh I can write on it

selan
Posts: 29
Joined: Tue Apr 21, 2015 2:03 am
languages_spoken: english, spanish
ODROIDs: c1
Has thanked: 0
Been thanked: 0
Contact:

Re: Sd card read only

Unread post by selan » Sun Apr 14, 2019 12:31 am

In addition:

* I put my sd on my computer (it has read only)
* I copied a folder into my computer
* The folder in my computer is read only

selan
Posts: 29
Joined: Tue Apr 21, 2015 2:03 am
languages_spoken: english, spanish
ODROIDs: c1
Has thanked: 0
Been thanked: 0
Contact:

Re: Sd card read only

Unread post by selan » Tue Apr 16, 2019 5:23 pm

Hi, **dd** command doesn't wokr in the other linux because the system mounts it as read only...

Any idea?

User avatar
tobetter
Posts: 3040
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 9 times
Been thanked: 23 times
Contact:

Re: Sd card read only

Unread post by tobetter » Tue Apr 16, 2019 5:41 pm

selan wrote:
Tue Apr 16, 2019 5:23 pm
Hi, **dd** command doesn't wokr in the other linux because the system mounts it as read only...

Any idea?
Are you able to capture the log and post here? Or picture?
I don't get dd does not work because the mount entry is read-only? Because dd command is to manipulate the lower layer than a file system as a raw device. Maybe you could try out after umount the partition. Also what I am not getting is that mounting read-only is in your desktop? not on ODROID...then, I suspect somehow your USB card is out of work or SD card itself?

selan
Posts: 29
Joined: Tue Apr 21, 2015 2:03 am
languages_spoken: english, spanish
ODROIDs: c1
Has thanked: 0
Been thanked: 0
Contact:

Re: Sd card read only

Unread post by selan » Wed Apr 17, 2019 1:12 am

tobetter wrote:
Tue Apr 16, 2019 5:41 pm
Are you able to capture the log and post here? Or picture?
I don't get dd does not work because the mount entry is read-only? Because dd command is to manipulate the lower layer than a file system as a raw device. Maybe you could try out after umount the partition. Also what I am not getting is that mounting read-only is in your desktop? not on ODROID...then, I suspect somehow your USB card is out of work or SD card itself?
Hi,

What log do you want I post?

If I use dd command on my desktop I get an error that the system is mounted on read only (also after umount). I tried two adapters, but both are old, I suspect are they the problem.

On the Odroid I can read and write on de file system.

User avatar
mad_ady
Posts: 5676
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 18 times
Been thanked: 18 times
Contact:

Re: Sd card read only

Unread post by mad_ady » Wed Apr 17, 2019 1:40 am

What are the exact commands you are running and what output do you get? What is your end goal?

selan
Posts: 29
Joined: Tue Apr 21, 2015 2:03 am
languages_spoken: english, spanish
ODROIDs: c1
Has thanked: 0
Been thanked: 0
Contact:

Re: Sd card read only

Unread post by selan » Wed Apr 17, 2019 11:36 pm

I want to flash new odroid image on the sd so:

1. I take the card from a poweroff odroid
2. Put on my laptop (I tried two different adapters)
3. Umount the sd partitions
4. Execute dd command of the wiki https://wiki.odroid.com/troubleshooting ... _destroyer and I get the error:

Code: Select all

dd: failed to open '/dev/sdb': Read-only file system

User avatar
tobetter
Posts: 3040
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 9 times
Been thanked: 23 times
Contact:

Re: Sd card read only

Unread post by tobetter » Wed Apr 17, 2019 11:59 pm

selan wrote:I want to flash new odroid image on the sd so:

1. I take the card from a poweroff odroid
2. Put on my laptop (I tried two different adapters)
3. Umount the sd partitions
4. Execute dd command of the wiki https://wiki.odroid.com/troubleshooting ... _destroyer and I get the error:

Code: Select all

dd: failed to open '/dev/sdb': Read-only file system
Actually it's not the problem of ODROID. What kind of adapter are you using? Is that USB card reader or a SD card adapter for micro SD card?
If it's a SD card adapter, can you check if lock switch on the adapter is placed at "unlock" ?

"Tapatalk wishes you to have fun with ODROID"


User avatar
mad_ady
Posts: 5676
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 18 times
Been thanked: 18 times
Contact:

Re: Sd card read only

Unread post by mad_ady » Thu Apr 18, 2019 12:48 am

Do you unmount the partitions with umount, or do you click eject in a file browser? Eject also disconnects the device. Try disabling automount and see how it goes.

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 1 guest