11-19-2021, 04:09 AM
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:
And to check whether the service is running:
While blkid will return nothing, I use "sudo fdisk -l" to identify the UUID of the SD-Card, which gives:
Therefore, I edit my fstab to looks like the following:
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:-
My question is, is there something wrong with what I did or anything that I might not have been aware of?
Cheers.
Chadwick
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