Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Using preclear_disk.sh with screen plugin - Clarification needed

Featured Replies

I've been trying to keep my Unraid server as plugin free as I can, but I really want to use preclear_disk.sh without having to keep my mac permanently connect to my server.

 

I did find a thread previously that I can't seem to locate now that explained how to run the script inside a terminal on the Unraid server.  I've installed UnMenu and from the list of plugins 'screen' seems to be the most likely candidate.  I'm unclear how you invoke the screen plugin to run the preclear_disk.sh script.

 

The usage of screen appears to be:

 

screen [-opts] [cmd [args]]

 

Options:

-a            Force all capabilities into each window's termcap.

-A -[r|R]    Adapt all windows to the new display width & height.

-c file      Read configuration file instead of '.screenrc'.

-d (-r)      Detach the elsewhere running screen (and reattach here).

-dmS name    Start as daemon: Screen session in detached mode.

-D (-r)      Detach and logout remote (and reattach here).

-D -RR        Do whatever is needed to get a screen session.

-e xy        Change command characters.

-f            Flow control on, -fn = off, -fa = auto.

-h lines      Set the size of the scrollback history buffer.

-i            Interrupt output sooner when flow control is on.

-l            Login mode on (update /var/run/utmp), -ln = off.

-list        or -ls. Do nothing, just list our SockDir.

-L            Turn on output logging.

-m            ignore $STY variable, do create a new screen session.

-O            Choose optimal output rather than exact vt100 emulation.

-p window    Preselect the named window if it exists.

-q            Quiet startup. Exits with non-zero return code if unsuccessful.

-r            Reattach to a detached screen process.

-R            Reattach if possible, otherwise start a new session.

-s shell      Shell to execute rather than $SHELL.

-S sockname  Name this session <pid>.sockname instead of <pid>.<tty>.<host>.

-t title      Set title. (window's name).

-T term      Use term as $TERM for windows, rather than "screen".

-U            Tell screen to use UTF-8 encoding.

-v            Print "Screen version 4.00.03 (FAU) 23-Oct-06".

-wipe        Do nothing, just clean up SockDir.

-x            Attach to a not detached screen. (Multi display mode).

-X            Execute <cmd> as a screen command in the specified session.

 

 

Would 'screen preclear_disk.sh sdd' work?

 

Could someone tell me the command line I'd need to enter to run pre clear_disk.sh inside screen please?  or of an alternative method of pre-clearing without having to remain connected to the server for many days whilst it runs?

 

Thanks,

 

Mark.

Just type "screen".. This will start a new session, where you can launch the preclear script.

 

Once running, detach the screen session using Ctrl+A, Ctrl+D.

  • Author

Just type "screen".. This will start a new session, where you can launch the preclear script.

 

Once running, detach the screen session using Ctrl+A, Ctrl+D.

 

I did try typing "screen" and got the response "Cannot find terminfo entry for 'xterm-256color'."  I assumed I needed more arguments.

 

Thanks,

 

Mark.

You need to change your emulation options, which terminal client are you using?

I use Putty on the PC so can't confirm your exact steps but try :

 

In the terminal app you are using to ssh, go to preferences -> advanced -> Declare terminal as: -> xterm-color (or something besides xterm-256color)

 

I use ConnectBot on Android to also connect to the unRAID box and had a similar error message to yours when attempting to re-attach to screen.  If I remember, I changed the emulation mode to xterm.

unmenu has a screen package with termcap info as well....

 

Myk

 

  • Author

In the terminal app you are using to ssh, go to preferences -> advanced -> Declare terminal as: -> xterm-color (or something besides xterm-256color)

 

That did the trick, thanks :)

 

unmenu has a screen package with termcap info as well....

 

Thanks, I'll take a look at that as well.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.