How to mount an SD card?
#1
I have an sd card I would like to mount but dont want to ruin what has been an excellent few weeks with Mobian by making a mess of my fstab, can someone give me some advice? I have the uuid Im just not sure what I need to have in my fstab to get it to mount. The purpose of the sd card is for extra storage(and maybe a swap partition? I heard it might help the pinephone run a little smoother)
#2
Just have a look at /media/mmcblk0p*, your SD card should be automatically mounted Wink
#3
As a-wai states, it should be automatically mounted for extra storage.

I do have the mounting handled in fstab, rather than the normal automatically to /media
As an example /etc/fstab
Code:
UUID=(UUID_OF_DATA_PARTITION) /mnt/sdcard ext2 defaults 0 0
UUID=(UUID_OF_SWAP_PARTITION) none swap sw 0 0

The uuid strings I used came from the output of blkid which was redirected out to the fstab file via >>. Then opened /etc/fstab in nano, removed the quotes and added the ending bits to make it a valid fstab entry.
The below is an example of the commands. Please DO NOT copy and paste them.
Code:
umount /dev/mmcblk0p1
/sbin/blkid |tail -2 |cut -d " " -f3 >> /etc/fstab
nano /etc/fstab
mount /dev/mmcblk0p1
swapon -a
#4
(07-14-2020, 02:45 AM)a-wai Wrote: Just have a look at /media/mmcblk0p*, your SD card should be automatically mounted Wink

Or do a
Code:
df
to see a list of your current mounts
#5
Except it's mounted "on demand" (i.e. only when accessed), so you might not see it in df


Possibly Related Threads…
Thread Author Replies Views Last Post
  What does handle SD card automount? mdk 1 124 01-29-2023, 03:15 AM
Last Post: mdk
  New SD card won't auto-mount, will only mount as read-only 3x5co 3 692 07-16-2022, 02:28 PM
Last Post: dachalife
  Apps and SD Card biketool 2 1,031 03-06-2022, 09:47 AM
Last Post: biketool
  How to flash a µSD-Card with Balena Etcher walter1950 1 723 01-22-2022, 02:06 AM
Last Post: bcnaz
  How to insert a SIM-Card and/or a µSD-Card walter1950 0 469 01-21-2022, 02:46 PM
Last Post: walter1950
  When I set SD card as /home, PP can't complete boot nelstomlinson 4 1,667 12-27-2021, 03:06 PM
Last Post: nelstomlinson
  Persistently mount SD card? DarkManiels 5 3,930 11-21-2020, 08:28 PM
Last Post: HLing
  weird SIM card question RodneyMyers 4 3,683 10-16-2020, 01:47 PM
Last Post: ThrillGates
  Activating a sim card bcnaz 4 4,530 08-08-2020, 06:37 PM
Last Post: bcnaz
  Unable to mount exFAT file system jyc88 4 4,572 07-23-2020, 05:21 PM
Last Post: jyc88

Forum Jump:


Users browsing this thread: 1 Guest(s)