thanhtran
-
Posts
69 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
Gallery
Bug Reports
Documentation
Landing
Posts posted by thanhtran
-
-
You just need to fix your script file to get rid of the ^M.it works fine from my system
#!/bin/bash STRING="Hello World" echo $STRING
root@Tower:~# ./bashtest.sh Hello World root@Tower:~#
Hi Scottc,
It runs ok on your system right ? Something is wrong with my unRAID Bash program ?
At this point , Do I need to reinstall Bash program ?
thanks
I usually just use the file view and file edit functions in mc (Midnight Commander). If you view or edit your file I think you will find the problem.
Thanks trurl,
After download Midnight Commander then open the script I see ^M there, and after delete these characters, the script works... thanks very much. But I don't know why when I run my script to encode my video (This script worked before) now it doesn't work any more. Time to investigate !!!
-
it works fine from my system
#!/bin/bash STRING="Hello World" echo $STRING
root@Tower:~# ./bashtest.sh Hello World root@Tower:~#
Hi Scottc,
It runs ok on your system right ? Something is wrong with my unRAID Bash program ?
At this point , Do I need to reinstall Bash program ?
thanks
-
I loaded the script that you attached and it definitely has the Windows/DOS end-of-line characters. Even if you originally created it in vi it looks as if at some point you loaded it into a Windows text editor and then saved from that.I created this script by Vi .
So my BASH program in my unRAID doesn't work right ?
Could you please give me the script that work with your system ( or my simple script that it works), so I can try on my unRAID . I want to make sure unRAID Bash program not any issue, before I troubleshooting other scripts.
Thanks very much
-
You see
^M
this usually means the script was created or editting in windows notepad or wordpad.
Open it in MidnightCommander
mc
and remove all the ^M's.
Thanks for reply,
I created this script by Vi .
Thanks
-
After upgrade to new unRAID OS version 6.1.2 my Bash shell is no longer work.
I have a bash shell that it worked before in Bash environment. Yesterday, my unRAID is abnormal acting, it can not write any more even my unRAID server still has a lot of spaces. then I upgrade to newer version 6.1.2, every thing is work normal again, except my bash script does not work any more, even I create very simple program call Basictest.sh ex:
#!/bin/bash
STRING="Hello World"
echo $STRING
After run this script it gives error as:
-bash: ./Basictest.sh: /bin/bash^M: bad interpreter: No such file or directory
What is possible ? Does my Bash program is corrupted ? so what I have to do for It works again .
To isolate problem, I post my script . Please run it in your unRAID server to see it works or not ? If It works with your system. So my Bash program need to be reinstall ? to do that, what command to reinstall Bash program.
Thanks in advance
-
I changed it, but it still show the older one. Anyway, the template XML is updated on github, it's probably a caching issue somewhere....
Pducharme,
Could you please post the direct link ?
-
Well that confirms that corruption is present.
You need to rerun the reiserfsck using the --rebuild-tree option instead of the --check option. This should recover everything with any luck although there is a faint chance a file being written at the time of failure may not get recovered properly.
It would probably have been possible to recover the original 2TB disk the same way. However since you have now put the larger disk in you should recover that one as unRAID provides no way to replace a larger disk with a smaller one. Keep the 2TB disk as a backup for emergency data recovery until you are happy with the results of running the reiserfsck against the current disk.
Thank itimpi, without your help, I can not solve my problem.
-
Note that a write failure can leave some file system corruption behind, and until that is resolved the disk will continue to show up as unmountable. Doing a rebuild onto another disk does not resolve such corruption.
Are the disks physically accessible now without throwing errors? If so then the way forward would be to put the array into maintenance mode and then from a telnet/console session run a command of the form:
reiserfsck --check /dev/md4
and see what that reports (it takes some time to run). That will at least see if corruption is in fact your issue, and give suggestions for resolving it if it is.
Thank itimpi , seem all disks access ok ( I just guess, because more than 14 disks and all were high water share, It is hard to tell ). Let's me mount disks and run command line as your suggestion.
Please help me . I just finished run command line
reiserfsck --check /dev/md4
and I see the message as
root@hightower:~# reiserfsck --check /dev/md4 reiserfsck 3.6.24 Will read-only check consistency of the filesystem on /dev/md4 Will put log info to 'stdout' Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes ########### reiserfsck --check started at Sat May 23 06:43:17 2015 ########### Replaying journal: Done. Reiserfs journal '/dev/md4' in blocks [18..8211]: 0 transactions replayed Checking internal tree.. / 13 (of 15)/ 66 (of 144)/135 (of 160)block 224912409: The level of the node (0) is not correct, (1) expected the problem in the internal node occuredfinished Comparing bitmaps..vpf-10640: The on-disk and the correct bitmaps differs. Bad nodes were found, Semantic pass skipped 1 found corruptions can be fixed only when running with --rebuild-tree ########### reiserfsck finished at Sat May 23 06:53:28 2015 ###########
what do I have do next ?
-
Note that a write failure can leave some file system corruption behind, and until that is resolved the disk will continue to show up as unmountable. Doing a rebuild onto another disk does not resolve such corruption.
Are the disks physically accessible now without throwing errors? If so then the way forward would be to put the array into maintenance mode and then from a telnet/console session run a command of the form:
reiserfsck --check /dev/md4
and see what that reports (it takes some time to run). That will at least see if corruption is in fact your issue, and give suggestions for resolving it if it is.
Do I need to put 2tb old disk back at slot # 4 or do I still use new disk to check ?
-
Note that a write failure can leave some file system corruption behind, and until that is resolved the disk will continue to show up as unmountable. Doing a rebuild onto another disk does not resolve such corruption.
Are the disks physically accessible now without throwing errors? If so then the way forward would be to put the array into maintenance mode and then from a telnet/console session run a command of the form:
reiserfsck --check /dev/md4
and see what that reports (it takes some time to run). That will at least see if corruption is in fact your issue, and give suggestions for resolving it if it is.
Thank itimpi , seem all disks access ok ( I just guess, because more than 14 disks and all were high water share, It is hard to tell ). Let's me mount disks and run command line as your suggestion.
-
-
-
Hi all,
Hoped some one can help me solve problem.
1 . Last week, I try to transfer file from usb stick to my unRAID server, in middle of process copy files, the unRAID just stopped copy. I logged in unRAID , I see disk # 4 is "unformatted" , I though drive # 4 is bad, and I replace it (2tb) with large drive 3tb.
2. I pre_clear 3tb with command ./pre_clear /dev/sdo without error
3. Bring array on line.
4. Format 3tb , seem can not format it.
5. Rebuld data disk # 4, but drive # 4 still show unformatted in FW (6.12 beta)
5. take array off line, seem can not take all drives to offline state. Last option was reboot from console.
6. Upgrade FW 6RC3
7. Bring array on line.
8. Format 3tb , seem can not format it.
9. Can not bring array to offline, both FW the same problem.
10. What can I do to solve problem ? Please help me out or give instruction what I have to do next.
11. Thanks for help
-
I just liked the separation. I have /mnt/cache/docker/appdata, /mnt/cache/docker/image and /mnt/docker/downloads
Kryspy
Please confirm this directory /mnt/docker/downloads is right or wrong ? I'm confusing .
-
I already have a good Plex server, how about an OwnCloud example?
I will probably make a video soon (possibly tomorrow) that will explain how to set up any docker you want.
+ 1
-
Can I still keep my config files, by copy whole config directory , then restore it back ?
According to the Upgrade instructions in the Release announcement, you should only need to copy a few files and reboot.
Edit: By the way, I'm going to move this thread to the V6 support board soon.
Thanks you all to help me solve problem. Specially to RobJ point me to right direction to save my time and effort .
To solve this problem I have to upgrade to current version 6.0 beta 12 . After upgrade OS to 6.0.12 my unRAID works normal again, I can flush cache drive and moving files around. Next time if I want to upgrade, the first thing is upgrade OS to eliminate problem.
Again thanks for your helps.
regards,
-
Just emphasizing what he said... You are running Linux kernel 3.16.0, which was only found in UnRAID releases 6.0-beta7 and 6.0-beta8, which happen to be the 2 worst possible versions of UnRAID to use. PLEASE update as soon as possible, then check for file corruption!
Can I still keep my config files, by copy whole config directory , then restore it back ?
I'm new with linux , please help me out.
Thanks you
-
Using putty or the console, run this command ...
df /dev/md1
and post the results.
It should display something like ...
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md1 3906899292 1942327812 1964571480 50% /mnt/disk1
(My disk1 just happens to be about 50% full like yours should be)
What version of unRAID are you using? Did you try stopping and starting the array and, as a last resort, rebooting?
I know some of the 6.0 betas after supporting XFS and BTRFS did not expand a disk after a rebuild, but if you are running unRAID 5, this would not be the issue.
Sorry for my blind, I should post this thread in section unRAID OS version 6.x Support , my mistake.
Thanks again
-
Don't know about expanding with beta 7 but nobody should still be on beta 7 / 8 due to file corruption issue!
Thanks you, beta 7, and 8 has issues ?
is it safe for me to upgrade to beta 12 ?
-
Using putty or the console, run this command ...
df /dev/md1
and post the results.
It should display something like ...
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md1 3906899292 1942327812 1964571480 50% /mnt/disk1
(My disk1 just happens to be about 50% full like yours should be)
Hello bjp999,
After issue command df /dev/md1 seem it does'nt solve problem , my unRAID system version 6.0 beta 7
Thanks again bjp999
What version of unRAID are you using? Did you try stopping and starting the array and, as a last resort, rebooting?
I know some of the 6.0 betas after supporting XFS and BTRFS did not expand a disk after a rebuild, but if you are running unRAID 5, this would not be the issue.
-
Using putty or the console, run this command ...
df /dev/md1
and post the results.
It should display something like ...
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md1 3906899292 1942327812 1964571480 50% /mnt/disk1
wow, that is quick. Many thanks you guy
my unRAID system version 6.0 beta 7.
Let's run df command and report back
(My disk1 just happens to be about 50% full like yours should be)
What version of unRAID are you using? Did you try stopping and starting the array and, as a last resort, rebooting?
I know some of the 6.0 betas after supporting XFS and BTRFS did not expand a disk after a rebuild, but if you are running unRAID 5, this would not be the issue.
-
Hello,
I hoped some one can help me out. My disk1 2tb is ran out of space, all 100% use. Yesterday, I upgrade disk 1 to 4tb (Seagate disk). After success upgrade my disk 1 shows Size =4TB, use = 2TB, and Free = 0TB. That's reason when I do manual mover disk, the data in cache drive it doesn't flush all the data because of no space of disk 1 for them to move. I'm upgrade disks couple time, but this
time I have problem, Please help me out or give me a suggestion
Thanks in advance
-
thanks you, bro. have a great Thanksgiving .
-
First off, many thanks to ClunkClunk for working out the details for 32-bit UnRaid: http://lime-technology.com/forum/index.php?topic=3714.msg285620#msg285620
I went through and updated the links to the 64-bit package locations, put it into a script just to make it simpler and added the installpkg lines. I'm not a script expert so I didn't try to make it deal with directories on its own etc, It just runs wget and installpkg in whatever directory you're sitting.
So best bet is to run the script from /boot/packages
#!/bin/bash wget -nc http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware64-14.1/slackware64/x/fontconfig-2.10.93-x86_64-1.txz wget -nc http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware64-14.1/slackware64/l/freetype-2.5.0.1-x86_64-1.txz wget -nc http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware64-14.1/slackware64/l/libogg-1.3.0-x86_64-1.txz wget -nc http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware64-14.1/slackware64/l/libsamplerate-0.1.8-x86_64-1.txz wget -nc http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware64-14.1/slackware64/l/libtheora-1.1.1-x86_64-1.txz wget -nc http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware64-14.1/slackware64/l/libvorbis-1.3.3-x86_64-1.txz wget -nc http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware64-14.1/slackware64/l/libxml2-2.9.1-x86_64-1.txz wget -nc http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware64-14.1/slackware64/l/zlib-1.2.8-x86_64-1.txz wget -nc http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware64-14.1/slackware64/l/glibc-2.17-x86_64-7.txz wget -nc http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware64-14.1/slackware64/l/glib-1.2.10-x86_64-3.txz wget -nc http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware64-14.1/slackware64/d/gcc-g++-4.8.2-x86_64-1.txz wget -nc http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware64-14.1/slackware64/l/libpng-1.4.12-x86_64-1.txz wget -nc http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware64-14.1/slackware64/a/xz-5.0.5-x86_64-1.tgz wget -nc http://slackware.org.uk/people/alien/restricted_slackbuilds/handbrake/pkg64/14.0/handbrake-0.9.9-x86_64-1alien.txz installpkg fontconfig-2.10.93-x86_64-1.txz installpkg glibc-2.17-x86_64-7.txz installpkg libsamplerate-0.1.8-x86_64-1.txz installpkg xz-5.0.5-x86_64-1.tgz* installpkg freetype-2.5.0.1-x86_64-1.txz installpkg handbrake-0.9.9-x86_64-1alien.txz installpkg libtheora-1.1.1-x86_64-1.txz installpkg zlib-1.2.8-x86_64-1.txz* installpkg gcc-g++-4.8.2-x86_64-1.txz installpkg libogg-1.3.0-x86_64-1.txz installpkg libvorbis-1.3.3-x86_64-1.txz* installpkg glib-1.2.10-x86_64-3.txz installpkg libpng-1.4.12-x86_64-1.txz installpkg libxml2-2.9.1-x86_64-1.txz*
First encode is running right now!!!
UPDATE: see nicinabox's post here http://lime-technology.com/forum/index.php?topic=31528.msg286568#msg286568 if you would like to use Trolley for a quick, smooth install
jumperalex, my HandBrake on my server is working by following your guide. Now,I need to install libdvdcss for HandBrake 64-bit, where is good place to find this library and how to install it . Hope, you can help me out. Thanks
Bash shell program problem with verion 6.1.2
in General Support
Posted
Midnight Commander build in unRAID ? Really. Anyway I just modify my bash script and fixed problem . Before upgrade my bash script work ok, but after upgrade to 6.1.2 bash environment change example set path directory in and out for HandbrakeCLI must in "".
Everything is ok now, thank you guys.