LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-11-2016, 12:29 AM   #1
6th_sense
Member
 
Registered: Jun 2006
Posts: 47

Rep: Reputation: 1
Mounting CF card - not sure how...


I posted this is in the linux newbie forum, because it is probably an easy question to answer, even though I've been using linux forever now.

I have a terminal based fedora 21 web-server which I attached a compact flash card in it's reader. Not sure if it works - since it has been out of use for a long time now.

However, I can't figure out how to mount it.

Here is what I get from lsusb:

Quote:
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 049: ID 0781:0810 SanDisk Corp. SDDR-75 ImageMate CF-SM Reader
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Here is what I get from "dmesg |tail -n30"

Quote:
[1004319.764022] usb 7-2: new full-speed USB device number 101 using uhci_hcd
[1004319.976150] usb 7-2: New USB device found, idVendor=0781, idProduct=0810
[1004319.976157] usb 7-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1004319.976163] usb 7-2: Product: ImageMate CF-SM
[1004319.976167] usb 7-2: Manufacturer: SanDisk Corporation
[1004319.976171] usb 7-2: SerialNumber: 1B2C0303B691
[1004319.980282] usb-storage 7-2:1.0: USB Mass Storage device detected
[1004319.980453] scsi host82129: usb-storage 7-2:1.0
[1004320.987206] scsi 82129:0:0:0: Direct-Access SanDisk ImageMate CF-SM 0100 PQ: 0 ANSI: 0 CCS
[1004320.990216] scsi 82129:0:0:1: Direct-Access SanDisk ImageMate CF-SM 0100 PQ: 0 ANSI: 0 CCS
[1004320.990835] sd 82129:0:0:0: Attached scsi generic sg2 type 0
[1004320.992675] sd 82129:0:0:1: Attached scsi generic sg3 type 0
[1004321.110188] sd 82129:0:0:0: [sdb] Attached SCSI removable disk
[1004321.115200] sd 82129:0:0:1: [sdc] Attached SCSI removable disk
[1004321.953087] usb 7-2: USB disconnect, device number 101
[1004322.584024] usb 7-2: new full-speed USB device number 102 using uhci_hcd
[1004322.997069] usb 7-2: New USB device found, idVendor=0781, idProduct=0810
[1004322.997077] usb 7-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1004322.997082] usb 7-2: Product: ImageMate CF-SM
[1004322.997087] usb 7-2: Manufacturer: SanDisk Corporation
[1004322.997091] usb 7-2: SerialNumber: 1B2C0303B691
[1004323.001206] usb-storage 7-2:1.0: USB Mass Storage device detected
[1004323.001383] scsi host82130: usb-storage 7-2:1.0
[1004324.007127] scsi 82130:0:0:0: Direct-Access SanDisk ImageMate CF-SM 0100 PQ: 0 ANSI: 0 CCS
[1004324.010134] scsi 82130:0:0:1: Direct-Access SanDisk ImageMate CF-SM 0100 PQ: 0 ANSI: 0 CCS
[1004324.010848] sd 82130:0:0:0: Attached scsi generic sg2 type 0
[1004324.011510] sd 82130:0:0:1: Attached scsi generic sg3 type 0
[1004324.128108] sd 82130:0:0:0: [sdb] Attached SCSI removable disk
[1004324.133121] sd 82130:0:0:1: [sdc] Attached SCSI removable disk
[1004325.203070] usb 7-2: USB disconnect, device number 102
Can anyone tell me what I need to do to mount the device and be able to use it to copy files to? lsusb's line that reads:
Quote:
Bus 007 Device 049: ID 0781:0810 SanDisk Corp. SDDR-75 ImageMate CF-SM Reader
seems to be correct.

'ls -l sd*', gives me the following output:
Quote:
brw-rw----. 1 root disk 8, 0 Mar 30 09:20 sda
brw-rw----. 1 root disk 8, 1 Mar 30 09:20 sda1
brw-rw----. 1 root disk 8, 2 Mar 30 09:20 sda2
brw-rw----. 1 root disk 8, 16 Apr 11 00:25 sdb
brw-rw----. 1 root disk 8, 32 Apr 11 00:25 sdc
Not sure what other information is relevant. Let me know if you know how to mount it.

I don't have any gui installed on the machine as it is a webserver and I don't need it - plus I don't wish to have the machine unecessarily bogged down.
 
Old 04-11-2016, 01:36 AM   #2
Weapon S
Member
 
Registered: May 2011
Location: Netherlands
Distribution: Debian, Archlinux
Posts: 242
Blog Entries: 2

Rep: Reputation: 48
I usually use blkid, if I need to figure out which device to mount. Mounting should be as simple as for example
Code:
#mount /dev/sdb1 /some_directory_preferably_mnt
That being said, sdb and sdc look unpartitioned.
 
Old 04-11-2016, 02:52 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,986

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
also BE AWARE
Fedora 21 is past it's End Of Life

