mounting issues

This forum is for all other ARMv5 devices

mounting issues

Postby chaskito » Thu Apr 19, 2012 4:15 pm

Okay, I have had this problem for about half a year now and I decided to ask the mighty 'alarm' gods for some assistance. I am sure my problem is something very basic that I am not understanding about the way arch mounts devices.

First of all I have updated my whole system (pogo P0-1) as of 4-19-12 and the applications I use most often run nicely (samba, sabnzbd, sickbeard, crashplan). I am trying to figure out what is going on with the mounting of new drives and the unmounting of old ones. When I "cd" to "media" there is no logic to what I see. It will show drives that haven't been on the system for months, while not showing drives that are plugged into the system, and many other combinations in between. It is pretty frustrating not having a drive be recognized that once was.Is there a log or other information I can supply to further diagnose this problem?

Any advice or some keywords I should punch into google would be appreciated. Thanks for all the amazing development with this OS. I am consistently impressed with the capability of these little machines.

here is an example:
$this->bbcode_second_pass_code('', 'Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 003: ID 0930:6544 Toshiba Corp. Kingston DataTraveler 2.0 Stick (2GB)
Bus 001 Device 004: ID 1a40:0101 TERMINUS TECHNOLOGY INC. USB-2.0 4-Port HUB
Bus 001 Device 005: ID 1058:0901 Western Digital Technologies, Inc. MyBook External HDD
Bus 001 Device 006: ID 0bc2:3300 Seagate RSS LLC')

device 004 is not plugged into the system, but device 006 is. The seagate does not show up in "/media" though, and the hub is...well its a hub without anything plugged into it and it isn't connected to the pogo!
chaskito
 
Posts: 26
Joined: Sun Feb 27, 2011 8:50 pm

Re: mounting issues

Postby scorp » Thu Apr 19, 2012 4:25 pm

assuming ur pogo is running and u connect a new drive u can see with "dmesg" whats happening. It also shows u the device files for the drive, if pogo is able to detect the partition.

example: I attach a new USB stick, dmesg output:
$this->bbcode_second_pass_code('', '
[ 3288.050000] usb 1-1.4: new high speed USB device using oxnas-ehci and address 4
[ 3288.170000] usb 1-1.4: New USB device found, idVendor=0951, idProduct=1614
[ 3288.170000] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber =3
[ 3288.180000] usb 1-1.4: Product: DataTraveler 400
[ 3288.180000] usb 1-1.4: Manufacturer: Kingston
[ 3288.190000] usb 1-1.4: SerialNumber: 5B811F000A70
[ 3288.200000] usb 1-1.4: configuration #1 chosen from 1 choice
[ 3288.210000] scsi3 : SCSI emulation for USB Mass Storage devices
[ 3288.220000] usb-storage: device found at 4
[ 3288.220000] usb-storage: waiting for device to settle before scanning
[ 3293.220000] scsi 3:0:0:0: Direct-Access Kingston DataTraveler 400 PMAP PQ : 0 ANSI: 0 CCS
[ 3297.180000] usb-storage: device scan complete
[ 3297.180000] sd 3:0:0:0: [sdb] 7823360 512-byte logical blocks: (4.00 GB/3.73 GiB)
[ 3297.190000] sd 3:0:0:0: [sdb] Write Protect is off
[ 3297.190000] sd 3:0:0:0: [sdb] Mode Sense: 23 00 00 00
[ 3297.190000] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 3297.200000] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 3297.210000] sdb: sdb1
[ 3297.220000] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 3297.230000] sd 3:0:0:0: [sdb] Attached SCSI removable disk
')

decisive is the line: sdb: sdb1

pogo detected a partition.

I can mount it to every folder i like to, but for example i make a new one

$this->bbcode_second_pass_code('', 'mkdir /media/newusb')

mount the usb stick

$this->bbcode_second_pass_code('', 'mount /dev/sdb1 /media/newusb')


$this->bbcode_second_pass_code('', 'cd /media/newusb') --> use my files

unmount and take my usb stick away:

$this->bbcode_second_pass_code('', 'umount /media/newusb')


just "mount" shows all mounted devices and the places where they are mount to.
scorp
 
Posts: 21
Joined: Fri Dec 09, 2011 5:59 pm

Re: mounting issues

Postby chaskito » Thu Apr 19, 2012 4:41 pm

