raspnoobfan
Posts: 26
Joined: Sat Nov 03, 2018 5:09 am

Use Pi OS to access sd card reader and config.txt on another Pi OS sd card

Mon Jun 29, 2020 7:17 pm

I wanted to change the config.txt on a backup Pi OS sd card using a usb card reader and it will not work on the raspberry. I can access this on a windows PC or even a rock64 running armbian. When I try it in Pi OS it does not mount anything or show up in file manager. It gives me the warning when I disconnect saying to safely eject to prevent data corruption yet does not give me the eject button or the option.

Is this a safety procedure that Pi OS has built in?
How do you easily override this?

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5911
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Use Pi OS to access sd card reader and config.txt on another Pi OS sd card

Mon Jun 29, 2020 7:53 pm

raspnoobfan wrote:
Mon Jun 29, 2020 7:17 pm
I wanted to change the config.txt on a backup Pi OS sd card using a usb card reader and it will not work on the raspberry. I can access this on a windows PC or even a rock64 running armbian. When I try it in Pi OS it does not mount anything or show up in file manager. It gives me the warning when I disconnect saying to safely eject to prevent data corruption yet does not give me the eject button or the option.

Is this a safety procedure that Pi OS has built in?
How do you easily override this?
Have you/Is "automount" disabled within the file manager's options - somewhat like this, a little old, example for Jessie:
https://www.cpmspectrepi.uk/raspberry_p ... Auto-mount ?
I would expect a written uSD card in a USB-based card reader (perhaps after an unplug/re-plug to trigger the auto-mount) to appear with partitions mounted at /media/pi/boot and /media/pi/rootfs like the penultimate (11th.) screenshot shown in my "cloning Buster" webpage: https://www.cpmspectrepi.uk/raspberry_p ... OnP4B.html
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

raspnoobfan
Posts: 26
Joined: Sat Nov 03, 2018 5:09 am

Re: Use Pi OS to access sd card reader and config.txt on another Pi OS sd card

Mon Jun 29, 2020 8:24 pm

Most of this section was written in the early days of Raspbian Wheezy, pre-B+ Pi's, when more than one USB stick required the use of a (powered) external hub
DANG that is old school! My first Pi was a 3 B+

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5911
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Use Pi OS to access sd card reader and config.txt on another Pi OS sd card

Mon Jun 29, 2020 9:37 pm

raspnoobfan wrote:
Mon Jun 29, 2020 8:24 pm
Most of this section was written in the early days of Raspbian Wheezy, pre-B+ Pi's, when more than one USB stick required the use of a (powered) external hub
DANG that is old school! My first Pi was a 3 B+
My first Pi is one of the "second batch" which, IIRC, I received circa August/September 2012 - early pics. here: https://www.cpmspectrepi.uk/raspberry_p ... 29_Piccies_...
but, relatively recently tested with Buster here: https://www.cpmspectrepi.uk/raspberry_p ... cTest.html
So that's almost, but not quite, "ancient school" :) (there's no 'photo's of my earliest tests using composite video into a 30" JVC "flat screen" CRT TV :( )
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

User avatar
HawaiianPi
Posts: 5999
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Use Pi OS to access sd card reader and config.txt on another Pi OS sd card

Mon Jun 29, 2020 10:10 pm

As FTrevorGowen said, a PiOS card in a card reader should auto-mount upon insertion. If it doesn't, then either something is wrong with the card or the card reader. Try installing Gparted (sudo apt install gparted) and see if that can detect the card.

If your other Pi is a 3B with the USB boot OTP bit set, or a 3B+ (which supports USB boot out of the box) you could try booting from a USB flash drive and interring the card you want to edit into the Pi's card reader. Could also do that with a 4B and the new bootloader.

FTrevorGowen wrote:
Mon Jun 29, 2020 9:37 pm
My first Pi is one of the "second batch" ...
My first one was also a revision 2 model B with 512MB of RAM. Still have that one around somewhere. I skipped the Pi2 (although my GF has a 2Bv1.1), but couldn't resist the Pi 3B when it was launched and ended up with quite a few of those. Most were replaced with 3B+ models, but I still have one original 3B. Still have most of my 3B+ models. Never got any of the A/A+ models, but I have all 3 revisions of the Pi Zero.