there is and never will be any support for it
NO security updates
NO security fixes
no nothing


please stay current and install Fedora 23
then in a few months fedora 24

but fedora should auto mount as a read only drive in
/var/run/mount/"your normal user name " /
 
Old 04-11-2016, 05:07 PM   #4
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Linux Mint, Ubuntu
Posts: 1,514

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
Like Weapon said, use blkid to check for flash drive detection
Code:
sudo blkid -c /dev/null
. If the drive has any filesystems on it, Fedora should auto-mount them under /var/run/media/<your-user-name>/
 
Old 04-11-2016, 11:19 PM   #5
6th_sense
Member
 
Registered: Jun 2006
Posts: 47

Original Poster
Rep: Reputation: 1
sudo blkid -c /dev/null

gives me the following:

Quote:
/dev/sda1: LABEL="Boot" UUID="f8434333-4de8-4b3d-a342-6b8190636c34" TYPE="ext4" PARTUUID="1ec40e19-01"
/dev/sda2: UUID="i8n1NL-sW2r-E9EE-Bqg6-fStV-3uuT-juTnCW" TYPE="LVM2_member" PARTUUID="1ec40e19-02"
/dev/mapper/server-root: LABEL="server_root" UUID="5db4bc67-da50-42da-be13-1259b7cfa178" TYPE="ext4"
/dev/mapper/server-swap: UUID="090e8e7d-d5ab-41b2-b011-c612bcd092f5" TYPE="swap"
/dev/mapper/server-web: LABEL="server_web" UUID="bebed9e2-e4e8-48f7-992f-75826ff2e01f" TYPE="ext4"
/dev/mapper/server-home: LABEL="server_home" UUID="8cfca020-59dc-47c2-8864-a45bddbc6d8b" TYPE="ext4"
But, it doesn't seem to yield any information about the external device.

/dev/sda2 looks like it is the lvm2 extended partition - unless I'm mistaken. sda looks like the hard disk.
 
Old 04-11-2016, 11:23 PM   #6
6th_sense
Member
 
Registered: Jun 2006
Posts: 47

Original Poster
Rep: Reputation: 1
sudo df -h

yields the following:

Code:
Filesystem                 Size  Used Avail Use% Mounted on
devtmpfs                   968M     0  968M   0% /dev
tmpfs                      978M     0  978M   0% /dev/shm
tmpfs                      978M  504K  978M   1% /run
tmpfs                      978M     0  978M   0% /sys/fs/cgroup
/dev/mapper/server-root   20G  5.0G   14G  27% / 
tmpfs                      978M   68K  978M   1% /tmp
/dev/sda1                  454M  146M  281M  35% /boot
/dev/mapper/server-web   4.8G   10M  4.6G   1% /web
/dev/mapper/server-home   23G   52M   22G   1% /home
tmpfs                      196M     0  196M   0% /run/user/1001
The card is just 256 MB in size - so I am not sure what is being mounted under tmpfs. I don't have a lot to back up - at least not yet.

Last edited by 6th_sense; 04-11-2016 at 11:26 PM. Reason: fixing the code display
 
Old 04-11-2016, 11:31 PM   #7
6th_sense
Member
 
Registered: Jun 2006
Posts: 47

Original Poster
Rep: Reputation: 1
Been debating the upgrade to fedora 23 server - but, I am a bit wary of the amount of time consumed and the amount of "tweaking" I have to do.

eg: getting Apache set up, punching a hole in the firewall, setting up postgres, setting up the web server user etc... took many hours to set up.

I've only heard about fedup (the upgrade tool), but haven't bumped into anyone who has actually used it successfully - also attend the LUG (linux user group) meetings in our town.

Alternatively, I am debating switching completely to Centos 7.
 
Old 04-11-2016, 11:40 PM   #8
6th_sense
Member
 
Registered: Jun 2006
Posts: 47

Original Poster
Rep: Reputation: 1
According to the dmesg |tail -n30, it looks like it is being put in as a scsi device on sdb or sdc - but, both are indicated - so I am not sure which one it is - unless the memory has been partitioned?

Perhaps fdisk /dev/sdb or fdisk /dev/sdc will yield some answers?

Doesn't look like it - as fdisk claims that neither /dev/sdb or /dev/sdc exists - saying "no such file or directory".

Last edited by 6th_sense; 04-11-2016 at 11:43 PM. Reason: last line
 
Old 04-12-2016, 09:40 AM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,513
Blog Entries: 1

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
$ cat /proc/partitions

# mount /dev/... /mnt/...

If it doesn't show up in /proc/partitions then you're missing kernel modules / drivers or it just doesn't work at all.
 
Old 04-12-2016, 02:57 PM   #10
6th_sense
Member
 
Registered: Jun 2006
Posts: 47

Original Poster
Rep: Reputation: 1
Dropping the issue

Hi guys,

I've given up on using it - I guess it's old technology and not worth the trouble - fortunately, I didn't have anything valuable to recover from it.

