View unanswered posts | View active topics It is currently Mon May 20, 2013 4:21 am



This topic is locked, you cannot edit posts or make further replies.  [ 50 posts ]  Go to page 1, 2, 3, 4, 5  Next
 Major Problem - Drive Mapping Inconsistent 
Author Message

Joined: Thu Jan 05, 2012 12:40 am
Posts: 808
Location: Brisbane, AU
Post Major Problem - Drive Mapping Inconsistent
DRIVE MAPPING PROBLEM:

I have confirmed that this problem exists in firmware r6629, r7317 and r7716 by personal testing so any suggestions to change firmware will fall on deaf ears. Also "It's REALTEK's fault" will be treated with the disdain that it deserves. I have "SwapMount" installed to improve the players performance (very successful) but this problem occurs with or without it installed on ALL firmware versions.

I have posted this in the Mini 2 'Technical Issues & Support" sub-forum but may have serious connotations for other players and creates problems for applications such as YAMJ.

Theplayer normally maps the permanently attached drives as Drive D: (Jukebox), Drive E: (Television) and Drive G: (Movies) on the player which translates to \\Playonhd\usb1; \\Playonhd\usb2 ;\\Playonhd\usb3 for Windoze (Win7, Ultimate 32)

About 50% of the time when the player is rebooted or powered up, the drives change their letters/usb configuration on the player with the drives mapping to D: (Movies), F: (Jukebox) & G: (Television) and also in the incorrect partition order. This then cause problems with the Widoze shares having the wrong content.

This also cause problems with my YAMJ Jukeboxes which rely on the correct drive mapping.

I can immediately identify this in file manager as I have put a unique JPG in the root of each drive which reflects each drive's usage.

I'll lay out my configuration so that all is clear.

I have two drives, a Seagate Flextor 2TB always plugged int the bottom port of the Mini 2 (sda) and a Seagate Flextot 1TB always plugged into the top port of the Mini 2. Both drives are externally powered and there is no USB hub installed.

The Flextor 2Tb has three partitions in this order:-

1Gb Partition = Linux Swapfile (Used for performance improvement of player)
10GB Partition = Ext3 = Always /tmp/usbmounts/sda6 = Jukebox Content
1.76TB Partition = Ext3 = Always /tmp/usbmounts/sda7 = Television Series Content

The Flextor 1TB has 2 partitions in this order:-
1GB Partition = Linux Swapfile (Used for performance improvement of player)
930GB = Ext3 = Always /tmp/usbmounts/sdb6 = Movie Content

The power on sequence is always the same as I have programmed a Logitech remote to do this for me and the wall power has a remote controlled power switch.

Saves me getting up off my lazy a%#e away from the beer fridge and also saves power in the bargain.

Power on at wall to both drives and player
Wait 30 seconds
Power on player

With this configuration I would always expect the following:-

Drive C: = Allocated to the swapfile partition on SDA
Drive D: = Allocated to the Jukebox partition on SDA
Drive E: = Allocated to the Television partition on SDA
Drive F: = Allocated to the swapfile partition on SDB
Drive G: = Allocated to the Movies partition SDB

So these are my questions:

1. Can any of the Linux Gurus suggest or assist me in adding to/modifying the rcS script to ensure that the drives ar mapped correctly? Is this even possible?

Am I making a mistake in my reasoning somewhere?

2. When are AC Ryan going to do something about such problems?

It is time that they put aside all their focus on the Marketing social media B/S such as Muzee, Twitzee, YouTubeee and Wankee and focused on core problems that affect the basic operation of their players.

All responses gratefully received.
Greg

_________________
"Beer is living proof that God loves us and wants us to be happy." - Benjamin Franklin 1706-1790
"It's ALWAYS Beer o'clock" - Homer Simpson


Fri May 11, 2012 2:47 am
Profile

Joined: Tue Apr 06, 2010 1:11 pm
Posts: 190
Post Re: Major Problem - Drive Mapping Inconsistent
I can also confirm that I have the exact same problem as yours, so I am keen to hear what ACR will do about this.


Fri May 11, 2012 12:42 pm
Profile

Joined: Tue Jan 31, 2012 2:03 am
Posts: 90
Post Re: Major Problem - Drive Mapping Inconsistent
GregiBoy wrote:
I have posted this in the Mini 2 'Technical Issues & Support" sub-forum but may have serious connotations for other players and creates problems for applications such as YAMJ.

