Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

usb external device

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
margaretH
Posts: 14
Joined: 2017-01-23 20:22

usb external device

#1 Post by margaretH »

The Gnome Desktop, external device icon or file system is not registering any external usb flash device.

Does some one know of the name of the program / app in the Gnome desktop that registers the external usb devices.

i could re install the app / program and then see if a any usb device will be registered.

i was in the console formatting a Sandisk high speed usb flash drive.
with sfdisk.
after re-formatting the partition.
Did see that the two directories and a pdf were still in there
so i did rm them.
went back over the drive again made sure i did the procedure correctly,
delete, type, write.
sfdisk shows the device to be in Linux file format.
fdisk shows the device to be in Linux file format.
the device shows at /dev/sdb1
with device unpluged sdb1 is not shown.

after exiting the console and removing the external device with the Gnome desk tools.
After re-inserting the device the usual tools for a external usb device were not visible on the desktop or in the file system.

after going over this issue for some time.
i did insert the usb drive again and looked at the log files.

the far left portions:
512-byte logical blocks 248 GB/231 GiB
Write protect is off
Mode Sense 43 00 00 00
Write cache: disabled, read cache: enabled, doesnt support DPO or FUA.

Could the log message: 'doesn't support DPO or FUA' , have killed the program / app that registers external usb devices.
Is Sandisk not compatible with Linux.

man -k DPO ----- DPO from above
ppdpo , one of the results
man ppdpo
ppdpo - ppd message catalog generator (deprecated)

entering Linux DPO on line the search engine try`s to change the DPO to DPI.
one of the results for DPO shows:
linux man pages https://linux.die.net/man/8/sg_read shows sg_read and that would seem to be going into sys programming

Thank you
M

cronoik
Posts: 310
Joined: 2015-05-20 21:17

Re: usb external device

#2 Post by cronoik »

margaretH wrote:i could re install the app / program and then see if a any usb device will be registered.
This way works fine for windows, but rarely it works that way with GNU/Linux.
margaretH wrote:i did insert the usb drive again and looked at the log files.
What is the output of

Code: Select all

fdisk -l
after you have inserted the usb drive?
Have a nice day!

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: usb external device

#3 Post by Segfault »

sfdisk does not format, it is a partition table manipulating tool.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: usb external device

#4 Post by debiman »

margaretH wrote:The Gnome Desktop, external device icon or file system is not registering any external usb flash device.
stop right there.
so you mean a usb drive, aka usb stick?
what actually happens when
a) you open the file manager
b) you plug in a usb drive
does it appear in the left-hand column as a storage device?
no?
ok.

open a terminal.

enter

Code: Select all

lsusb
do you recognize your drive(s)?
no?
ok.

unplug the usb drive.
wait a minute.

enter

Code: Select all

dmesg
have a good look at the last 5 lines or so.

plug in the device.

wait a minute.

enter

Code: Select all

dmesg
find the last 5 lines from the previous invocation, and look at the new lines after that.

post them here.

margaretH
Posts: 14
Joined: 2017-01-23 20:22

Re: usb external device

#5 Post by margaretH »

Code: Select all

root@bonami:# fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000e4de2

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048    17598463     8798208   82  Linux swap / Solaris
/dev/sda2   *    17598464   625141759   303771648   83  Linux

Disk /dev/sdb: 248.4 GB, 248437014528 bytes
255 heads, 63 sectors/track, 30204 cylinders, total 485228544 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63   485228543   242614240+  83  Linux

----------------------------------------------------------------

root@bonami:# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 0c45:6457 Microdia 
Bus 001 Device 004: ID 8086:0189 Intel Corp. 
Bus 001 Device 006: ID 0781:5581 SanDisk Corp. 

---------------------------------------------------------

un attached , not pluged in , removed .
root@bonami:# dmesg

[  156.509265] usb 1-1.2: new high-speed USB device number 5 using ehci_hcd
[  156.603005] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5581
[  156.603012] usb 1-1.2: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
[  156.603016] usb 1-1.2: Product: Ultra
[  156.603019] usb 1-1.2: Manufacturer: SanDisk
[  156.603022] usb 1-1.2: SerialNumber: 4C531001371114111015
[  156.603931] scsi7 : usb-storage 1-1.2:1.0
[  157.601667] scsi 7:0:0:0: Direct-Access     SanDisk  Ultra            1.00 
PQ: 0 ANSI: 6
[  157.603542] sd 7:0:0:0: Attached scsi generic sg2 type 0
[  157.604304] sd 7:0:0:0: [sdb] 485228544 512-byte logical blocks: (248 GB/231 
GiB)
[  157.607023] sd 7:0:0:0: [sdb] Write Protect is off
[  157.607031] sd 7:0:0:0: [sdb] Mode Sense: 43 00 00 00
[  157.607784] sd 7:0:0:0: [sdb] Write cache: disabled, read cache: enabled, 
doesn't support DPO or FUA
[  157.624120]  sdb: sdb1
[  157.627160] sd 7:0:0:0: [sdb] Attached SCSI removable disk
[  654.096209] usb 1-1.2: USB disconnect, device number 5

-----------------------------------------------
pluged in , inserted , 

root@bonami:# dmesg

[  654.096209] usb 1-1.2: USB disconnect, device number 5
[ 3209.947081] usb 1-1.2: new high-speed USB device number 6 using ehci_hcd
[ 3210.040795] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5581
[ 3210.040803] usb 1-1.2: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
[ 3210.040807] usb 1-1.2: Product: Ultra
[ 3210.040810] usb 1-1.2: Manufacturer: SanDisk
[ 3210.040812] usb 1-1.2: SerialNumber: 4C531001371114111015
[ 3210.041715] scsi8 : usb-storage 1-1.2:1.0
[ 3211.039719] scsi 8:0:0:0: Direct-Access     SanDisk  Ultra            1.00 
PQ: 0 ANSI: 6
[ 3211.041723] sd 8:0:0:0: Attached scsi generic sg2 type 0
[ 3211.042228] sd 8:0:0:0: [sdb] 485228544 512-byte logical blocks: (248 GB/231 
GiB)
[ 3211.045169] sd 8:0:0:0: [sdb] Write Protect is off
[ 3211.045178] sd 8:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 3211.045960] sd 8:0:0:0: [sdb] Write cache: disabled, read cache: enabled, 
doesn't support DPO or FUA
[ 3211.062372]  sdb: sdb1
[ 3211.065296] sd 8:0:0:0: [sdb] Attached SCSI removable disk

----------------------------------------------------
root@bonami:# usb-devices

T:  Bus=01 Lev=02 Prnt=02 Port=01 Cnt=02 Dev#=  6 Spd=480 MxCh= 0
D:  Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0781 ProdID=5581 Rev=01.00
S:  Manufacturer=SanDisk
S:  Product=Ultra
S:  SerialNumber=4C531001371114111015
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=224mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

-----------------------------

kept, records for this device. Before the program or application in the gnome desktop went breasts up.
/media/B3C4-65C4

I did read in a sys programming pdf that the kernal will often make its own 
name for a device , would this ? B3C4-65C4 look like a name the kernel would 
deligate to a device .

-----------------------------------------------------
Also going back in time . I did add a line to /etc/fstab
located at the bottom .

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=50858290-5395-4782-ba24-cc1d1d4ee9a9 /               ext4    
errors=remount-ro 0       1
# swap was on /dev/sda1 during installation
UUID=5588bc61-7334-4bad-82c2-2326cf4816d6 none   swap    sw   0     0

/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/sdb	/media/		usbfs	user,noauto	0	0

type 'usbfs'
man mount -t --types vfstype
/proc/filesystems does list usbfs

I did read in another disk formatting manual page a reference to the file
/proc/filessystems , and at the same time mount also makes reference to that 
file 'proc/filesystems'. and entering linux usbfs in a search engine shows that , 
that file type 'usbfs' is depreciated, and it is listed in this distribution wheezy.
yes i would really like to upgrade, yet its just a matter of chasing problems around like a herd of cats. 
  
--------------------------------------------------------------------------------------
with device pluged in

someone@bonami:~$ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=491216,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=394188k,mode=755)
/dev/disk/by-uuid/50858290-5395-4782-ba24-cc1d1d4ee9a9 on / type ext4 
(rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=2548000k)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)



i need to write a script to tell me when a program is in sbin and or needs root access.

root@bonami:# mount /dev/sdb
root@bonami:# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=491216,mode=755)
devpts on /dev/pts type devpts 
(rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=394188k,mode=755)
/dev/disk/by-uuid/50858290-5395-4782-ba24-cc1d1d4ee9a9 on / type ext4 
(rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=2548000k)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc 
(rw,nosuid,nodev,noexec,relatime)
/dev/sdb on /media type usbfs (rw,nosuid,nodev,noexec,relatime)

root@bonami:# ls -l /media
total 0
dr-xr-xr-x 2 root root 0 Jan 28 22:29 001
dr-xr-xr-x 2 root root 0 Jan 28 22:29 002
dr-xr-xr-x 2 root root 0 Jan 28 22:29 003
dr-xr-xr-x 2 root root 0 Jan 28 22:29 004
-r--r--r-- 1 root root 0 Jan 29 18:19 devices
root@bonami:# ls -l /dev | less

root@bonami:# umount /dev/sdb

root@bonami:# ls -l /media
total 8
lrwxrwxrwx 1 root root    6 Aug 22  2013 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 Aug 22  2013 cdrom0
drwxr-xr-x 2 root root 4096 Jan 21 08:27 usb-device

Today is Jan 29 and i did delete the entry in the fstab file of:

/media/usb-device 
and did leave the entry of
/media/
either last night or previous to this call to 
ls -l /etc/media 
and the clock time now is close to 1800 hour
the entry
drwxr-xr-x 2 root root 4096 Jan 21 08:27 usb-device
show a clock time of ..............

[/color]

cronoik
Posts: 310
Joined: 2015-05-20 21:17

Re: usb external device

#6 Post by cronoik »

In your fstab you are mounting the device and not the partition:
margaretH wrote:/dev/sdb /media/ usbfs user,noauto 0 0
You should also use UUID instead of /dev/XXX in your fstab entry. You can find out the UUID with:

Code: Select all

blkid
Please note that the fstab is only useful for automounting partitions during the system boot. While your system is already running you need a different programm like the GNOME automounter (gvfs-fuse ).
I'm not a GNOME expert but what is the output of:

Code: Select all

gsettings list-recursively org.gnome.desktop.media-handling 
?
I'm not sure if I have written something to all the things you have posted. Please could you format your message probably?
Have a nice day!

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: usb external device

#7 Post by Segfault »

usbfs is deprecated and was never meant for mounting filesystems.

margaretH
Posts: 14
Joined: 2017-01-23 20:22

Re: usb external device

#8 Post by margaretH »

This is all really insane , when the first portion of the post did state:

The Gnome Desktop, external device icon or file system is not registering any external usb flash device.

Does some one know of the name of the program / app in the Gnome desktop that registers the external usb devices.

Thank you for the assistance , i will go through dpkg , apt , aptitude , which ever apply`s and re install what ever package has usb in its name as well as Nautilus and what ever else may apply.

Thank you

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: usb external device

#9 Post by Segfault »

sfdisk and fdisk can tell you the partition type, but not what filesystem is on given partition, if any.
This will tell you if there is a filesystem on it that can be mounted.

Code: Select all

file -s /dev/sdb1

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: usb external device

#10 Post by debiman »

margaretH wrote:This is all really insane , when the first portion of the post did state:

The Gnome Desktop, external device icon or file system is not registering any external usb flash device.

Does some one know of the name of the program / app in the Gnome desktop that registers the external usb devices.

Thank you for the assistance , i will go through dpkg , apt , aptitude , which ever apply`s and re install what ever package has usb in its name as well as Nautilus and what ever else may apply.
a drunk person is found crawling on all fours under a street lamp.
a sober person asks: what're you doing there?
drunk person: i lost my keys...
sober person: where'd you lose'em?
drunk: over there (points somewhere far off)
sober: well why are you searching here then?
drunk: there's no light over there!

Post Reply