We have moved to a new Sailfish OS Forum. Please start new discussions there.
6

Unable to access internal storage or sdcard using USB [answered]

asked 2013-12-25 18:45:23 +0200

lomo gravatar image

updated 2013-12-25 19:55:24 +0200

Phone is attached to computer using USB cable. Following messages are present in the kernel log of PC host (Debian Linux):

Dec 25 17:28:46 lomo kernel: [239071.948017] usb 2-1.2: new high-speed USB device number 41 using ehci-pci

Dec 25 17:28:46 lomo kernel: [239072.042231] usb 2-1.2: New USB device found, idVendor=2931, idProduct=0afe

Dec 25 17:28:46 lomo kernel: [239072.042242] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3

Dec 25 17:28:46 lomo kernel: [239072.042248] usb 2-1.2: Product: Sailfish

Dec 25 17:28:46 lomo kernel: [239072.042262] usb 2-1.2: Manufacturer: Jolla

Dec 25 17:28:46 lomo kernel: [239072.042264] usb 2-1.2: SerialNumber: DU3C602415

Dec 25 17:28:46 lomo kernel: [239072.043789] usb-storage 2-1.2:1.0: USB Mass Storage device detected

Dec 25 17:28:46 lomo kernel: [239072.044085] scsi26 : usb-storage 2-1.2:1.0

Dec 25 17:28:47 lomo kernel: [239073.044875] scsi 26:0:0:0: Direct-Access Linux File-CD Gadget 0000 PQ: 0 ANSI: 2

Dec 25 17:28:47 lomo kernel: [239073.045364] sd 26:0:0:0: Attached scsi generic sg2 type 0

Dec 25 17:28:47 lomo kernel: [239073.050247] sd 26:0:0:0: [sdc] Attached SCSI removable disk

When choosing "PC connection" on Jolla, following messages appear:

Dec 25 17:30:17 lomo kernel: [239162.873977] usb 2-1.2: USB disconnect, device number 41

Dec 25 17:30:17 lomo kernel: [239163.136979] usb 2-1.2: new high-speed USB device number 42 using ehci-pci

Dec 25 17:30:17 lomo kernel: [239163.234596] usb 2-1.2: New USB device found, idVendor=2931, idProduct=0a01

Dec 25 17:30:17 lomo kernel: [239163.234605] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3

Dec 25 17:30:17 lomo kernel: [239163.234609] usb 2-1.2: Product: Sailfish

Dec 25 17:30:17 lomo kernel: [239163.234612] usb 2-1.2: Manufacturer: Jolla

Dec 25 17:30:17 lomo kernel: [239163.234615] usb 2-1.2: SerialNumber: DU3C602415

After trying to mount the device using KDE, vfat related errors appear:

Dec 25 17:40:37 lomo kernel: [239783.222281] fat_getentry: 246 callbacks suppressed

Dec 25 17:40:37 lomo kernel: [239783.222286] FAT-fs (sdb): Directory bread(block 2304) failed

Dec 25 17:40:37 lomo kernel: [239783.222289] FAT-fs (sdb): Directory bread(block 2305) failed

Dec 25 17:40:37 lomo kernel: [239783.222290] FAT-fs (sdb): Directory bread(block 2306) failed

Dec 25 17:40:37 lomo kernel: [239783.222292] FAT-fs (sdb): Directory bread(block 2307) failed

Dec 25 17:40:37 lomo kernel: [239783.222293] FAT-fs (sdb): Directory bread(block 2308) failed

Dec 25 17:40:37 lomo kernel: [239783.222295] FAT-fs (sdb): Directory bread(block 2309) failed

Dec 25 17:40:37 lomo kernel: [239783.222296] FAT-fs (sdb): Directory bread(block 2310) failed

Dec 25 17:40:37 lomo kernel: [239783.222297] FAT-fs (sdb): Directory bread(block 2311) failed

Dec 25 17:40:37 lomo kernel: [239783.222299] FAT-fs (sdb): Directory bread(block 2312) failed

Dec 25 17:40:37 lomo kernel: [239783.222300] FAT-fs (sdb): Directory bread(block 2313) failed

The /dev/sdc device disappears. No more messages. Any ides how to mount Jolla's internal storage and/or sdcard on PC?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by pnuu
close date 2013-12-26 18:20:47.347087

Comments

2 Answers

Sort by » oldest newest most voted
2

answered 2013-12-25 18:52:29 +0200

Kontio gravatar image

The internal storage and the SD card are not exported as mass storage, so you can't mount it from a linux pc.

The internal storage is exported via MTP, see also https://together.jolla.com/question/282/usb-file-transfer-support-for-mac-os-x/ it has some infos for Linux how to access it.

edit flag offensive delete publish link more

Comments

2

MTP is unfortunately not mentioned in Jolla's guide. Internal memory works now.

Is there a solution how to access the sdcard? I can see only folders "Phone Memory" and "Playlists" when accessing the device using mtp.

lomo ( 2013-12-25 19:19:54 +0200 )edit
2

answered 2013-12-25 20:32:33 +0200

iite gravatar image

What I did was enable developer mode from my Jolla, SSH connection to the phone, use the "devel-su" command to gain root access (same passwd as the "nemo" user that you set from enabling the ssh connection!)

And then I created a symlink to "/mnt/sdcard" into the "/home/nemo" (which is shown at USB plug in with windows) and voilá -- I can access the sdcard.

How to mount it directly, "don't ask me", but that's how I solved it for me. ;)

edit flag offensive delete publish link more

Comments

Note that /mnt/sdcard is a link to /data/sdcard and you can view it e.g. via WinSCP once you set up the SSH connection.

Nux ( 2013-12-26 03:47:31 +0200 )edit
1

Yes, that works of course. I was expecting Jolla to expose the SD card content using MTP protocol.

lomo ( 2013-12-27 01:01:57 +0200 )edit

@hana You can use a graphical explorer like WinSCP or just PuTTy. Note that to use SSH you need to enable Developer mode on Jolla and setup the password in Developer mode settings. You will be able to login as user "nemo" (and the password you set).

Nux ( 2013-12-29 22:59:39 +0200 )edit

@Nux I tried PuTTy before but I don't know how to connect to Jolla, I tried to connect to the IP address that is shown in Jolla's developer settings but nothing happens. I will take a look at WinSCP next.

hana ( 2013-12-29 23:02:39 +0200 )edit

OK now I got WinSCP working, I need to edit Windows network settings for "Remote NDIS..." to set an IP address manually for the machine (I chose IP address close to Jolla's address). So now it can connect to Jolla's IP address and it seems to work fine.

hana ( 2014-01-04 07:51:38 +0200 )edit

Question tools

Follow
4 followers

Stats

Asked: 2013-12-25 18:45:23 +0200

Seen: 5,068 times

Last updated: Dec 25 '13