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.

New Application: S. N. A. P.

Featured Replies

Try this:

 

snap.sh -r dune

snap.sh -a WD-WMAZA1502825 dune

 

 

it says yes now :)

can you help me bit further so i can copy, cause i've been trying ages to do copy 2tb

 

I'm sorry I didn't notice the WD- as being part of the serial number earlier.  I don't use WD drives.  I'm going to add this to the first posting to help make this more visible.  Thanks for hanging in there with it.

 

How many partitions got mounted?  Do the cd /mnt/disk and ls.

no problem thank you for hanging on, if you could do a little more so i can finally start copying

i dunno how many partitions got mounted?

the 2 files say yes (but all the other disks has 2 too, and they only have one partition, so i dont know)

if i do

cd /mnt/disk it says is doesnt exist

if i do

cd /mnt/ and then ls

he says

disk1

  • Replies 566
  • Views 195.8k
  • Created
  • Last Reply
  • Author

Try this and check again.

snap.sh -m dune

this doesnt look good :(

snapjl.jpg

 

although i got that message

i did

cd /mnt/disk/dune

and im at /mnt/disk/dune now

can i check if its the right partition?

how do i show up the directorys, and copy it to my data disk in the array

also "ls" under /mnt/disk/dune doesnt show up anything

  • Author

It showed the actual linux error which is helpful.  What version of unRAID are you using?  Do you have unMenu installed? 

 

Also it would help if you could post text instead of the fairly tiny pictures.  Are you telnet in or is this the console monitor?

It showed the actual linux error which is helpful.  What version of unRAID are you using?  Do you have unMenu installed? 

 

Also it would help if you could post text instead of the fairly tiny pictures.  Are you telnet in or is this the console monitor?

 

im using unraid 4.6

yes i have unmenu

yeah i know the tiny pic

but i cant copy paste it

im using putty... then i just take a printscreen, copy past in windows paint, and upload it

  • Author

It showed the actual linux error which is helpful.  What version of unRAID are you using?  Do you have unMenu installed? 

 

Also it would help if you could post text instead of the fairly tiny pictures.  Are you telnet in or is this the console monitor?

 

im using unraid 4.6

yes i have unmenu

yeah i know the tiny pic

but i cant copy paste it

im using putty... then i just take a printscreen, copy past in windows paint, and upload it

 

With putty, right click on the bar outside the black box and choose "Copy all to clipboard".

 

Unraid login: root

Linux 2.6.32.9-unRAID.

root@Unraid:~# cd /boot/config/snap

root@Unraid:/boot/config/snap# snap.sh -list DeviceConfigurationInfo

root@Unraid:/boot/config/snap# snap.sh -listDeviceConfigurationInfo

unRAID=No SNAP=No 3609 /dev/sda /dev/disk/by-id/ata-WDC_WD20EARS-00MVWB0_WD-WCAZ                                                                  A2312119

unRAID=Yes SNAP=No 3551 /dev/sdc /dev/disk/by-id/ata-WDC_WD20EARS-00MVWB0_WD-WCA                                                                  ZA2325257

unRAID=No SNAP=Yes 3467 /dev/sdb /dev/disk/by-id/ata-WDC_WD20EARS-00MVWB0_WD-WMA                                                                  ZA1502825

unRAID=No SNAP=No 3609 /dev/sda /dev/disk/by-id/scsi-SATA_WDC_WD20EARS-00_WD-WCA                                                                  ZA2312119

unRAID=Yes SNAP=No 3551 /dev/sdc /dev/disk/by-id/scsi-SATA_WDC_WD20EARS-00_WD-WC                                                                  AZA2325257

unRAID=No SNAP=Yes 3467 /dev/sdb /dev/disk/by-id/scsi-SATA_WDC_WD20EARS-00_WD-WM                                                                  AZA1502825

unRAID=No SNAP=No 3699 /dev/sdd /dev/disk/by-id/usb-SanDisk_U3_Cruzer_Micro_0000                                                                  161CB2746F21-0:0

root@Unraid:/boot/config/snap# cd

root@Unraid:~# cd /mnt/disk

-bash: cd: /mnt/disk: No such file or directory

root@Unraid:~# cd /mnt/disk and ls

-bash: cd: /mnt/disk: No such file or directory

root@Unraid:~# cd /mnt/ disk

root@Unraid:/mnt# ls

disk1/

root@Unraid:/mnt# cd

root@Unraid:~# ls

initconfig@  mdcmd*  powerdown@  samba@

root@Unraid:~# cd /boot/config/snap

root@Unraid:/boot/config/snap# snap.sh -m dune

/dev/disk/by-id/scsi-SATA_WDC_WD20EARS-00_WD-WMAZA1502825-part1

driver: scsi

Using: mount -r -t ext2 /dev/disk/by-id/scsi-SATA_WDC_WD20EARS-00_WD-WMAZA1502825-part1 /mnt/disk/dune

mount: wrong fs type, bad option, bad superblock on /dev/sdb1,

      missing codepage or helper program, or other error

      In some cases useful info is found in syslog - try

      dmesg | tail  or so

 

root@Unraid:/boot/config/snap# cd

root@Unraid:~# cd /mnt/disk

root@Unraid:/mnt/disk# cd dune

root@Unraid:/mnt/disk/dune# dir

root@Unraid:/mnt/disk/dune# ls

root@Unraid:/mnt/disk/dune# ls

root@Unraid:/mnt/disk/dune#

 

  • Author

In unMenu go to the Disk Management page.  Is it possible to mount the dune disk from there?

I personally have never mounted an ext2 or ext3 drive.  I have this note in my code which might be helpful in this case.

 

# mount the partition ...

# Note: It seems that unRAID version of slackware doesn't have the ext3 driver.

#      http://lime-technology.com/forum/index.php?topic=5777.0

#      Joe L. There is no ext3 driver module in unRAID, but if the ext3 file-system

#      was cleanly unmounted, and there are no journal entries to replay, it may be mounted as ext2.

 

 

In unMenu go to the Disk Management page.  Is it possible to mount the dune disk from there?

 

shall i take a pic?

i see the 2 parts

part 1  i see a button "mount" part 2 not

i can also see there that part 1 is only 2gig

and part 2 almost 2tb

my data is on part 2

  • Author

Mount the part with the button just as a test.  But what you want to get to is part2 which has all the data.

Drive Partitions - Not In Protected Array

Model/Serial Temp Size Device Mounted File System 

scsi-SATA_WDC_WD20EARS-00_WD-WMAZA1502825 18°C 2000.3G /dev/sdb   

 

 

partition (2,008,093 blocks):    /dev/sdb1  ext3 

 

--------------------------------------------------------------------------------

 

scsi-SATA_WDC_WD20EARS-00_WD-WMAZA1502825-part2 18°C  /dev/sdb2   

 

--------------------------------------------------------------------------------

 

scsi-SATA_WDC_WD20EARS-00_WD-WCAZA2312119 18°C 2000.3G /dev/sda   

 

 

partition (1,953,514,552 blocks):    /dev/sda1   

/dev/sdb1 mounted on /mnt/disk/sdb1

Using command: mount -r -t ext2 /dev/sdb1 /mnt/disk/sdb1 2>&1

 

mount: wrong fs type, bad option, bad superblock on /dev/sdb1,

      missing codepage or helper program, or other error

      In some cases useful info is found in syslog - try

      dmesg | tail  or so

 

 

next to sdb2 it theres a button create reiserfs on /dev/sdb2

But what you want to get to is part2 which has all the data.

 

true, i dont care about part 1

  • Author

If it did mount then unmount it.  I suspect that the error which is the same you saw with SNAP that it didn't actually mount anything.  You can also see that SNAP uses essentially the same mount command as unMenu ( I got it from Joe after all).

 

At this point we need advice from a linux guru.  Either that dune disk wasn't cleanly unmounted or has journal entries or something that is preventing it from being mounted.  This is beyond my experience level.

If it did mount then unmount it.  I suspect that the error which is the same you saw with SNAP that it didn't actually mount anything.  You can also see that SNAP uses essentially the same mount command as unMenu ( I got it from Joe after all).

 

At this point we need advice from a linux guru.  Either that dune disk wasn't cleanly unmounted or has journal entries or something that is preventing it from being mounted.  This is beyond my experience level.

it didnt mount

yeah same error

 

so what now? this really is annoying trying for days now to copy 2tb (over network is way too slow..., would take 14 days! cause of the dune)

 

the only thing i did with that hard drive is using this

dune_service_make_system_storage_on_hdd_partition.dsf

Reformats am empty HDD to two partitions, and initializes System Storage on one of these partitions, w/o reinstalling the firmware.

NOTE: Using this service on 1.0/2.0 models will correctly initialize System Storage, but will not install Extra Applications; Extra Applications can be installed later by updating/reinstalling the firmware.

NOTE: The HDD intended to be reformatted by this service must be empty and must contain just single partition or no partitions at all (and this HDD must be the only such a HDD attached to the player). If it is not empty or contains several partitions, reformat it first (e.g. using the player built-in format function: choose HDD in the main menu, press INFO RC button, choose "Format Disk").

NOTE: This service reformats the HDD to two partitions (one using 2GB and second using the rest of HDD), and initializes the first 2GB partition as System Storage. The second partition is NOT formatted by this service; if you want to format it (and you probably do), you can format it e.g. using the player built-in format function: choose the HDD in the main menu, press INFO RC button, choose "Format Partition").

 

