Concerning Cubox, I'd like to get your help 投稿者:BK 投稿日:2013/05/18(Sat) 14:20 No.2818
Dear kubota-san,
My name is BK living in the Seattle, US. I have small audio system.
I saw your blog with deep impression, especially for Cubox. It is really small size, but descried in other blog like very nice sound.
You also highly evaluated as good machine.
I am interested in it and ordered Cubox pro even though I haven't knowledge about Linux.
It was delivered to me some days ago. I cured your image(cubox-audio-130303.img) to microSD card and login using putty with root/cubox.
Now I have to mount my 500GB USB hard disk that contains music, but I have a problem in here.
I created directory(/mnt/usb01) to be mounted... but I couldn't mount my USB hard disk.
I spent several days reading your whole blog for Cubox and looking up Google for associated information, but realized really impossible for me to solve it.
So, I'd like to know How to mount it at cubox pro.
It will be deeply appreciated if you comment or direct me for it.
Below is for your information…. --------------------------------------------------------------------------------------- Created directory was root@cubox:~/mnt/usb01# ---------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------- I performed fdisk -l, then following message is showing. root@cubox:~/mnt/usb01# fdisk -l
ディスク /dev/mtdblock0: 4 MB, 4194304 ãƒã‚¤ãƒˆ ヘッド 255, セクタ 63, ゕリンダ 0, åˆè¨ˆ 8192 セクタ Units = セクタ数 of 1 * 512 = 512 ãƒã‚¤ãƒˆ セクタサイズ (è«–ç† / 物ç†): 512 ãƒã‚¤ãƒˆ / 512 ãƒã‚¤ãƒˆ I/O サイズ (æœ€å° / 推å\¨): 512 ãƒã‚¤ãƒˆ / 512 ãƒã‚¤ãƒˆ ディスク識åˆ\å­: 0x00000000
ディスク /dev/mtdblock0 ã¯æ­£å¸¸ãªãƒ‘ーティゕョンテーブルをå«ã‚“ã§ã„ã¾ã›ã‚“
ディスク /dev/mmcblk0: 7948 MB, 7948206080 ãƒã‚¤ãƒˆ ヘッド 4, セクタ 16, ゕリンダ 242560, åˆè¨ˆ 15523840 セクタ Units = セクタ数 of 1 * 512 = 512 ãƒã‚¤ãƒˆ セクタサイズ (è«–ç† / 物ç†): 512 ãƒã‚¤ãƒˆ / 512 ãƒã‚¤ãƒˆ I/O サイズ (æœ€å° / 推å\¨): 512 ãƒã‚¤ãƒˆ / 512 ãƒã‚¤ãƒˆ ディスク識åˆ\å­: 0x000efe1b
デãƒã‚¤ã‚¹ ブート 始点 終点 ブロック Id ゕステム/dev/mmcblk0p1 * 2048 249855 123904 83 Linux /dev/mmcblk0p2 249856 3516415 1633280 83 Linux /dev/mmcblk0p3 3516416 7030783 1757184 83 Linux
Disk /dev/sda: 499.4 GB, 499405291520 bytes ヘッド 255, セクタ 63, ゕリンダ 60715, åˆè¨ˆ 975400960 セクタ Units = セクタ数 of 1 * 512 = 512 ãƒã‚¤ãƒˆ セクタサイズ (è«–ç† / 物ç†): 512 ãƒã‚¤ãƒˆ / 512 ãƒã‚¤ãƒˆ I/O サイズ (æœ€å° / 推å\¨): 512 ãƒã‚¤ãƒˆ / 512 ãƒã‚¤ãƒˆ ディスク識åˆ\å­: 0x00021968
デãƒã‚¤ã‚¹ ブート 始点 終点 ブロック Id ゕステム/dev/sda1 2048 975400959 487699456 7 HPFS/NTFS/exFATC
(Yes, some letters are broken.) -----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------- If I get in /etc/fstab, then following is showing. # UNCONFIGURED FSTAB FOR BASE SYSTEM #//debian/public/music /music cifs username=root,password=,uid=mpd,file_mode=0666,dir_mode=0766,iocharset=utf8,rsize=130048,wsize=4096 0 0 ------------------------------------------------------------------------------------------------
How can I change the above /etc/fstab to mount usb harddisk?
Best Regards,
Re: Concerning Cubox, I'd like to get your help - yo 2013/05/18(Sat) 16:53 No.2819
Hi BK
My image is tuned in Japanese and your Putty is tuned in English. Therfore I couldn't read your pasted message in this board. They are not Japanese, only computer codes. So first you had better change locale in English. Please enter following locale commands from Putty cosole. LC_MESSAGES=POSIX LANG=C.UTF-8
And about mounting your HD, please enter mount /dev/sda1 /mnt After this, confirm whether it has been mounted ls /mnt Please copy and paste putty's messages in my board.
Regards. yo
Re: Concerning Cubox, I'd like to get your help - BK 2013/05/20(Mon) 02:27 No.2820
Thanks a lot. Kubota-san, Now I can read Putty without broken chrackter thanks to your comments, LC_MESSAGES=POSIX / LANG=C.UTF-8
Also, I could mount my USB harddisk using your commented command,
mount /dev/sda1 /mnt
And, I could check if folders in my USB harddisk were mounted or not using following command. ls /mnt
Following was the results of above commands....
root@cubox:~# mount /dev/sda1 /mnt mount: warning: /mnt seems to be mounted read-only. root@cubox:~# ls /mnt $RECYCLE.BIN Music RECYCLER System Volume Information
Yes, harddisk data were shown, and clearly mounted even though it was under read-only status.
However, I have a problem.
GMAC/MPaD didn't load music folders and files. I checked if GMAC/MPaD were clearly connected to cubox. They were connected to it, but they couldn't load music files.
I felt GMAC and MPad didn't acknowledge USB harddisk. Are there anything more to do ?
I really appreciate your help.
Regards,
BK
Re: Concerning Cubox, I'd like to get your help - yo 2013/05/20(Mon) 20:11 No.2821
Hi BK
You had better edit /root/.bashrc to mount and set locale automatically. Enter from putty console nano /root/.bashrc and add followig lines at the last line. LC_MESSAGES=POSIX LANG=C.UTF-8 mount /dev/sdb1 /mnt
After this, please paste the result of following commands. ls -la /mnt ls -la /mnt/Music If the lines of second command are over 10, paste 10 lines at the first.
Re: Concerning Cubox, I'd like to get your help - BK 2013/05/21(Tue) 08:30 No.2822
Hi Kubota-san,
I applied your comments, but there was one thing I changed from your mount comments.
The change was from "mount /dev/sdb1 /mnt" to "mount /dev/sda1 /mnt" because I had an error message when I used sdb1 in the mount command. (I pasted fdisk -l result below)
The results from login to la -la /mnt/Music command were pasted below...
login as: root root@192.168.1.9's password: Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.6.9-rt21_CuboxAudioRTuned+ armv7l)
* Documentation: https://help.ubuntu.com/ mount: warning: /mnt seems to be mounted read-only. root@cubox:~# ls -la /mnt total 28 dr-x------ 1 root root 4096 Dec 28 14:41 $RECYCLE.BIN dr-x------ 1 root root 8192 Apr 28 17:58 . drwxr-xr-x 23 root root 4096 May 15 15:05 .. dr-x------ 1 root root 4096 May 13 15:01 Music dr-x------ 1 root root 4096 Sep 3 2011 RECYCLER dr-x------ 1 root root 4096 Apr 1 14:59 System Volume Information root@cubox:~# ls -la /mnt/Music total 260 dr-x------ 1 root root 4096 May 13 15:01 . dr-x------ 1 root root 8192 Apr 28 17:58 .. dr-x------ 1 root root 4096 Mar 31 09:44 Aging dr-x------ 1 root root 32768 May 13 16:11 DG111 dr-x------ 1 root root 0 May 13 15:00 Guitar dr-x------ 1 root root 65536 Mar 31 10:14 Jazz dr-x------ 1 root root 8192 May 13 15:01 K-Song dr-x------ 1 root root 8192 Mar 31 10:09 POP dr-x------ 1 root root 16384 May 13 16:27 Piano dr-x------ 1 root root 65536 May 10 14:03 Symphony dr-x------ 1 root root 4096 Mar 31 10:03 Test_File dr-x------ 1 root root 49152 May 14 15:28 ViolinConcerto_CelloConcerto
In order to remove any hiding mistake and for your information, I also pasted the contents of /etc/fstab and fdisk -l.
------------------------------------------- nano /etc/fstab
# UNCONFIGURED FSTAB FOR BASE SYSTEM #//debian/public/music /music cifs username=root,password=,uid=mpd,file_mode=0666,dir_mode=0766,iocharset=utf8,rsize=130048,wsize=4096 0 0 ------------------------------------------------------
------------------------------------------------------ root@cubox:~# fdisk -l
Disk /dev/mtdblock0: 4 MB, 4194304 bytes 255 heads, 63 sectors/track, 0 cylinders, total 8192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000
Disk /dev/mtdblock0 doesn't contain a valid partition table
Disk /dev/mmcblk0: 7948 MB, 7948206080 bytes 4 heads, 16 sectors/track, 242560 cylinders, total 15523840 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000efe1b
Device Boot Start End Blocks Id System /dev/mmcblk0p1 * 2048 249855 123904 83 Linux /dev/mmcblk0p2 249856 3516415 1633280 83 Linux /dev/mmcblk0p3 3516416 7030783 1757184 83 Linux
Disk /dev/sda: 499.4 GB, 499405291520 bytes 255 heads, 63 sectors/track, 60715 cylinders, total 975400960 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00021968
Device Boot Start End Blocks Id System /dev/sda1 2048 975400959 487699456 7 HPFS/NTFS/exFAT ------------------------------------------------------
Is there any necessaity of change for the music directory? I have not changed the location from initial data. music_directory "/var/lib/mpd/music"
(In the GMPC, only "music" and "radio" folders are showing and no music files are loaded.)
I really appreciate your help.
Best Regards,
BK
Re: Concerning Cubox, I'd like to get your help - kid 2013/05/21(Tue) 10:15 No.2823
Hello BK
Now you can see your music directories in /mnt/Music directory. And you have a music_directory definition in /etc/mpd.conf as "/var/lib/mpd/music". So what you have to do is ether one of these, 1.edit (using nano or any other editor) /etc/mpd.conf so that 'music_directory' points "/mnt/Music". # nano /etc/mpd.conf --> (edit "/var/lib/mpd/music" to "/mnt/Music") --> CTL-O --> Y --> CTL-X --> # /etc/init.d/mpd restart 2.make a (symbolic) link to let "/var/lib/mpd/music" means "/mnt/Music". # ln -s /mnt/Music /var/lib/mpd/music 3.change your mount point to fit to the mpd definition. # umount /mnt --> # mount /dev/sda1 /var/lib/mpd/music
In my mpd.conf, I have the definition of music_directory as "/mnt/music" and two mount points inside /mnt/music. That's because I have two NAS drives and mpd alows only one music_directory. If you have only one drive for music, 3rd way maybe the easiest way.
Enjoy your music kid
Re: Concerning Cubox, I'd like to get your help - BK 2013/05/21(Tue) 15:38 No.2825
Thanks 'kid' for your comments and help.
I tried No1 and No3, but still GMPC didn't load music files for both(No1 and No3).
In the Putty, folders are blue colored and music files are cyan colored.
By the way, I found one thing that if space is included inside folder name, it seems to acknowledge each seperate folders like below...
------------------------------------------------ root@cubox:~# la -al /mnt/Music/POP total 168 dr-x------ 1 root root 8192 Mar 31 10:09 . dr-x------ 1 root root 4096 May 13 15:01 .. dr-x------ 1 root root 12288 Nov 22 23:33 Bee Gees - Best Of The Best (2011) dr-x------ 1 root root 65536 Mar 29 12:17 Dancem Hits Favorite Spring 2012 dr-x------ 1 root root 8192 Mar 31 10:00 Frank Sinatra - New York New York_ His Greatest Hits dr-x------ 1 root root 0 Mar 11 10:32 John Denver dr-x------ 1 root root 4096 Mar 29 12:18 John_Denver_Christmas Like a Lullaby dr-x------ 1 root root 4096 Mar 29 12:18 Lee Eun Mee The Best Collection 2000~2 dr-x------ 1 root root 4096 Mar 29 12:19 Lee Eun Mee Twelve Songs dr-x------ 1 root root 8192 Mar 29 12:19 Nuforce-Audio-Concept-Demo-WAV dr-x------ 1 root root 4096 Nov 22 23:38 Rod Stewart - Merry Christmas, Baby (2012) [FLAC] vtwin88cube dr-x------ 1 root root 8192 Mar 31 10:09 Sara_Brightman_Best dr-x------ 1 root root 8192 Mar 29 12:22 [FLAC]Barb Jungr - Man In The Long Black Coat (Linn.2011) 24-96 Studio Master dr-x------ 1 root root 4096 Mar 29 12:23 [FLAC]Barb Jungr - Waterloo Sunse 24-44 dr-x------ 1 root root 20480 Mar 31 09:59 [FLAG]Norah Jones - Come Away With Me dr-x------ 1 root root 8192 Mar 29 12:23 [MP3]Aled Jones - Reason To Believe..al root@cubox:~# la -al /mnt/Music/POP/Lee Eun Mee Twelve Songs ls: cannot access /mnt/Music/POP/Lee: No such file or directory ls: cannot access Eun: No such file or directory ls: cannot access Mee: No such file or directory ls: cannot access Twelve: No such file or directory ls: cannot access Songs: No such file or directory root@cubox:~# la -al /mnt/Music/POP/Sara_Brightman_Best total 88956 dr-x------ 1 root root 8192 Mar 31 10:09 . dr-x------ 1 root root 8192 Mar 31 10:09 .. -r-------- 2 root root 7695801 Aug 19 2007 01 - A Question of Honour Part.mp3 -r-------- 2 root root 5914668 Aug 19 2007 02 - Heaven Is Here.mp3 -r-------- 2 root root 5695866 Aug 19 2007 03 - Who Wants to Live Forever (with the London Symphony Orchestra).mp3 -r-------- 2 root root 5944134 Aug 19 2007 04 - Time to Say Goodbye (with Andrea Bocelli).mp3 --------------------------------------------------
Best Regards,
BK
Re: Concerning Cubox, I'd like to get your help - kid 2013/05/21(Tue) 16:34 No.2826
Hi BK One fundemental question
Did you issue 'Server' -> 'Update MPD Database' on GMPC? I don't know about the automatic update , but Database update needs some munites, not a few seconds. Let the server update the data-base and wait for some minutes.
My music directories and music files are containing spaces in their names. To access such files from linux, use '"' like thisway.
root@cubox:/mnt/music/nas1/CD# cd "Alfred Brendel" root@cubox:/mnt/music/nas1/CD/Alfred Brendel# ls -al 合計 0 drwxrw-rw- 2 mpd root 0 3月 15 21:21 . drwxrw-rw- 2 mpd root 0 3月 15 22:59 .. drwxrw-rw- 0 mpd root 0 3月 15 21:22 Beethoven Piano Sonatas Op. 27, 13, 57 - Brendel drwxrw-rw- 0 mpd root 0 3月 15 21:21 Schubert Improvvisi, Op. 90 & Op. 142 root@cubox:/mnt/music/nas1/CD/Alfred Brendel#
Sorry for japanese characters, they are copied directly.
kid
Re: Concerning Cubox, I'd like to get your help - kid 2013/05/21(Tue) 16:56 No.2827
Here are samples how my GMPD looks like. http://www.monolyth.info/GMPC1.jpg To see details you need to hit [+] some minutes after DB update http://www.monolyth.info/GMPC2.jpg
Re: Concerning Cubox, I'd like to get your help - yo 2013/05/21(Tue) 19:45 No.2828
Hi BK
> The change was from "mount /dev/sdb1 /mnt" to "mount /dev/sda1
You are right. It is my typing mistake.
The reason why you cannot access /mnt/music directory from MPD and GMPC is permission problem. Please change permissions /mnt/music as following. chmod -R 544 /mnt/music It means all users can read(access) directories and files under /mnt/Music. I think this will solve your problem but if not, please ask here.
Re: Concerning Cubox, I'd like to get your help - kid 2013/05/21(Tue) 22:56 No.2834
実際にcuboxにUSB-HDを接続してみました。NTFSフォーマットの120GBのドライブです。 BKの話と同様に seems to be mounted read-only となります。 で、マウントポイント自体のパーミッションが 500 (dr-x------) ですからか、chmodを実行しても(しようとしても) 544 になりません。 ただ、readonlyであっても、linuxからデータの追加をしないなら読めさえすれば良い筈なんですけどね。
Re: Concerning Cubox, I'd like to get your help - kid 2013/05/21(Tue) 23:23 No.2836
で、別スレッドでやっているshuttleのvoyageに同じUSBドライブを接続(移動)してみました。 mount した時に"The file system wasn't safely closed on Windows. Fixing."とメッセージが出ましたが、 GMPCを接続したら、Databaseの更新も音出しも正常に出来ました。 やはりcuboxに問題があるみたいです。なお、当方のcuboxは3.8のカーネルに変更したものです。
Re: Concerning Cubox, I'd like to get your help - kid 2013/05/22(Wed) 01:07 No.2838
I brought USB-HD formatted by NTFS to cubox and tryed to play music. But, yes things went exactly as BK says. Then I prepared another USB drive formatted by FAT32. This one acts as expected, I could hear music. To solve this problem, I think we need more time unless somebody knows the way.
kid
Re: Concerning Cubox, I'd like to get your help - BK 2013/05/22(Wed) 13:57 No.2841
Hi kid, Thanks for your fundametal point checkup. Yes, it can sometimes solve a problem. In here, however, I have alway performed SERVE->Update MPD Database everytime of mpd update.
Hi Kubota-san, I pasted below the result of "ls -al /mnt/music" after perfromed of "chmod -R 544 /mnt/music". (When I executed the command, music folder pass quickly went through on the putty window. Following is the last line for your information... "chmod: changing permissions of `/var/lib/mpd/music/Music/ViolinConcerto_CelloConcerto/[WMA]Piazzolla Lovers Tango/15 Verano Porteno.wma': Read-only file system")
root@cubox:~# ls -la /mnt/music total 260 dr-x------ 1 root root 4096 May 13 15:01 . dr-x------ 1 root root 8192 Apr 28 17:58 .. dr-x------ 1 root root 4096 Mar 31 09:44 Aging dr-x------ 1 root root 32768 May 13 16:11 DG111 dr-x------ 1 root root 0 May 13 15:00 Guitar dr-x------ 1 root root 65536 Mar 31 10:14 Jazz dr-x------ 1 root root 8192 May 13 15:01 K-Song dr-x------ 1 root root 8192 Mar 31 10:09 POP dr-x------ 1 root root 16384 May 13 16:27 Piano dr-x------ 1 root root 65536 May 10 14:03 Symphony dr-x------ 1 root root 4096 Mar 31 10:03 Test_File dr-x------ 1 root root 49152 May 14 15:28 ViolinConcerto_CelloConcerto
GMPC/MPad still do not load music files.
Best Regards,
BK
|