New USB Disk Wont mount

Re: New USB Disk Wont mount

Postby Mijzelf » Fri Jan 03, 2014 10:01 am

Does that disk in Windows also have 4K sectors? According to your Fedora log the system fails in loading some module, about at the moment it should decode the partition table. Maybe it's trying to load a module for rare partition tables?

If there is nothing on the disk, you could try to wipe the first few MB's (Active killdisk), to remove any possibly invalid partition table, and look if at least the block device is recognized by Fedora/NS2.
Mijzelf
 
Posts: 255
Joined: Wed Nov 21, 2012 9:12 am

Re: New USB Disk Wont mount

Postby rafesl » Fri Jan 03, 2014 11:07 am

Thanks for that.

I'll have a look over the weekend family permitting :-)
rafesl
Donator VIP
Donator VIP
 
Posts: 39
Joined: Mon Jul 16, 2012 11:48 am

Re: New USB Disk Wont mount

Postby rafesl » Wed Jan 08, 2014 11:40 pm

ok its takend me a few days to get a chance to play with this.
I've done the killdisk thing and reformatted etc.
That made no difference in terms of getting it mounted on my NS2.

But I did try an Ubuntu 13.10 pen drive boot and that seems to work just fine.

Jan 8 23:11:03 ubuntu kernel: [ 638.191121] usb 1-1.2: reset high-speed USB device number 3 using ehci-pci
Jan 8 23:11:04 ubuntu kernel: [ 638.754751] usb 1-1.1: new high-speed USB device number 4 using ehci-pci
Jan 8 23:11:04 ubuntu kernel: [ 638.908879] usb 1-1.1: New USB device found, idVendor=0bc2, idProduct=3320
Jan 8 23:11:04 ubuntu kernel: [ 638.908884] usb 1-1.1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
Jan 8 23:11:04 ubuntu kernel: [ 638.908887] usb 1-1.1: Product: Expansion Desk
Jan 8 23:11:04 ubuntu kernel: [ 638.908890] usb 1-1.1: Manufacturer: Seagate
Jan 8 23:11:04 ubuntu kernel: [ 638.908892] usb 1-1.1: SerialNumber: XXXXXX
Jan 8 23:11:04 ubuntu kernel: [ 638.909261] usb-storage 1-1.1:1.0: USB Mass Storage device detected
Jan 8 23:11:04 ubuntu kernel: [ 638.909471] scsi7 : usb-storage 1-1.1:1.0
Jan 8 23:11:05 ubuntu kernel: [ 639.906777] scsi 7:0:0:0: Direct-Access Seagate Expansion Desk 0711 PQ: 0 ANSI: 6
Jan 8 23:11:05 ubuntu kernel: [ 639.907131] sd 7:0:0:0: Attached scsi generic sg4 type 0
Jan 8 23:11:05 ubuntu kernel: [ 639.911850] sd 7:0:0:0: [sdd] Spinning up disk...
Jan 8 23:11:15 ubuntu kernel: [ 640.913162] ..........ready
Jan 8 23:11:15 ubuntu kernel: [ 649.944049] sd 7:0:0:0: [sdd] 732566645 4096-byte logical blocks: (3.00 TB/2.72 TiB)
Jan 8 23:11:15 ubuntu kernel: [ 649.976056] sd 7:0:0:0: [sdd] Write Protect is off
Jan 8 23:11:15 ubuntu kernel: [ 649.976062] sd 7:0:0:0: [sdd] Mode Sense: 4f 00 00 00
Jan 8 23:11:15 ubuntu kernel: [ 649.977119] sd 7:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Jan 8 23:11:15 ubuntu kernel: [ 649.977876] sd 7:0:0:0: [sdd] 732566645 4096-byte logical blocks: (3.00 TB/2.72 TiB)
Jan 8 23:11:15 ubuntu kernel: [ 650.038884] sdd: sdd1 sdd2
Jan 8 23:11:15 ubuntu kernel: [ 650.040078] sd 7:0:0:0: [sdd] 732566645 4096-byte logical blocks: (3.00 TB/2.72 TiB)
Jan 8 23:11:15 ubuntu kernel: [ 650.042687] sd 7:0:0:0: [sdd] Attached SCSI disk