It applies to the HDD2 also.

I created a little test script but only for 2 drives, what I'll do is set 2 old hard disks and format them the same as your configuration and see if I can modify to suit and test. If I can get it work I'provide you the details of how to install it and modify rcS.
Can you provide me with a unique directory for each disk.


/usr/local/etc # cat filechck
#!/bin/ash
LOGFILE=script.log
FILE=/tmp/ramfs/volumes/D:/musicplayer
if [ -d $FILE ];
then
echo "Directory musicplayer exist." 1>>$LOGFILE
else
echo "Directory musicplayer does not exist" 1>>$LOGFILE
rm /tmp/ramfs/volumes/D:
rm /tmp/ramfs/volumes/E:
cd /tmp/ramfs/volumes
ln -s /tmp/usbmounts/sdb D:
ln -s /tmp/usbmounts/sda1 E:
/tmp/package/script/configsamba

fi

Basically what it does is to check if a directory exist on one drive, if it does everything is ok
if not swap the volumes and restart samba.
The problem is caused by samba.

_________________
Imac 19" OSX Mountain LIon 10.8
Playon HD2 Firmware_Playon!HD2_PV73700_v9.5.3.r7716. (internal Disk HFS+ Ext3).
Sd card (Ext3 + optware).
Netgear WNDR 3700 Gb Router.
Netgear 8 port Gb Switch.
Ubuntu -> Virtual Box -> OSX.
Ipad 2.
Iphone.


Fri May 11, 2012 3:32 pm
Profile

Joined: Tue Oct 05, 2010 9:35 pm
Posts: 4289
Location: Netherlands
Post Re: Major Problem - Drive Mapping Inconsistent
I do not know if the problem is caused by Samba. I have Samba switched off and yet sometimes have random drive mappings.

My findings with my Mini running 7317 after several reboots:
Toshiba hard disk (externally powered, Ext3) + Sony MicroVault USB stick (FAT32 + Linux swap):
bottom USB port gets priority, i.e. becomes C: in Network > USB and sda1 in /tmp/usbmounts

Toshiba hard disk (see above) + WD hard disk (externally powered, NTFS)
inconsistent results, though it seems that the Toshiba get priority more often than the WD.

As far as I know the drives are mounted in the DvdPlayer program, which is closed source. The original rcS calls DvdPlayer, but does not mount or remount the USB drives

_________________
Evert

Playon!HD Mini Firmware 7317 modified [192.168.178.3]
PC Windows 7-64 SP1 [192.168.178.DHCP]
PC Windows 7-64 SP1 + Virtual XP SP3 [192.168.178.DHCP]
Fritz!Box 7390 [192.168.178.1]
Seagate BlackArmor 400 4 x 3TB in RAID-5 [192.168.178.2]


Fri May 11, 2012 8:18 pm
Profile

Joined: Tue Jan 31, 2012 2:03 am
Posts: 90
Post Re: Major Problem - Drive Mapping Inconsistent
@Duivels

Thanks for this info.

@Gregiboy

I did not realize you've been so busy with the holy grail.

The problem I see at this moment that you have 2 swap partitions and in smb a partition is allocated to a drive letter, however only one swap partition is used in Linux.
It might not be a problem but some error checking might be useful.

You have modified your rcS so can can you give me the last 20 lines:
cat /usr/local/etc/rcS | tail -20

_________________
Imac 19" OSX Mountain LIon 10.8
Playon HD2 Firmware_Playon!HD2_PV73700_v9.5.3.r7716. (internal Disk HFS+ Ext3).
Sd card (Ext3 + optware).
Netgear WNDR 3700 Gb Router.
Netgear 8 port Gb Switch.
Ubuntu -> Virtual Box -> OSX.
Ipad 2.
Iphone.


Fri May 11, 2012 8:44 pm
Profile

Joined: Thu Jan 05, 2012 12:40 am
Posts: 808
Location: Brisbane, AU
Post Re: Major Problem - Drive Mapping Inconsistent
Sorry I haven't answered sooner but am away visiting family with limited internet connection.

Will provide when I'm back Wed/Thu,

_________________
"Beer is living proof that God loves us and wants us to be happy." - Benjamin Franklin 1706-1790
"It's ALWAYS Beer o'clock" - Homer Simpson