i can do this though, but i would still have 2 partitions i think

dune_service_deinit_system_storage.dsf

Deinitializes an already attached System Storage. The currently attached System Storage becomes the usual storage that can be accessed and browsed via the player menu in the usual way.

NOTE: After deinitializing System Storage, the resulting storage will typically contain various system files (will not be empty). To reinitialize this storage as System Storage again, you will need first to delete all these files or reformat it.

 

 

site: http://dune-hd.com/firmware/usb_flash_drive/

 

i hope you or someone else can help me out... i really hate this :(, anyway thx for all your help tonight

anyone else can help me?

i've taken the drive outside the server, plugged it into my vista pc (downloaded ext2/3 driver for vista), and using teracopy its now copying to my unraid data disk

i thought it would go faster; at least 20MB/s but i think in some way teracopy is holding back i dunno why

 

  • Author

i've taken the drive outside the server, plugged it into my vista pc (downloaded ext2/3 driver for vista), and using teracopy its now copying to my unraid data disk

i thought it would go faster; at least 20MB/s but i think in some way teracopy is holding back i dunno why

 

 

I would be tempted to try connecting it directly again now that it's worked on the vista machine. 

i've taken the drive outside the server, plugged it into my vista pc (downloaded ext2/3 driver for vista), and using teracopy its now copying to my unraid data disk

i thought it would go faster; at least 20MB/s but i think in some way teracopy is holding back i dunno why

 

 

I would be tempted to try connecting it directly again now that it's worked on the vista machine. 

well its copying now, so no need to interrupt that :P

anway.. after that, i will plug it back into my server but not for snap

so should i -a that drive again on snap, so its out of the list?

 

i think in future i will plug in now and then an usb external drive, so i might keep snap installed...

 

hopefully that will work then..

  • Author

This would remove it.

snap.sh -r dune

I've installed SNAP and set up a daily back up to a USB drive that stays attached to the server.  I have another USB drive that I will plug in and do a backup once a week.  It is very nice to just plug in the drive and have a backup start by itself.  Once it is done I remove the drive and store it offsite.

 

Very slick.  Thanks queeg for a really nice application.

 

One minor point.  I think the snap.sh script should show the -M option as:

-M   [ sharename ]

  • Author

I've installed SNAP and set up a daily back up to a USB drive that stays attached to the server.  I have another USB drive that I will plug in and do a backup once a week.  It is very nice to just plug in the drive and have a backup start by itself.  Once it is done I remove the drive and store it offsite.

 

Very slick.  Thanks queeg for a really nice application.

 

One minor point.  I think the snap.sh script should show the -M option as:

-M   [ sharename ]

 

I'm happy to see others putting it to good use.  

 

About the -M parameter, I think it should actually be -M [serialnumber or sharename] like the others.  Thanks for pointing that out.  It escaped my notice.  I'm going to update the first post in this thread to note the change and I'll change it in the code for the next release.

 

By the way, there will be an update to SNAP after the new unRAID 5.0 version comes out. 

I want to limit the visibility of the USB drives that I hot plug and share.  Some of the data I backup onto the USB drives is not information I want to necessarily share.  I added the line 'browseable = No" to the 'snap-xdrive-template" and when drives are plugged in they are mounted and shared but are hidden.  I know this does not prevent someone from specifying the share directly, but if it is not browseable, this will make it more difficult.  I have other limits on who can see what on my network.

 

Queeg, is there an easy way to mount the drive buit not share it at all?  I don't want to have to telnet and unshare it with a "snap.sh" command.

  • Author

I want to limit the visibility of the USB drives that I hot plug and share.  Some of the data I backup onto the USB drives is not information I want to necessarily share.  I added the line 'browseable = No" to the 'snap-xdrive-template" and when drives are plugged in they are mounted and shared but are hidden.  I know this does not prevent someone from specifying the share directly, but if it is not browseable, this will make it more difficult.  I have other limits on who can see what on my network.

 

Queeg, is there an easy way to mount the drive buit not share it at all?  I don't want to have to telnet and unshare it with a "snap.sh" command.

 

You could try add a hotplug AFTER_SHARE event to unshare which would leave the device mounted but not shared.  I put an example in the code below which is in /boot/config/snap/snapEvents.sh and gets called from snap.sh.  I can't promise it will work but I think it should.

Look at the second post in this thread to read about events.

 

case $EVENT

in

'AFTER_MOUNT')

echo "$0 $*" >> $SNAPHOME/snapEvents.log

;;

'AFTER_SHARE')

echo "$0 $*" >> $SNAPHOME/snapEvents.log

if [ -f $SNAPHOME/hotPlugAfterShareEvent.sh ]

then

$SNAPHOME/hotPlugAfterShareEvent.sh $*  &

else

echo "$SNAPHOME/hotPlugAfterShareEvent.sh does not exist!"

 

fi

                         if [ "$SHARENAME" == "yoursharename" ]

                         then

                                      $SNAPHOME/snap.sh -S $SHARENAME

                         fi

;;

'HOTPLUG_IN')

 

 

I have not used SNAP yet, but a suggestion related to the above request.

 

Could a command line parameter or something similar be added so that this setting could be remembered for a specific drive.

 

perhaps an extra command option to the end of:

snap.sh -a [serialnumber] [sharename]

 

something like:

snap.sh -a [serialnumber] [sharename] --notbrowseable

or

snap.sh -a [serialnumber] [sharename] --nb

 

 

Something like the above should work

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.