cat /proc/partitions doesn't show anything.

Code:
major minor  #blocks  name

   8        0  488386584 sda
   8        1     512000 sda1
   8        2  487873536 sda2
  11        0    1048575 sr0
 253        0   20971520 dm-0
 253        1    5832704 dm-1
 253        2  429588480 dm-2
 253        3   20971520 dm-3
I took a look at dmesg | tail -n60 |less

Code:
[   79.537844] sd 9:0:0:0: Attached scsi generic sg2 type 0
[   79.538230] sd 9:0:0:1: Attached scsi generic sg3 type 0
[   79.542156] sd 9:0:0:0: [sdb] Attached SCSI removable disk
[   79.559033] sd 9:0:0:1: [sdc] Attached SCSI removable disk
[   81.523771] usb 2-1.2: USB disconnect, device number 12
[   81.748533] usb 2-1.2: new full-speed USB device number 13 using ehci-pci
[   81.839970] usb 2-1.2: New USB device found, idVendor=0781, idProduct=0810
[   81.839979] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   81.839983] usb 2-1.2: Product: ImageMate CF-SM
[   81.839987] usb 2-1.2: Manufacturer: SanDisk Corporation
[   81.839990] usb 2-1.2: SerialNumber: 1B2C0303B691
[   81.840593] usb-storage 2-1.2:1.0: USB Mass Storage device detected
[   81.840819] scsi host10: usb-storage 2-1.2:1.0
[   82.841332] scsi 10:0:0:0: Direct-Access     SanDisk  ImageMate CF-SM  0100 PQ: 0 ANSI: 0 CCS
[   82.842363] scsi 10:0:0:1: Direct-Access     SanDisk  ImageMate CF-SM  0100 PQ: 0 ANSI: 0 CCS
[   82.843458] sd 10:0:0:0: Attached scsi generic sg2 type 0
[   82.843685] sd 10:0:0:1: Attached scsi generic sg3 type 0
[   82.863084] sd 10:0:0:0: [sdb] Attached SCSI removable disk
[   82.864135] sd 10:0:0:1: [sdc] Attached SCSI removable disk
[   84.376097] usb 2-1.2: reset full-speed USB device number 13 using ehci-pci
[   84.450065] usb 2-1.2: device descriptor read/64, error -32
[   84.624971] usb 2-1.2: device descriptor read/64, error -32
[   84.749508] usb 2-1.2: USB disconnect, device number 13
[   84.750383] scsi 10:0:0:0: rejecting I/O to offline device
[   84.750388] scsi 10:0:0:0: killing request
[   84.997647] usb 2-1.2: new full-speed USB device number 14 using ehci-pci
[   85.088754] usb 2-1.2: New USB device found, idVendor=0781, idProduct=0810
[   85.088763] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   85.088768] usb 2-1.2: Product: ImageMate CF-SM
[   85.088772] usb 2-1.2: Manufacturer: SanDisk Corporation
[   85.088776] usb 2-1.2: SerialNumber: 1B2C0303B691
[   85.089447] usb-storage 2-1.2:1.0: USB Mass Storage device detected
[   85.089667] scsi host11: usb-storage 2-1.2:1.0
[   86.090569] scsi 11:0:0:0: Direct-Access     SanDisk  ImageMate CF-SM  0100 PQ: 0 ANSI: 0 CCS
[   86.091449] scsi 11:0:0:1: Direct-Access     SanDisk  ImageMate CF-SM  0100 PQ: 0 ANSI: 0 CCS
[   86.091752] sd 11:0:0:0: Attached scsi generic sg2 type 0
[   86.091972] sd 11:0:0:1: Attached scsi generic sg3 type 0
[   86.117035] sd 11:0:0:1: [sdc] Attached SCSI removable disk
[   86.119901] sd 11:0:0:0: [sdb] Attached SCSI removable disk
[   87.152714] usb 2-1.2: USB disconnect, device number 14
[   87.372308] usb 2-1.2: new full-speed USB device number 15 using ehci-pci
and it was being kicked off of one by one the device IDs on the scsi chain... so, it would show up as device ID 12, then get booted and re-appear as device 13 and so on.

Thanks guys for so much help - it was very interesting to try and chase that down. One of my co-workers suggested that he would try it on an older machine which he has.... it might work there - but I am officially ditching it.
 
  


Reply

Tags
cardreader, mount usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED, sort of] sd card in 4 slot card reader not mounting in current justwantin Slackware 8 07-01-2012 03:36 PM
Mounting SD card iwtbf Linux - General 3 07-11-2009 03:01 PM
mounting a SD Card... toyotadesigner Linux - Laptop and Netbook 5 11-12-2005 04:21 AM
Mounting pcmcia/cf card mickeyboa Fedora 1 10-05-2005 08:58 PM
CF card mounting anandj Fedora 9 08-05-2004 11:32 PM


All times are GMT -5. The time now is 06:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration