USB access n share

USB access n share

Postby kaynpayn » Fri Sep 14, 2012 2:01 pm

Hi.
I'm trying to connect a regular usb hd to the front port of the ns2. This is a usb disk with 2 partitions, the first has a weird file system and the second is ext3. None are being auto mounted. which is fine for the first partition (don't want to use it here) but i would like to access the second one (ext3). So i logged via ssh and and fdisk -l tells me the ns2 is seeing the partitions as a sdb1 and sdb2 (also tells me they're ntfs for some reason). I managed to mount the sdb2 and check its contents with winscp (mount -t ext3 /dev/sdb2 /...).

This is what i'm having difficult with, i'd like to find a way of having the ns2 copy files from the internal drive to my usb disk (without the need for an extra computer copying it). And if possible mount that usb as a regular share showing up in the ns2 webgui shares (although this optional, but maybe it's needed for the copy?). Will a simple cp command from winscp work for the copy process? How do i go about having my usb show up as a share?

Thanks for your time, whoever anwsers :)
kaynpayn
 
Posts: 2
Joined: Thu Jun 28, 2012 8:05 pm

Re: USB access n share

Postby Jocko » Fri Sep 14, 2012 2:16 pm

Hi kaynpayn,

Your problem is amazing because the firmware is designed to work as you wish. So it should automatically mount the second partition. :scratch

I see perhaps an explanation if you used the usb-extras feature before?
In the usb-extras menu, do you disable the host usb port (Button "Switch USB mode host/device")?
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: USB access n share

Postby kaynpayn » Fri Sep 14, 2012 6:37 pm

Hi. No, never used it before.
autoswitch is set to manual and won't change regardless of what i do but usb mode is enabled and even says front side port.

if i understood right, when it's configured like this, it should mount a share among the others with my partitions. i wonder if it has anything to do with my disk having 2 partitions and the first one being something he can't recognize (I'm not surprised it can't, its an odd format, think it's called wbfs but i don't want it to mount anyway). maybe if it can't mount the first partition automatically skips the following ones?
kaynpayn
 
Posts: 2
Joined: Thu Jun 28, 2012 8:05 pm

Re: USB access n share

Postby fvdw » Fri Sep 14, 2012 7:18 pm

kaynpayn wrote:Hi. No, never used it before.
autoswitch is set to manual and won't change regardless of what i do but usb mode is enabled and even says front side port.

if i understood right, when it's configured like this, it should mount a share among the others with my partitions. i wonder if it has anything to do with my disk having 2 partitions and the first one being something he can't recognize (I'm not surprised it can't, its an odd format, think it's called wbfs but i don't want it to mount anyway). maybe if it can't mount the first partition automatically skips the following ones?


as long as you didn't create a disk image to be used on back side usb port to emulate usb device mode the maode is manual and front side usb is enabled.
After you create the image the buttons will work in that menu.
However this will not solve your problem as it has nothing to do with mounting the partitions.

Mounting can fail if you have used a strange name for the "label" of you usb disk. Use a labelname without characters like ' or ", just use plain letters and numbers.
(label is the name you see for the disk when it is connected windows and you view properties.)
The nas uses this name to create mount points, the characters mention will confuse the php scripts.
I often connect disks with more then one partition and they mount fine. if it encounters an unknown file system on a partition then that partition will not be mounted. Currently supported file systems are ext2/ext3, fat, fat32, ntfs

The mount points are created in the system root folder /mnt using the label name and a sequence number for the partition (you can check if they are created when accessing the nas via ssh
To make the mounts also visible as share they are also mounted in the /share/1000 folder using the same name. Furthermore the nas database is adapted to make it possible to set r/w rights per user and so on
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands


Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 2 guests