So dmesg gives gobs of infomation, but at the end I found some curious information:
$this->bbcode_second_pass_code('', '[ 232.450000] usb 1-1.2.2: new low speed USB device using oxnas-ehci and address 7
[ 689.240000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.250000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.260000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.270000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.280000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.280000] hub 1-1.2:1.0: Cannot enable port 4. Maybe the USB cable is bad?
[ 689.290000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.300000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.320000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.330000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.340000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.350000] hub 1-1.2:1.0: Cannot enable port 4. Maybe the USB cable is bad?
[ 689.360000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.370000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.380000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.390000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.400000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.410000] hub 1-1.2:1.0: Cannot enable port 4. Maybe the USB cable is bad?
[ 689.420000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.430000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.440000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.450000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.460000] hub 1-1.2:1.0: cannot reset port 4 (err = -71)
[ 689.460000] hub 1-1.2:1.0: Cannot enable port 4. Maybe the USB cable is bad?')

I was using this port earlier in the day for a different device that is mounting fine. The device that is not being recognized is a usb 3.0 2tb device. The same cable works at usb 3.0 and 2.0 speeds on my ubuntu desktop combuter excellently. Again, this device was working fine, the only thing I changed on the system recently was the addition of hd-idle, I wonder if I should disable that. Still, I have no idea why some drives that are not identified in dmesg or dev are showing up in media (they don't exist in fstab either).

$this->bbcode_second_pass_code('', ' /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
')

my /etc/mtab only displays the device that is working, ie shows up in /media works with samba
$this->bbcode_second_pass_code('', 'rootfs / rootfs rw 0 0
/dev/root / ext3 rw,relatime,errors=continue,data=writeback 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sys /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
run /run tmpfs rw,nosuid,nodev,relatime,size=10240k,mode=755 0 0
udev /dev tmpfs rw,nosuid,relatime,size=10240k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
/dev/sdb1 /media/chaskita ext4 rw,noatime,barrier=1,data=ordered 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,relatime 0 0
')

another interesting bit from dmesg that keeps showing up...
$this->bbcode_second_pass_code('', '[ 21.040000] kjournald starting. Commit interval 5 seconds
[ 21.040000] EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
[ 21.190000] EXT3 FS on sda1, internal journal')
thanks!!
chaskito
 
Posts: 26
Joined: Sun Feb 27, 2011 8:50 pm

Re: mounting issues

Postby WarheadsSE » Thu Apr 19, 2012 5:27 pm

The lingering devices is the problem, to me. I can grant any insight immediately, but these should be clearing out.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: mounting issues

Postby chaskito » Sat Apr 21, 2012 9:04 pm

Could a drive be showing up because of an application? I can't seem to find any clues... here is some extra info.
$this->bbcode_second_pass_code('', 'lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 003: ID 0930:6544 Toshiba Corp. Kingston DataTraveler 2.0 Stick (2GB)
Bus 001 Device 004: ID 1058:0901 Western Digital Technologies, Inc. MyBook External HDD
')

also:
$this->bbcode_second_pass_code('', 'fdisk -l

Disk /dev/sda: 8010 MB, 8010194944 bytes
151 heads, 18 sectors/track, 5756 cylinders, total 15644912 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: 0x8645a510

Device Boot Start End Blocks Id System
/dev/sda1 2048 15644911 7821432 83 Linux

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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: 0x000cf332

Device Boot Start End Blocks Id System
/dev/sdb1 63 488392064 244196001 83 Linux
')

So sda1 is the alarm OS, and sdb1 is my workhorse storage drive, but when I ask what /media sees:

$this->bbcode_second_pass_code('', 'media]# ls
blackdragon chaskita torrent')

"blackdragon" and "torrent" were the names of other drives that are no longer attached to the system...

thanks! the only reason I don't just wipe out the OS and start over is because of some obnoxious crashplan backup archive stuff, takes so long to upload to their servers with my wimpy 0.5mb/s upload.

cheers
chaskito
 
Posts: 26
Joined: Sun Feb 27, 2011 8:50 pm

Re: mounting issues

Postby WarheadsSE » Sun Apr 22, 2012 1:34 am

the folders won't automatically disappear. Don't assume that.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Community Supported

Who is online

Users browsing this forum: No registered users and 0 guests