Page 1 of 2

rename SamyGo Virt. USB?

Posted: Sat Sep 24, 2011 12:34 pm
by stm999999999
Hi!

I activated my parent's C650 PVR and I put the PVR storage to the LAN, w/o any problems. But now there is a little one in using the new features:

I have SamyGO Virt. USB 1 and SamyGO Virt. USB 2 in the source list - 1 for mediaplayer samba-access to home network and 2 for the PVR.

I can write my parents a "manual" which source is for which purpose, etc. But it seems more effectiv to rename the devices to "Mediaplayer" and "Recorder" e.g.

Is there any chance to make this changes?

Re: rename SamyGo Virt. USB?

Posted: Sat Sep 24, 2011 12:49 pm
by juusso
Must recompille it...?

Re: rename SamyGo Virt. USB?

Posted: Sat Sep 24, 2011 11:47 pm
by stm999999999
apart form the fact that my last compiling was on my amiga years ago: which file would be the right one? And: Is this perhaps an improvment which would benefit more users than me?

Re: rename SamyGo Virt. USB?

Posted: Tue Oct 11, 2011 11:47 pm
by stm999999999
no one? :(

Re: rename SamyGo Virt. USB?

Posted: Sat Feb 18, 2012 10:48 am
by manitwo
Hi.

I activated succesfully the SamyGo Virt USB w/o problems.
But i also want to rename them.
Is there any easy solution. Is it possibly to edit the file 02_04_vusb.init.

FOUND=false
SAMYGODEVS=''
for i in /sys/block/sd?/device/model ; do
if [ `cat $i | grep -c "SamyGO Virt"` -gt "0" ]; then
CURDEV="`echo $i | sed 's/^\/.*\(sd.\)\/.*/\1/g'`"
SAMYGODEVS="$SAMYGODEVS /dev/$CURDEV"
if [ $FOUND = false ]; then
echo "found gadget at: $i"
dev=$CURDEV


I have three USB Devices available now in Mediaplay.

SamyGO Virt1(sdb) SamyGO Virt2(sdc) and the USB Device where SamyGo root lies, which now has no name(sda1)

Is it possible to rename "the root stick"?

thx in advance

Re: rename SamyGo Virt. USB?

Posted: Sat Feb 18, 2012 12:17 pm
by arris69
manitwo wrote:...
Is it possible to rename "the root stick"?

thx in advance
the name comes from usb gadget kernel modules so you can make changes there and recompile it. the kernel sources are on https://opensource.samsung.com/

Re: rename SamyGo Virt. USB?

Posted: Sat Feb 18, 2012 7:33 pm
by manitwo
Sorry, but i?m not familar with compiling. I know what this is, but never made it myself before. Because of that i?ll not try this on my own.
With other words: no chance for me?

thx anyway

Re: rename SamyGo Virt. USB?

Posted: Sat Feb 18, 2012 7:51 pm
by arris69
manitwo wrote:Sorry, but i?m not familar with compiling. I know what this is, but never made it myself before. Because of that i?ll not try this on my own.
With other words: no chance for me?

thx anyway
be a bit creative...
you can try to hexedit the g_file_storage.ko module...

Re: rename SamyGo Virt. USB?

Posted: Sat Feb 18, 2012 8:28 pm
by manitwo
Thx a lot arris. That was "easy" and works for me (halfway) :)

I edited the g_file_storage.ko with a hex-editor from SamyGo Virt USB to "NAS-Record". This name appears now for the two vusb devices.
But the real usb has yet no name, just space. I?m sure you know how to rename the real device. One more hint for the moment please. ;)

The next Step: Can i mount only the "NAS-Record", so that only two devices appears? "NAS-Record" and the real usb whose name "you" have to change. ;)

I want to mount my nas with my own movies to a folder on the real usb, because it is a little bit easier to navigate there. ( without nfs/IP/mountname )
Woman acceptance factor... you know? :mrgreen:

Re: rename SamyGo Virt. USB?

Posted: Sat Feb 18, 2012 8:51 pm
by arris69
manitwo wrote:Thx a lot arris. That was "easy" and works for me (halfway) :)

I edited the g_file_storage.ko with a hex-editor from SamyGo Virt USB to "NAS-Record". This name appears now for the two vusb devices.
But the real usb has yet no name, just space. I?m sure you know how to rename the real device. One more hint for the moment please. ;)
the name is hardcoded in the device and never had one in my hands where no product name where present. so i guess its a "noname" product or maybe usb3.0 device...
not really fixable.
The next Step: Can i mount only the "NAS-Record", so that only two devices appears? "NAS-Record" and the real usb whose name "you" have to change. ;)

I want to mount my nas with my own movies to a folder on the real usb, because it is a little bit easier to navigate there. ( without nfs/IP/mountname )
Woman acceptance factor... you know? :mrgreen:
if you have a real usb storage device then for what do you need the virtual one :?
make an init script where you mount your nas share into the real usb instead of the vusb init script
or change the vusb init script to not use ip/share shema just share...