Sun May 13, 2012 11:13 pm
Profile

Joined: Tue Jan 31, 2012 2:03 am
Posts: 90
Post Re: Major Problem - Drive Mapping Inconsistent
GregiBoy wrote:
Re: Major Problem - Drive Mapping Inconsistent
Sorry I haven't answered sooner but am away visiting family with limited internet connection.

Will provide when I'm back Wed/Thu,


I did setup 2 disks formatted the same as yours.

I 've tested it and one problem comes to notice:

There are 2 situations that exist.
Situation 1
Disk1.
Swap= C: , Partition2=D: Partition3=E:
Disk2
Swap2=F:, Partition2=G:
Situation 2
Labels that are created are D:E:G:
The required situation
Disk2.
Swap=C:,Partition2=D:
Disk1.
Swap=E: Partition2=F: Partition3=G:
Labels that are created D:F:G:

Above is also applicable for the USB labels.
The disk Labels and USB labels are created by the program DVDPLayer.
The letters and USB labels are symbolic links and I can manage to change them.

The Disk letters are used by the DVDPlayer to access the drive locally.

The USB labels are used with a network connection.

For the situation access locally.
If I change the symbolic links between D F and G, D and G will work but drive F: cannot be changed It remains visible in the players USB menu . It's possible that the drive letters are stored in the DVDPlayer, as I am changing the the label within Linux the program DVDPlayer will not see this change.

For the network situation the above problem does not exist and I can manage to change the symbolic links/labels and it should work correctly.

What I did further I reformatted the Hard disk with the 2 partitions and then I can change the symbolic links.
The Volumes that are created D:E:F:G: and it does not matter which disk is first.
I can change the symbolic link because they're always be the right combination of letter.

So in general terms the symbolic links can be changed, but when having a swap partition it needs to be on both disks and the number of volumes must be equal and partition structure must be the same sequence on both disks.
e.g swap, ext3, ext3.


Is it possible to add another Ext3 partition? Size does not really matter as long as it exist.

Setup proposal
The rcS script needs to be added with one line.

I will create a small script which will test if a file exist (the swap_symbolic_links file).

The swap_symbolic_links fill will test if a directory exist on both drive and if they're in the correct order.
If one of the directory does not exist it it will quit the script. Seeing your playing around with 8 disk you would not want to change the symbolic links.

It would also be easier to update just by copying the swap_symbolic_links file.

I propose to create a directory .Disk_label_1 and .Disk_label_2. So no requirement for you to give me a directory name. The directory will also be hidden.

Another possibility to test for directory (but is really a dirty way of fixing it) is to reboot the system until the right situation exist.

I hope it is a little bit clear, it really does not matter I write it down for my own sake.

Of course it still need to be further tested.
The script is working only on a personal situation.

btw do you use any shortcuts within the player, because I have not tested that.

Well so far I got this.

Modification to th rcS the last line has been added.

Code:
echo 2 /tmp/hdd/volumes/HDD1/ > /sys/realtek_boards/misc_operations
/usr/local/etc/file_chck


Simple check to see if the script exist.

Code:
#!/bin/ash
LOGFILE=/tmp/log/script.log
FILE=/usr/local/etc/filechck
if [ -f $FILE ];
then
echo "filechck exist" 1>$LOGFILE
/usr/local/etc/filechck
fi


Actual script This can be upgraded by simply coping over it.
/ # cat /usr/local/etc/filechck
Code:
#!/bin/ash

LOGFILE=/tmp/log/script.log
DIR1=/tmp/usbmounts/sda2/.Disk_Label_1
DIR2=/tmp/usbmounts/sdb2/.Disk_Label_2
i=0
until [ -d $DIR1 ] ; do
        let i+=1 ; sleep 5
        if [ $i -ge 12 ] ; then
        echo $i 1>>$LOGFILE
        echo $DIR1 " does not exist." 1>>$LOGFILE
        break ;
        fi
done
let TIME=5*i
echo "disk wait time " $TIME " seconds," 1>>$LOGFILE
echo $DIR1 " exist" 1>>$LOGFILE
i=0
until [ -d $DIR2 ] ; do
        let i+=1 ; sleep 5
        if [ $i -ge 12 ] ; then
        echo $i 1>>$LOGFILE
        echo $DIR2 "does not  exist." 1>>$LOGFILE
        break ;
        fi
