Root access via SSH (read-only)

edited January 2019 in Supported devices

Hi,

I'm connected to my RPI3b+ over ssh, however it doesn't seem as though I can actually modify files or SCP files to the Pi due to the SDCard is mounted in read-only.

Is there a way around this? I'd like to modify my boot/config.txt to enable some properties and transfer some .apk files I copied from the google play store.

I realize that I can do this through FileManager -> Editor w/ superUser permissions but I'd like the SSH to function in the way I described.

Thanks,
Keith

Tagged:

Comments

  • Btw I see the following after running: adb shell su root dmesg | grep 'mmc'

    [ 0.756827] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
    [ 0.832216] mmc0: sdhost-bcm2835 loaded - DMA disabled
    [ 0.834314] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
    [ 0.834335] mmc-bcm2835 3f300000.mmc: DMA channel allocated
    [ 0.910019] mmc0: host does not support reading read-only switch, assuming write-enable
    [ 0.910609] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
    [ 0.912287] mmc0: new high speed SDHC card at address 0001
    [ 0.912726] mmcblk0: mmc0:0001 EB1QT 29.8 GiB
    [ 0.913288] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [ 0.913780] mmcblk0: p1 p2 p3 p4
    [ 0.914970] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [ 0.917699] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
    [ 0.974151] mmc1: new high speed SDIO card at address 0001
    [ 1.336418] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [ 1.388358] EXT4-fs (mmcblk0p3): warning: maximal mount count reached, running e2fsck is recommended
    [ 1.399871] EXT4-fs (mmcblk0p3): recovery complete
    [ 1.408444] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
    [ 1.967619] EXT4-fs (mmcblk0p4): recovery complete
    [ 1.972939] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Opts: errors=panic
    [ 3.177165] EXT4-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
    [ 3.185894] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    [ 3.355829] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered

  • Best I could do was copy a remote copy of config.txt over to the device over SCP:

    scp -i my_private_key config.txt root@192.168.1.100:/storage/emulated/0/Download/config.txt
    config.txt

  • Would I need simply need to modify the fstab.rpi3 file in order to make the boot partition rw instead of ro?

    From:
    /dev/block/mmcblk0p1 /boot vfat ro wait

    To:
    /dev/block/mmcblk0p1 /boot vfat rw wait

  • Did you try re-mounting at runtime?
    mount -o rw,remount /boot
    mount -o rw,remount /system

  • Yes, that works thanks very much!

Sign In or Register to comment.