Page 1 of 11

15.1 and External USB disk docking station

PostPosted: Thu Feb 20, 2014 12:29 pm
by mdi
Hi Guys,
I've just successfully upgraded to v15.1 and I love it, even if it seems a bit slower now on my NS2.

I bought an external docking station on Amazon, Inateck FDU3C-2 USB 3.0 2 bay, not sure the link is visible outside Italy (http://www.amazon.it/Inateck-FDU3C-2-al ... ck+usb+3.0).

I noticed that it perfectly works pluggin it on the front USB of my NAS, when disks are partitioned as NTFS. If I format them to ext4, the drives are not recognized at all.
I didn't try ext3 as it apparently takes ages to format (or create the filesystem?).

Any idea about something related with USB disks formatted with ext4?
Now I reverted back to NTFS, but I'd like to use ext4.

Thanks a lot,
MDI

Re: 15.1 and External USB disk docking station

PostPosted: Thu Feb 20, 2014 1:29 pm
by Jocko
Hi mdi,

if I understand currently the usb disks with ext4 filesystem fails to mount. Maybe I have to do some changes in the mount script ,and I need some outputs. So could you post these:
Code: Select all
/sbin/fdisk -l /dev/sdx
(change x by the right letter)
Code: Select all
/sbin/gdisk -l /dev/sdx
and on the data partition
Code: Select all
/sbin/vol_id -t /dev/sdxn


Currently, the script should allow this : it tries to mount any linux partition (code 83/8300) formatted: ext2, ext3, ext4

Re: 15.1 and External USB disk docking station

PostPosted: Thu Feb 20, 2014 2:02 pm
by mdi
Hi Jocko,
thank you for your fast reply! Unfortunately I cannot directly check now, as I'm working in my office. Tonight I will be able to write you again. Sorry about that, especially because you have been so fast!

L8'er and cheers,
MDI

Re: 15.1 and External USB disk docking station

PostPosted: Thu Feb 20, 2014 6:05 pm
by Jocko
Maybe an explanation...

I create an ext4 usb drive and indeed the script failed to mount the usb drive.

I noted that vol_id see my usb drive as an ext3 usb drive ! and so the mount command is wrong.

Could you confirm this point?

Code: Select all
root@Acrab:/usr/sbin # file -sL /dev/sem1
/dev/sem1: Linux rev 1.0 ext4 filesystem data, UUID=cb145ae3-368b-4b9f-9ca0-6f5e7b533365 (extents) (large files) (huge files)

root@Acrab:/usr/sbin # vol_id -t /dev/sem1
ext3

So need to see why vol_id returns a wrong file system type :scratch

Re: 15.1 and External USB disk docking station

PostPosted: Thu Feb 20, 2014 6:57 pm
by mdi
Hi Jocko, I'm so sorry, but i will be home late. I will try to confirm later.

So many thanks for investigating on your own, very kind of you.

Cheers,
MDI

Re: 15.1 and External USB disk docking station

PostPosted: Thu Feb 20, 2014 7:02 pm
by Jocko
do not worry, I can easily wait :lmao

Re: 15.1 and External USB disk docking station

PostPosted: Thu Feb 20, 2014 10:33 pm
by Jocko
Finally, Fvdw and me worked on this vol_id issue and now it gets the right type values.

Attached a patch, to install it use the patch upload menu by the usual way.

Thank to test it.

Re: 15.1 and External USB disk docking station

PostPosted: Thu Feb 20, 2014 11:16 pm
by mdi
Hi Jocko, finally I was able to test it. And I found something curious. On the docking station I have 2 bays, so I had two NTFS 2TB disks. I reformatted one of those to ext4.

When I plugged the dosking station with both disks (NTFS+ext4) I got the following:
Code: Select all
root@nas:/ # file -sL /dev/sdd1
/dev/sdd1: x86 boot sector, code offset 0x52, OEM-ID "NTFS    ", sectors/cluster 8, reserved sectors 0, Media descriptor 0xf8, heads 255, hidden sectors 34, dos < 4.0 BootSector (0x80)
root@nas:/ # file -sL /dev/sdd2
/dev/sdd2: ERROR: cannot open `/dev/sdd2' (No such file or directory)

But then I tried to remove the NTFS disk and only leave the ext4 one:
Code: Select all
root@nas:/ # file -sL /dev/sdd1
/dev/sdd1: Linux rev 1.0 ext4 filesystem data, UUID=2f9bccfa-204f-4c96-ae23-8f4e8d90a91d, volume name "data2" (extents) (large files) (huge files)
root@nas:/ # vol_id -t /dev/sdd1
ext3

So, same results as in your case.

I will now install the patch and let you know.

Thanks,
MDI

Re: 15.1 and External USB disk docking station

PostPosted: Thu Feb 20, 2014 11:44 pm
by mdi
Hi guys,
good and bad news.

The good one is that you're great! Within the same day you posted me a patch to solve the issue about the filesystem! :applause :applause

I could access the ext4 disk from the NAS now.

The bad news is that I only see 1 of the 2 disks I have in my docking station, while I was able to access both disks when formatted to NTFS.
I suspect that this may be due to the way they are formatted and the docking station that maybe filters the requests somehow...
Anyway, when connecting to the NAS, I see 1 disk, if I just move the cable and connect to the PC (running Linux Mint live cd) I immediately see both disks.... :scratch

I will make further tests and let you know... Maybe in the following days.

Thanks a lot for your efforts of today!! Great work!! :applause :applause :applause

Re: 15.1 and External USB disk docking station

PostPosted: Fri Feb 21, 2014 12:00 am
by mdi
Maybe I understood.
Before I had 1 disk formatted with MBR, the other with the UUID partition table, both with 1 partition ext4. I could only see one of them and I supposed it was the one with MBR.

Now I formatted the two disks with UUID PT and the nas doesn-t recognize any of them.
But this is the output with the commands you suggested:
Code: Select all
root@nas:/ # file -sL /dev/sdb1
/dev/sdb1: Linux rev 1.0 ext4 filesystem data, UUID=fdb56598-ff00-44db-8d92-f73c68bec11a, volume name "data1" (extents) (large files) (huge files)
root@nas:/ # file -sL /dev/sdc1
/dev/sdc1: Linux rev 1.0 ext4 filesystem data, UUID=df18f6da-a400-4551-9795-2f6afaab4a54, volume name "data2" (extents) (large files) (huge files)


Maybe I can try formatting with MBR, but it takes a wile to me, so, unless you have an idea from these info, I will try tomorrow.

Ah, this is the vol_id output:
Code: Select all
root@nas:/ # vol_id /dev/sdb1
ID_FS_USAGE=filesystem
ID_FS_TYPE=ext4
ID_FS_VERSION=1.0
ID_FS_UUID=fdb56598-ff00-44db-8d92-f73c68bec11a
ID_FS_UUID_ENC=fdb56598-ff00-44db-8d92-f73c68bec11a
ID_FS_LABEL=data1
ID_FS_LABEL_ENC=data1
root@nas:/ # vol_id /dev/sdc1
ID_FS_USAGE=filesystem
ID_FS_TYPE=ext4
ID_FS_VERSION=1.0
ID_FS_UUID=df18f6da-a400-4551-9795-2f6afaab4a54
ID_FS_UUID_ENC=df18f6da-a400-4551-9795-2f6afaab4a54
ID_FS_LABEL=data2
ID_FS_LABEL_ENC=data2


Thanks,
MDI