Now I also have a 4B2 and 4B4, which are both version 1.1 (purchased shortly after launch), and I'm sure more will come in time (would love to get an 8GB), but finances are tight right now.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

raspnoobfan
Posts: 26
Joined: Sat Nov 03, 2018 5:09 am

Re: Use Pi OS to access sd card reader and config.txt on another Pi OS sd card

Tue Jun 30, 2020 12:25 am

Have you/Is "automount" disabled within the file manager's options
Any regular usb flash drive mounts right away (sorry I did not answer that first).

Gparted detects the drive, the fat32 and ext4 partition, I just cannot mount them for some reason in gparted or Pi OS.
Again I thought this was a safety feature but what do I know.

raspnoobfan
Posts: 26
Joined: Sat Nov 03, 2018 5:09 am

Re: Use Pi OS to access sd card reader and config.txt on another Pi OS sd card

Tue Jun 30, 2020 5:29 am

I do not know what I was doing wrong. I first tried cat /etc/fstab/ and it said I did not have permissions. I entered sudo su and did the exact command and the terminal interface keptspitting out gibberish. This problem OS was on a 16 gb sd card, I did not think that matters. I thought I updated all the packages doing upgrade and update

Anyways I burned a new image on a 64 Gb micro sd card and it recoqnized immediately, both partitions. I do not know what caused that but I think the problem OS on the 16 Gb card may not have updated properly by me.

Thank you so much for the help fellas. I would help people on the forums but I do not know squat about raspberry that I do not learn here. Thanks Again.

W. H. Heydt
Posts: 13618
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Use Pi OS to access sd card reader and config.txt on another Pi OS sd card

Tue Jun 30, 2020 6:03 am

FTrevorGowen wrote:
Mon Jun 29, 2020 9:37 pm
My first Pi is one of the "second batch" which, IIRC, I received circa August/September 2012 - early pics. here: https://www.cpmspectrepi.uk/raspberry_p ... 29_Piccies_...
My first two Pis have 256MB of RAM and 140mA polyfuses for each of the two USB ports.

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5911
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Use Pi OS to access sd card reader and config.txt on another Pi OS sd card

Tue Jun 30, 2020 9:38 am

W. H. Heydt wrote:
Tue Jun 30, 2020 6:03 am
FTrevorGowen wrote:
Mon Jun 29, 2020 9:37 pm
My first Pi is one of the "second batch" which, IIRC, I received circa August/September 2012 - early pics. here: https://www.cpmspectrepi.uk/raspberry_p ... 29_Piccies_...
My first two Pis have 256MB of RAM and 140mA polyfuses for each of the two USB ports.
As did (does) "raspiblack". "Pi #2", raspiblue is a early B2 with 512Mb, better pics. here: https://www.cpmspectrepi.uk/raspberry_p ... uePis.html
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

pfletch101
Posts: 630
Joined: Sat Feb 24, 2018 4:09 am
Location: Buffalo, NY, USA

Re: Use Pi OS to access sd card reader and config.txt on another Pi OS sd card

Tue Jun 30, 2020 8:46 pm

raspnoobfan wrote:
Mon Jun 29, 2020 7:17 pm
I wanted to change the config.txt on a backup Pi OS sd card using a usb card reader and it will not work on the raspberry. I can access this on a windows PC or even a rock64 running armbian. When I try it in Pi OS it does not mount anything or show up in file manager. It gives me the warning when I disconnect saying to safely eject to prevent data corruption yet does not give me the eject button or the option.

Is this a safety procedure that Pi OS has built in?
How do you easily override this?
Coming rather late to the thread: I think that your problem may well have been precisely that this was a 'backup' SD card. If this was a backup of the boot SD card on the system on which you were trying to read it, made by means of the SD Card copier, and you did not specify 'New Partition UUIDs' when you made it, you would not be able to mount it. AFAIK, the OS will not mount a device that has the same Partition UUID as an existing mounted device. If you want to be able to access a backup copy of the system of which it is a backup, you need to tick the 'New Partition UUIDs' box when you create it.

Return to “Beginners”