That's with a pendrive Ubuntu 13.10
uname -a gives
root@ubuntu:/var/log# uname -a
Linux ubuntu 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:12:00 UTC 2013 i686 i686 i686 GNU/Linux



Section from usb-devices :
T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 4 Spd=480 MxCh= 0
D: Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0bc2 ProdID=3320 Rev=01.00
S: Manufacturer=Seagate
S: Product=Expansion Desk
S: SerialNumber=XXXXXX
C: #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

So... it can work with a Linux install, but is there any way of working out what needs to be done to get it operational on the NAS?

Thanks

Rafe
rafesl
Donator VIP
Donator VIP
 
Posts: 39
Joined: Mon Jul 16, 2012 11:48 am

Re: New USB Disk Wont mount

Postby fvdw » Thu Jan 09, 2014 8:50 pm

C: #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage


this means that the driver is loaded. There must be a reason why mount fails
We can try to mount it manully, which format is used on the disk 9ext3, ntfs, fat32...)

Connect vi ssh server of the nwsp2 (for example using putty) username: root password: giveit2me
at linux command line give command
Code: Select all
fdisk -l


As this is a 3TB disk fdisk might not be able to read the partiton table.
In that case use
Code: Select all
gdisk -l /dev/sdb


if it finds sdb besides sda and sdb has at least a 1 partition then we can proceed to try to mount it
create a mount point and mount it
Code: Select all
mkdir /sdb1
mount /dev/sdb1 /sdb1

if this succeeds than we can trouble shot further, if it fails we need to error message
ps To see which disk are already mounted you can give the command
Code: Select all
mount
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: New USB Disk Wont mount

Postby rafesl » Fri Jan 10, 2014 12:52 pm

the snippets I included in my last post are from the Ubuntu mount attempt.

All I continue to get on the NS2 is the usual
"[ 1530.648362] hub 1-0:1.0: unable to enumerate USB device on port 1"

I'll try it over the weekend on an older ubuntu to see what happens.
I was detected but not mountable on the Fedora I tried previously, so I'm leaning towards it being the module / kernel that's not happy.

Rafe
rafesl
Donator VIP
Donator VIP
 
Posts: 39
Joined: Mon Jul 16, 2012 11:48 am

Re: New USB Disk Wont mount

Postby fvdw » Fri Jan 10, 2014 6:06 pm

Think you missed my point.

you should connect to the nwsp2 using the ssh server running on the nwsp2.
You can use a program like Putty for it, that is a ssh client running on windows. If you connect to the ssh server you get a linux command prompt and access to the the running linux system running on the nwsp2.
Then you should perform the commands I gave you (so in putty window) to see whys the nwsp2 doesn't mount.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: New USB Disk Wont mount

Postby rafesl » Fri Jan 10, 2014 10:37 pm

fvdw wrote:Think you missed my point.

you should connect to the nwsp2 using the ssh server running on the nwsp2.
You can use a program like Putty for it, that is a ssh client running on windows. If you connect to the ssh server you get a linux command prompt and access to the the running linux system running on the nwsp2.
Then you should perform the commands I gave you (so in putty window) to see whys the nwsp2 doesn't mount.

I think I understood what you wanted but that it wouldn't work because I think you misunderstood me to start with. But I'm not going to ignore the person trying to help me.

I've sshd to the NAS and just checked and I'm still getting
[690758.580825] hub 1-0:1.0: unable to enumerate USB device on port 1

Code: Select all
fdisk -l gives

Disk /dev/mtdblock0: 0 MB, 512000 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock0 doesn't contain a valid partition table