done
let TIME=5*i
echo "disk wait time " $TIME "seconds." 1>>$LOGFILE
echo $DIR2 " exist" 1>>$LOGFILE
if [ -d $DIR1 ] && [ -d $DIR2 ];
then
echo "Directories  exist"  1>>$LOGFILE

FILE=/tmp/ramfs/volumes/D:/.Disk_Label_1
if [ -d $FILE ];
then
echo $FILE "exist" 1>>$LOGFILE
else
echo $FILE "does not exist" 1>>$LOGFILE
rm /tmp/ramfs/volumes/D:
rm /tmp/ramfs/volumes/E:
rm /tmp/ramfs/volumes/G:
rm /tmp/ramfs/volumes/H:
cd /tmp/ramfs/volumes


ln -s /tmp/usbmounts/sda2 D:
ln -s /tmp/usbmounts/sda3 E:
ln -s /tmp/usbmounts/sdb2 G:
ln -s /tmp/usbmounts/sdb3 H:
/tmp/package/script/configsamba
echo "Swap disk labels complete." 1>>$LOGFILE
fi

else
echo "Not possible to swap disks labels." 1>>$LOGFILE

fi

sample of log file
/ # cat /tmp/log/script.log
filechck exist
disk wait time 35 seconds,
/tmp/usbmounts/sda2/.Disk_Label_1 exist
disk wait time 0 seconds.
/tmp/usbmounts/sdb2/.Disk_Label_2 exist
Directories exist
/tmp/ramfs/volumes/D:/.Disk_Label_1 does not exist
Swap disk labels complete.

Remember the above code is for both disk having a swap and 2 ext3 partitions.
If you want to go through with it I will make installation instructions.
Perhaps you got a spare disk to set it up so you can try it out.


JR

_________________
Imac 19" OSX Mountain LIon 10.8
Playon HD2 Firmware_Playon!HD2_PV73700_v9.5.3.r7716. (internal Disk HFS+ Ext3).
Sd card (Ext3 + optware).
Netgear WNDR 3700 Gb Router.
Netgear 8 port Gb Switch.
Ubuntu -> Virtual Box -> OSX.
Ipad 2.
Iphone.


Thu May 17, 2012 10:33 am
Profile

Joined: Thu Jan 05, 2012 12:40 am
Posts: 808
Location: Brisbane, AU
Post Re: Major Problem - Drive Mapping Inconsistent
Thanks mate for your efforts.

I just got back in so I'll try to go through this on the weekend.

Regards
Greg

_________________
"Beer is living proof that God loves us and wants us to be happy." - Benjamin Franklin 1706-1790
"It's ALWAYS Beer o'clock" - Homer Simpson


Fri May 18, 2012 12:02 am
Profile

Joined: Thu Jan 05, 2012 12:40 am
Posts: 808
Location: Brisbane, AU
Post Re: Major Problem - Drive Mapping Inconsistent
I haven't got another set of disks to try at the moment.

The actual result that I want is:-

1st disk:-

Partition 1 = Swapfile (Mount as C:)
Partition 2 = Jukebox (Mount as D:)
Partition 3 = TV Shows (Mount as E)

2nd Disk
Partition 1 = Swapfile (Mount as F:)
Partition 2 = Movies (Mount as G:)

I think this is possible from what you indicated?

Am I correct?

I'lll do a bit of testing & research.

_________________
"Beer is living proof that God loves us and wants us to be happy." - Benjamin Franklin 1706-1790
"It's ALWAYS Beer o'clock" - Homer Simpson


Fri May 18, 2012 11:59 pm
Profile

Joined: Thu Jan 05, 2012 12:40 am
Posts: 808
Location: Brisbane, AU
Post Re: Major Problem - Drive Mapping Inconsistent
Well I've struck my first problem.

I can't create a directory or file with a leading "." with Windoze.

I presume that tis is so that it is hidden when normally browsing the player.

Any thoughts/Utilities?

_________________
"Beer is living proof that God loves us and wants us to be happy." - Benjamin Franklin 1706-1790
"It's ALWAYS Beer o'clock" - Homer Simpson


Sat May 19, 2012 1:46 am
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 50 posts ]  Go to page 1, 2, 3, 4, 5  Next

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by: phpBB | Innitial forum Design by: STSoftware | Modified by: AC Ryan.