Help how to mount SD-Card
#3
(11-19-2021, 04:09 AM)chadwick Wrote: Hi All,

On a linux desktop, one way to access your device is to edit the "/etc/fstab" to mount your device permanently so you can access it.

Reading postmarketOS's wiki about fstab, it told you to activate "rc-update" and the localmount service, which is the command:

Code:
sudo rc-update add localmount default

And to check whether the service is running:

Code:
rc-service localmount status

While blkid will return nothing, I use "sudo fdisk -l" to identify the UUID of the SD-Card, which gives:

Code:
Disk /dev/mmcblk0: 59.48 GiB, 63864569856 bytes, 124735488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: Disk /dev/mmcblk0: 59.48 GiB, 63864569856 bytes, 124735488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: DC11BA49-9C6F-4BC0-B775-E39576550622

Device           Start       End   Sectors  Size Type
/dev/mmcblk0p1    2048   1050623   1048576  512M EFI System
/dev/mmcblk0p2 1050624 124733439 123682816   59G Microsoft basic data


Device           Start       End   Sectors  Size Type
/dev/mmcblk0p1    2048   1050623   1048576  512M EFI System
/dev/mmcblk0p2 1050624 124733439 123682816   59G Microsoft basic data

Therefore, I edit my fstab to looks like the following:
Code:
UUID=DC11BA49-9C6F-4BC0-B775-E39576550622 /home/user/SDCard vfat defaults 0 0

On a reboot it did not give me anything in the folder. Upon the failure, I tried to mount the SDcard by using the mount command, which return error:-

Code:
sudo mount -t vfat -o ro /dev/mmcblk0p2 ~/SDCard
mount: /home/user/SDCard: wrong fs type, bad option, bad superblock on /dev/mmcblk0p2, missing codepage or helper program, or other error.

My question is, is there something wrong with what I did or anything that I might not have been aware of?

Cheers.
Chadwick


for me this worked:

sudo passwd
sudo blkid /dev/null >uuid.txt


edit
/etc/fstab

UUID= .....   /home/user/SDCard vfat defaults 0 0


sudo chmod 777 ~/SDCard
  Reply


Messages In This Thread
Help how to mount SD-Card - by chadwick - 11-19-2021, 04:09 AM
RE: Help how to mount SD-Card - by wibble - 11-19-2021, 05:01 AM
RE: Help how to mount SD-Card - by chadwick - 11-22-2021, 12:46 AM
RE: Help how to mount SD-Card - by Juergen - 11-20-2021, 03:31 AM
RE: Help how to mount SD-Card - by wibble - 11-22-2021, 07:02 AM
RE: Help how to mount SD-Card - by chadwick - 11-25-2021, 03:37 AM
RE: Help how to mount SD-Card - by wibble - 11-25-2021, 09:15 AM
RE: Help how to mount SD-Card - by chadwick - 11-26-2021, 05:09 AM
RE: Help how to mount SD-Card - by chadwick - 11-30-2021, 11:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I get the permissions to write to the external SD card ...? Peter Gamma 9 1,441 10-20-2023, 12:32 PM
Last Post: Peter Gamma
  How to write the the external SD card with Abword? Peter Gamma 0 394 08-27-2023, 01:10 AM
Last Post: Peter Gamma
  How can I open an Abiword file from an external SD card with Abiword? Peter Gamma 5 1,870 08-25-2023, 02:05 AM
Last Post: Peter Gamma
  Unable to mount root partition PostmarketOS lanawwas 0 2,816 09-06-2020, 07:42 AM
Last Post: lanawwas
  pmaports root & boot mount issue dustfinger 0 1,931 07-07-2020, 09:43 AM
Last Post: dustfinger
  PP boots into factory test even if flashed sd card is inserted hapster 5 6,320 04-13-2020, 02:34 PM
Last Post: MartijnBraam
  terminal command for sd card size pnphn 5 6,562 04-02-2020, 12:51 PM
Last Post: someGermanGuy

Forum Jump:


Users browsing this thread: 2 Guest(s)