acobley
Posts: 20
Joined: Fri Feb 10, 2012 9:54 am

mount Pi Sd card in USB

Mon Jul 16, 2012 4:09 pm

Hopefully I can make this clear ! I have a bootable Pi SD card. I want to mount it on the USB port of another Pi so I can read some data off it and onto another Pi. I have installed usbmount, but when I plug the SD card into the USB (via a card reader) it doesn't seem to mount.

Any easy ideas ?

Andy

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: mount Pi Sd card in USB

Mon Jul 16, 2012 4:14 pm

acobley wrote:Hopefully I can make this clear ! I have a bootable Pi SD card. I want to mount it on the USB port of another Pi so I can read some data off it and onto another Pi. I have installed usbmount, but when I plug the SD card into the USB (via a card reader) it doesn't seem to mount.

Any easy ideas ?

Andy
Well, the obvious answer is "Mount it manually".

You know, like how Unix is supposed to work - and how it did work until certain forces determined that Unix/Linux must become Windows {tm}.

Edit: In fact, one of the first things I do on any Windows {tm} system that I set up is to turn off the "Shell Hardware Notification" service.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

User avatar
RaTTuS
Posts: 9633
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: mount Pi Sd card in USB

Mon Jul 16, 2012 4:27 pm

plug SD card into a SD card reader
plug into RPi
sudo fdisk -l
sudo mount /dev/sda2 /mnt
may be good enough but output from fdisk -l will help
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
joan
Posts: 12916
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: mount Pi Sd card in USB

Mon Jul 16, 2012 4:30 pm

Try the command dmesg after plugging the card + reader into the usb port. It'll indicate if the card was recognised or not.

acobley
Posts: 20
Joined: Fri Feb 10, 2012 9:54 am

Re: mount Pi Sd card in USB

Mon Jul 16, 2012 5:30 pm

Thanks for the help, I'll report back on how it goes.

Andy

acobley
Posts: 20
Joined: Fri Feb 10, 2012 9:54 am

Re: mount Pi Sd card in USB

Mon Jul 16, 2012 5:55 pm

Well that doesn't seem to work, dmesg gives:


usb 1-1.2: new high speed USB device number 7 using dwc_otg
usb 1-1.2: New USB device found, idVendor=05e3, idProduct=0723
usb 1-1.2: New USB device strings: Mfr=3, Product=4, SerialNumber=0
usb 1-1.2: Product: USB Storage
usb 1-1.2: Manufacturer: Generic
scsi3 : usb-storage 1-1.2:1.0
scsi 3:0:0:0: Direct-Access Generic STORAGE DEVICE 9454 PQ: 0 ANSI: 0
sd 3:0:0:0: [sda] Attached SCSI removable disk


I note if I plug a normal usb stick (from a mac) I get the following:


usb 1-1.2: new high speed USB device number 8 using dwc_otg
usb 1-1.2: New USB device found, idVendor=0781, idProduct=5567
usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.2: Product: Cruzer Blade
usb 1-1.2: Manufacturer: SanDisk
usb 1-1.2: SerialNumber: 20060266021B3970159C
scsi4 : usb-storage 1-1.2:1.0
scsi 4:0:0:0: Direct-Access SanDisk Cruzer Blade 1.20 PQ: 0 ANSI: 5
sd 4:0:0:0: [sda] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
sd 4:0:0:0: [sda] Write Protect is on
sd 4:0:0:0: [sda] Mode Sense: 43 00 80 00
sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1
sd 4:0:0:0: [sda] Attached SCSI removable disk

So still a bit stuck here !

Andy

kadamski
Posts: 187
Joined: Fri Jun 08, 2012 10:56 pm

Re: mount Pi Sd card in USB

Mon Jul 16, 2012 6:08 pm

Are you sure your card reader works ok and you have the card properly inserted? It looks like your reader does not see the card (at least it looks the same if I don't insert the card)

acobley
Posts: 20
Joined: Fri Feb 10, 2012 9:54 am

Re: mount Pi Sd card in USB

Mon Jul 16, 2012 6:22 pm

The card reader works in a Mac (although you can only see the boot partition of course).

Andy

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: mount Pi Sd card in USB

Tue Jul 17, 2012 1:28 am

Looks like your card reader might have problems with Linux?
http://forums.fedoraforum.org/showthread.php?t=255614

If you can, try a different card reader. :?

User avatar
LDighera
Posts: 44
Joined: Wed Aug 29, 2012 1:04 am
Location: Santa Barbara, California, USA

Re: mount Pi Sd card in USB

Wed Aug 29, 2012 1:23 am

To mount a second SD card on my wheezy RPi, I did the following:

Plug USB card reader containingng second USB card intvacantnt USB port
mkdir /root/mount.point
mount -t vfat /dev/sda1 /root/mount.point


Then to copy the contents of the directory 'dirname' on that SD card, I did the following:

cp -r /root/mount.point/dirname /root/

Now if I could only coax wpa_supplicant into submission.... :-)
There is no expedient to which a man will not resort
to avoid the real labor of thinking.
-- Sir Joshua Reynolds

ggodart
Posts: 6
Joined: Thu Aug 30, 2012 9:02 pm

Re: mount Pi Sd card in USB

Sun Dec 16, 2012 9:08 am

This only appears to mount the small OS boot partition, not the body of the disk :-(

sdjf
Posts: 1388
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: mount Pi Sd card in USB

Fri Dec 21, 2012 10:24 pm

I am still having my own problems getting my Pi to handle media, but I have succeeded in at least mounting, my problem is it complains about the file systems when I try to mount the device(s).

But one thing that might make a difference I have noticed on my PDA is that it seems to work better if I put the card into the card reader and then put the reader into the PDA.

Another thing to look out for is multicard readers, I think that in Linux when there are more slots in a card reader, only the one labelled LUN 0 is read unless other tools are installed to read the other luns. If your SD slot is not LUN 0, then the SD card will not be seen.

There are a lot of pages on web about this, I will be installing a package called sg3-utils that is supposed to enable reading other card reader slots.
FORUM TIP: To view just one person's posting history, sign in, click on their user name, then click on "Search User's Posts." || My 512MB Model B only runs Arch.

sdjf
Posts: 1388
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: mount Pi Sd card in USB

Fri Dec 21, 2012 10:26 pm

Also, sda1 will be the boot partition, if the card is being read, then you have to mount the file system separately as sda2. Just mounting sda1 had better not get you the second partition!

you will need a separate entry in /etc/fstab for each partition, and also need to use mkdir to create separate directories for each of them as well.

I call mine /dev/sda1 /dev/sda2 and /media/usba1 /media/usba2, different names than someone else gave in their example.
FORUM TIP: To view just one person's posting history, sign in, click on their user name, then click on "Search User's Posts." || My 512MB Model B only runs Arch.

Return to “Advanced users”

Who is online

Users browsing this forum: No registered users and 23 guests