Linux mount and access a compact flash card – howto

Q. I have a compact flash card reader hardware device connected to USB port of computer system. Now how do I mount and access a compact flash card connected to this Linux system (Fedora Core)?

ADVERTISEMENTS

A. Your compact flash card will automatically detected by Linux. First create a mount point (type the following command as root user):

# mkdir -p /mnt/cflashcard
If you don’t have any SCSI device, your first partition on a compact flash card should be /dev/sda1 (second will be /dev/sda2 and so on). If you have 1 SCSI device attached, your first partition on a compact flash card should be /dev/sdb1.

Mount partition using mount command:
# mount /dev/sda1 /mnt/cflashcard
To see or access files:
# cd /mnt/cflashcard
# ls -l

Open /etc/fstab file:
# vi /etc/fstab
Add an entry (append) to /etc/fstab file:
/dev/sda1 /mnt/cflashcard auto user,rw,exec 0 0
Save and close the file.

How do I unmount or unplug card?

First unmount card with umount command and then unplug card:
# umount /mnt/flash

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
1 comment… add one
  • Drzacek Apr 30, 2016 @ 20:45

    If you mount /mnt/cflashcard, shouldn’t you unmount the same?

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.