Fedora Linux Support Community & Resources Center
  #1  
Old 15th July 2011, 08:47 PM
ssb Offline
Registered User
 
Join Date: Jun 2007
Posts: 106
linuxfirefox
how to mount scsi device - android phone

Hello


How can i do to mount a scsi device ? it is a lg android phone ...

My dmesg shows :

sb 2-2: New USB device found, idVendor=1004, idProduct=618e
usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-2: Product: LG Android USB Device
usb 2-2: Manufacturer: LG Electronics Inc.
usb 2-2: SerialNumber: 80A356544042770053
usb 2-2: usb_probe_device
usb 2-2: configuration #1 chosen from 1 choice
usb 2-2: adding 2-2:1.0 (config #1, interface 0)
usb 2-2: adding 2-2:1.1 (config #1, interface 1)
usb 2-2: adding 2-2:1.2 (config #1, interface 2)
usb 2-2: adding 2-2:1.3 (config #1, interface 3)
usb 2-2: adding 2-2:1.4 (config #1, interface 4)
usb-storage 2-2:1.4: usb_probe_interface
usb-storage 2-2:1.4: usb_probe_interface - got id
scsi9 : usb-storage 2-2:1.4
usb 2-2: adding 2-2:1.5 (config #1, interface 5)
drivers/usb/core/inode.c: creating file '003'
scsi 9:0:0:0: Direct-Access GOOGLE Mass Storage ffff PQ: 0 ANSI: 2
sd 9:0:0:0: Attached scsi generic sg6 type 0
sd 9:0:0:0: [sdf] Attached SCSI removable disk

Thank you
Reply With Quote
  #2  
Old 15th July 2011, 10:01 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 50
Posts: 1,088
windows_xp_2003firefox
Re: how to mount scsi device - android phone

Hello,

With my droid phone it shows up the same way.

You should be able to
# mount /dev/sdf1 /mnt


What I have in my /etc/fstab is :
UUID=6164-6165 /mnt/droid auto noauto,user,exec 0 0

this lets me type "mount /mnt/droid" after hooking up my droid.
To get UUID :
cd /dev/disk/by-uuid
look for sdf1
Reply With Quote
  #3  
Old 15th July 2011, 10:11 PM
KBerger Offline
Registered User
 
Join Date: Jul 2011
Posts: 9
linuxfirefox
Re: how to mount scsi device - android phone

Right, you usually need to know which name the system gives to the USB device. In your case pay attention to the [sdf] part in the string I quoted from your log. It is usually "sd(something)" and once configured it can be mounted as /dev/sd(something)1 into to mount point of your choice.
Quote:
Originally Posted by ssb View Post
sd 9:0:0:0: [sdf] Attached SCSI removable disk
Reply With Quote
  #4  
Old 16th July 2011, 11:25 AM
ssb Offline
Registered User
 
Join Date: Jun 2007
Posts: 106
linuxfirefox
Re: how to mount scsi device - android phone

Hello

Thank you for your response

I got a question ... by uuid doesn't show my lg ...

$ cd /dev/disk/by-uuid/
$ ls -lrt
total 0
lrwxrwxrwx 1 root root 10 Jul 16 11:17 72d947e4-91a9-42c8-a11a-d92b72f4efad -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul 16 11:17 23a81245-ae1f-4e33-a554-adbc84443b1a -> ../../sda2

$lsusb
Bus 002 Device 003: ID 1004:618e LG Electronics, Inc.

where can i find uuid ?

thank you
Reply With Quote
  #5  
Old 16th July 2011, 12:35 PM
bruno.taglienti Offline
Registered User
 
Join Date: Jul 2005
Location: Roma
Age: 72
Posts: 197
linuxfirefox
Re: how to mount scsi device - android phone

try
Code:
 blkid
__________________
Bruno Taglienti
Reply With Quote
  #6  
Old 16th July 2011, 12:46 PM
ssb Offline
Registered User
 
Join Date: Jun 2007
Posts: 106
linuxfirefox
Re: how to mount scsi device - android phone

Hello,

Done.

]$ blkid
/dev/sda1: UUID="72d947e4-91a9-42c8-a11a-d92b72f4efad" TYPE="ext4"
/dev/sda2: UUID="23a81245-ae1f-4e33-a554-adbc84443b1a" TYPE="swap"

no info about phone

sorry
Reply With Quote
  #7  
Old 16th July 2011, 02:07 PM
bruno.taglienti Offline
Registered User
 
Join Date: Jul 2005
Location: Roma
Age: 72
Posts: 197
linuxfirefox
Re: how to mount scsi device - android phone

A simple workaround to assign a unique name to your device is to use udev.
Create a file /etc/udev/rules.d/00-local.rules containing the following line:
Code:
KERNEL=="sd[a-z]*",ATTRS{serial}=="80A356544042770053",SYMLINK="droid%n"
(notice that I used the serial number you provided in your post)
When you plug your phone to USB, a symlink /dev/droid1 is created for the physical
device name (in your example /dev/sdf1). This is useful because you can use
the following line in /etc/fstab:
Code:
/dev/droid1              /mnt/droid auto noauto,user,exec 0 0
/dev/droid1 points to the physical device name of your phone, whatever it is.

If you want, udev can be used to automatically mount the device.
__________________
Bruno Taglienti

Last edited by bruno.taglienti; 16th July 2011 at 02:22 PM.
Reply With Quote
  #8  
Old 16th July 2011, 09:51 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 50
Posts: 1,088
windows_xp_2003firefox
Re: how to mount scsi device - android phone

Hello,

I try your udev way.
Had to make a little change. In order to get it to see /dev/sdg1 and not /dev/sdg I changed
changed KERNEL=="sd[a-z]*" --to-- KERNEL=="sd[a-z]1"
Then worked great.
thanks for info, I am not up on udev rules.

Here is what I was getting before my change:
[dev]# ll droid
lrwxrwxrwx. 1 root root 3 Jul 16 15:22 droid -> sdg

After change :
ll /dev/droid1
lrwxrwxrwx. 1 root root 4 Jul 16 15:25 /dev/droid1 -> sdg1
Reply With Quote
  #9  
Old 22nd July 2011, 09:34 PM
ssb Offline
Registered User
 
Join Date: Jun 2007
Posts: 106
linuxfirefox
Re: how to mount scsi device - android phone

Hello,

I have some problem, but something is running ok ...

I've changed:

$cat /etc/udev/rules.d/00-android.rules
SUBSYSTEM=="usb",ATTRS{serial}=="80A35654404277005 3",SYMLINK="droid1"

$cat /etc/fstab
/dev/droid1 /mnt/droid auto noauto,user,exec 0 0

$ ll /dev/droid1
lrwxrwxrwx 1 root root 15 Jul 22 21:28 /dev/droid1 -> bus/usb/002/009

$lsusb
Bus 002 Device 009: ID 1004:618e LG Electronics, Inc.

And then, it seems that rules check ok my phone, but it is not mounted ... why ?

Where can i find "logs" about this process?

Thank you
Reply With Quote
  #10  
Old 22nd July 2011, 09:48 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 50
Posts: 1,088
windows_xp_2003firefox
Re: how to mount scsi device - android phone

Hello,
try this line in your undev

KERNEL=="sd[a-z]1",ATTRS{serial}=="80A35654404277005 3",SYMLINK="droid%n"


Here is the error I am getting when I try it with the SUBSYSTEM line
# mount /mnt/droid
mount: /dev/bus/usb/001/004 is not a block device

Not a block device is why it can not be mounted
Double check your serial number in dmesg
There is no space in my serial number

EAMPLE:
[29985.356563] usb 1-3.4: Manufacturer: Motorola
[29985.356565] usb 1-3.4: SerialNumber:
Reply With Quote
  #11  
Old 22nd July 2011, 10:08 PM
ssb Offline
Registered User
 
Join Date: Jun 2007
Posts: 106
linuxfirefox
Re: how to mount scsi device - android phone

Hello,

Change,

KERNEL=="sd[a-z]1",ATTRS{serial}=="80A356544042770053",SYMLINK="dr oid%n"

now

there is no /dev/droid

??

---------- Post added at 12:08 PM ---------- Previous post was at 12:06 PM ----------

and

if i change

SUBSYSTEM=="usb",ATTR{idVendor}=="1004",SYMLINK+=" android_adb",MODE="0666"

then

$ll /dev/android_adb
lrwxrwxrwx 1 root root 15 Jul 22 22:06 /dev/android_adb -> bus/usb

$ mount /dev/android_adb /mnt/droid/
mount: /dev/bus/usb/002/019 is not a block device

what am i doing wrong ?
Reply With Quote
  #12  
Old 23rd July 2011, 12:34 PM
bruno.taglienti Offline
Registered User
 
Join Date: Jul 2005
Location: Roma
Age: 72
Posts: 197
linuxfirefox
Re: how to mount scsi device - android phone

Read this:

http://www.reactivated.net/writing_udev_rules.html
__________________
Bruno Taglienti
Reply With Quote
  #13  
Old 25th July 2011, 02:15 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 50
Posts: 1,088
windows_xp_2003firefox
Re: how to mount scsi device - android phone

With KERNEL=="sd[a-z]1",ATTRS{serial}=="YOUR_SERIAL_#_FROM_DMESG",SYMLI NK="dr oid%n"
you should see /dev/droid1
Reply With Quote
Reply

Tags
android, device, mount, phone, scsi

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Phone 7 beats iPhone 4 and Android Wayne Wibble 9 15th November 2010 03:43 PM
Android Phone & Fedora teancum144 Hardware & Laptops 3 22nd March 2010 01:32 AM
Sony Ericsson unveils its first Android phone Demz Wibble 3 9th November 2009 07:26 PM
Google Android based phone to be released this tuesday. notageek Wibble 34 29th September 2008 08:55 AM


Current GMT-time: 06:30 (Wednesday, 26-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Hobart Travel Photos - Azare Instagram Photos - Mae Sot Travel Photos