LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Mounting SD Card (https://www.linuxquestions.org/questions/fedora-35/mounting-sd-card-4175636093/)

mickeyboa 08-10-2018 09:36 AM

Mounting SD Card
 
Trying to mount SD card but I'm having problems, see
errors below.
sde1 is the SD card.

#fdisk l

Disk /dev/sde: 59.5 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: dos
Disk identifier: 0x00000000

Device Boot Start End Sectors Size Id Type
/dev/sde1 32768 124735487 124702720 59.5G 7 HPFS/NTFS/exFAT

[root@localhost SD]# mount -t vfat /dev/sde1
mount: /dev/sde1: can't find in /etc/fstab.

The card shows up in the Dolphin file manager, but it can't mount the card.

lazydog 08-10-2018 09:53 AM

Yeah you need to tell it where to mount the drive to, that is why you are getting the error as there is nothing in fstab telling it where to mount.

Try
Code:

mkdir /mnt/sdcard
mount -t vfat /dev/sde1 /mnt/sdcard


mickeyboa 08-10-2018 10:32 AM

# mount -t vfat /dev/sde1 /mnt/sdcard
mount: /mnt/sdcard: wrong fs type, bad option, bad superblock on /dev/sde1, missing codepage or helper program, or other error.

Device Boot Start End Sectors Size Id Type
/dev/sde1 32768 124735487 124702720 59.5G 7 HPFS/NTFS/exFAT

From what I can See the cards mount -t vfat is not vfat .

michaelk 08-10-2018 10:36 AM

It could be exFAT. What is the output of the commmand.

file -s /dev/sde1

mickeyboa 08-10-2018 12:04 PM

# file -s /dev/sde1
/dev/sde1: DOS/MBR boot sector

# mount -t DOS /dev/sde1
mount: /dev/sde1: can't find in /etc/fstab

michaelk 08-10-2018 12:50 PM

I would of expected more output. Can you post the origins of the card? i.e What type of device is it used in.

I would expect it to be either NTFS or exFAT not just from the fact of the label ID but typically these days anything > 32GB is formatted as exFAT or NTFS.

For exFAT you need to install the exfat-fuse package and for NTFS the ntfs-3g package.

mickeyboa 08-10-2018 01:01 PM

I can't find exfat-fuse package, does it have another name ?
I used Gparted on the Filesystem and /dev/sde is a exfat filesystem.

# mount -t exfat /dev/sde1 /mnt/sdcard
mount: /mnt/sdcard: unknown filesystem type 'exfat'

I do have a /mnt/sdcard folder.

michaelk 08-10-2018 01:10 PM

I assume this is for Fedora? The exfat-utils should be available from the rpmfusion repository.

mickeyboa 08-10-2018 01:19 PM

I did a dnf -y install exfat* and it installed exfat-utils.

mickeyboa 08-10-2018 02:00 PM

mount -t exfat /dev/sde1
mount: /dev/sde1: can't find in /etc/fstab

I still get the fstab error

michaelk 08-10-2018 02:20 PM

You still need to specify the mount point... see post #2

mickeyboa 08-10-2018 02:53 PM

# mkdir /mnt/sdcard
mkdir: cannot create directory ‘/mnt/sdcard’: File exists
# mount -t exfat /dev/sde1 /mnt/sdcard
mount: /mnt/sdcard: unknown filesystem type 'exfat'

# mount -t exfat /dev/sde1
mount: /dev/sde1: can't find in /etc/fstab

michaelk 08-10-2018 02:58 PM

Verify that fuse-exfat was installed.

mickeyboa 08-10-2018 03:51 PM

# mount -t exfat /dev/sde1 /mnt/sdcard
FUSE exfat 1.2.8
WARN: '/dev/sde1' is write-protected, mounting read-only

How do I make it write-enable

I had to install fuse-exfat

michaelk 08-10-2018 04:09 PM

If the mechanical read/write switch on the card is not set for read only I don't have a clue at the moment.


All times are GMT -5. The time now is 10:19 AM.