Bekijk de volledige versie : Syntax for a drive on the 2nd USB port
I have an USB flash drive connected to the upper USB port of my router. In scripts, it's referred to as /dev/discs/disc0/...
If I connect another disk to the 2nd USB port, will it be at /dev/discs/disc1/... or some other designation?
Apart from that, are there any specs (or does someone know by experience) about how much you can connect to these USB ports? I mean, can the router for instance handle one or two 2.5" external drives with no extra power supply?
(Or would an external 3.5" drive _with_ an external power supply be a healthier choice?)
If I connect another disk to the 2nd USB port, will it be at /dev/discs/disc1/... or some other designation?
Yes, however, which of the two will be disc0, and which one disc1 will be AFAIK decided by PnP every time anew... In principle it should be no problem to write script which will make decision depending on the content and remount discs in reproducible mount points.
Apart from that, are there any specs (or does someone know by experience) about how much you can connect to these USB ports? I mean, can the router for instance handle one or two 2.5" external drives with no extra power supply?
no. The external PSU is rated as 2A@5V. Typical 2.5" hdd consumes ~0.5A, but during start up some models may consume up to 1A. Don't forget that the router itself needs let say not less than 1-1.2A...
(Or would an external 3.5" drive _with_ an external power supply be a healthier choice?)
So, IMHO, even in the case of 2.5" hdd external PSU or external powered USB hub is definitely a healthier choice.
Yes, however, which of the two will be disc0, and which one disc1 will be AFAIK decided by PnP every time anew... In principle it should be no problem to write script which will make decision depending on the content and remount discs in reproducible mount points.
Such as e.g. putting different plain-text files on the partitions, which would serve the scripts to distinguish between the drives/partitions?
So even if this line
insmod scsi_mod && insmod sd_mod && insmod usb-storage
is the one that actually connects the plugged-in USB drive(s), there is no guarantee that disc0 and disc1 would be the same always?
Such as e.g. putting different plain-text files on the partitions, which would serve the scripts to distinguish between the drives/partitions?
Yes, something like this.
So even if this line
insmod scsi_mod && insmod sd_mod && insmod usb-storage
is the one that actually connects the plugged-in USB drive(s), there is no guarantee that disc0 and disc1 would be the same always?
This line has no magics in it, it just loads usb drivers. Then the usb devices attached to the box are identified by pnp and somehow enumerated.
Well, to say frankly I haven't tested such situation with 2 hdds, however it is my understanding of usb functionality. Probably, Oleg could tell you for sure.