Disk /dev/mtdblock1: 0 MB, 4096 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock1 doesn't contain a valid partition table

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1          65      514048+ 83 Linux
Partition 1 does not end on cylinder boundary
/dev/sda2              65         129      514048  83 Linux
Partition 2 does not end on cylinder boundary
/dev/sda3             129         193      514048  82 Linux swap
Partition 3 does not end on cylinder boundary
/dev/sda4             193       19458   154747735+  5 Extended
Partition 4 does not end on cylinder boundary
/dev/sda5             193         293      803200+ 83 Linux
/dev/sda6             293         294        8192  83 Linux
/dev/sda7             294         359      524288  83 Linux
/dev/sda8             359       19458   153407959  83 Linux



I've checked and I dont have a sdb. There are several sdbN
Code: Select all
root@moviestore:/ # ls -la /dev/sd*
brw-rw----  1 root root 8,  0 2008-01-03 21:06 /dev/sda
brw-rw----  1 root root 8,  1 2008-01-03 21:06 /dev/sda1
brw-rw----  1 root root 8,  2 2008-01-03 21:06 /dev/sda2
brw-rw----  1 root root 8,  3 2014-01-03 00:28 /dev/sda3
brw-rw----  1 root root 8,  4 2008-01-03 21:06 /dev/sda4
brw-rw----  1 root root 8,  5 2008-01-03 21:06 /dev/sda5
brw-rw----  1 root root 8,  6 2008-01-03 21:06 /dev/sda6
brw-rw----  1 root root 8,  7 2008-01-03 21:06 /dev/sda7
brw-rw----  1 root root 8,  8 2013-10-02 01:17 /dev/sda8
brw-rw-rw-  1 root root 8,  9 2013-08-09 20:22 /dev/sda9
brw-r--r--  1 root root 8, 18 2008-01-03 21:06 /dev/sdb2
brw-r--r--  1 root root 8, 19 2008-01-03 21:06 /dev/sdb3
brw-r--r--  1 root root 8, 20 2008-01-03 21:06 /dev/sdb4
brw-r--r--  1 root root 8, 21 2008-01-03 21:06 /dev/sdb5
brw-r--r--  1 root root 8, 22 2008-01-03 21:06 /dev/sdb6
brw-r--r--  1 root root 8, 23 2008-01-03 21:06 /dev/sdb7



Code: Select all
root@moviestore:/ # usb-devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=03.09
S:  Manufacturer=Linux 3.9.5 ehci_hcd
S:  Product=Marvell Orion EHCI
S:  SerialNumber=orion-ehci.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
root@moviestore:/ #


The disk is not being recognised by the NAS for some reason, which I'm guessing is down to something in the kernel or one of the modules.
Just for giggles I'm building a Ubuntu 12.04 USB boot disk to see if that will recognise and mount it.

Rafe
rafesl
Donator VIP
Donator VIP
 
Posts: 39
Joined: Mon Jul 16, 2012 11:48 am

Re: New USB Disk Wont mount

Postby Jocko » Fri Jan 10, 2014 11:03 pm

Hi rafesl
Seem that several people are the same issue with hub device (make a google search "hub 1-0:1.0: unable to enumerate USB")

So you should have other lines in the dmesg that could help fvdw...
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: New USB Disk Wont mount

Postby fvdw » Fri Jan 10, 2014 11:16 pm

i see
I googled your message "unable to enumerate USB device on port 1"

I found that ehci_hcd could be the problem for some devices or usb/sata adapaters
Unloading the ehci_hcd module is possible but then you will not be able to use the usb port , I guess we need then an alternative module. Need to have closer look

---edit
seems the xhci_hcd module could be a solution, that supports usb 3.0. Reverting back to ohci_hcd is no option tht supports only usb 1.1

I will compile it
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: New USB Disk Wont mount

Postby fvdw » Fri Jan 10, 2014 11:43 pm

I compiled it and it loads, but it doesn't detect the usb hub inside the nwsp2, probably because it isn't usb 3.0 compatible. Its a usb 2.0 hub

Seems ubuntu also use ehci driver (2.0)
an 8 23:11:03 ubuntu kernel: [ 638.191121] usb 1-1.2: reset high-speed USB device number 3 using ehci-pci
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

PreviousNext

Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 3 guests