Changes

From Amahi Wiki
Jump to: navigation, search
2,959 bytes removed ,  07:51, 12 July 2014
Replaced content with "= Introduction = This is a plugin to add new disks to an Amahi HDA in a "seamless as possible" fashion. = Assumptions and Dependencies ="
Ideas for a new disk wizard:= Introduction =
* need to distinguish between temporary/removable and permanent* need to have the ability This is a plugin to format* need add new disks to be able to moun or unmount* easy to make it part of the shares (and the pool)* should be able to unmount it/remove it?**Yes if it is flagged an Amahi HDA in a "seamless as temporary storage* it should support/recognize multiple file systems, most notably, NTFS and ext3/4, possibly FATpossible" fashion.
= Amahi New Disk Wizard = 1. Format (erase) the new drive? WARNING! This will completely erase this new drive! Make sure the selected hard drive is the drive you'd like to erase.  (No: Remember selection, then to to #3)2. Format using what file system? [X] ext4: Linux format; <strong>strongly recommended</strong> for use in Amahi, or other Linux systems. [ ] NTFS: Windows format; only use this option if you really need to be able to read this drive when it's (physically) connected directly on a Windows computer. [ ] FAT32: Windows format; not recommended for big files; maximum size of files on a FAT32 partition: 4GB.  (Remember selection) 3. What would you like to do with this new drive? [ ] Mount as /var/hda/files/drives/drive#. You'll then be able to <a href="/setup?sub=shares&tab=share">create new shares</a> in that directory, to use this new drive. [ ] (Experimental) Add it to your <a href="/setup?sub=disk_pooling&tab=share">shared storage pool</a>.  (Remember selection) 4. Show animated 'Please wait...' * If user asked to format, fdisk & format now, using selected file system.* Mount new drive with: NEW_DRIVE_PATH=`hda-diskmount --silent /dev/sdX#` (mount failed if NEW_DRIVE_PATH == "")* If the user asked to add the drive to storage pool: do that, and if no shares have the 'Uses Pool' option enabled yet, enable it for all of them, with 0 extra copies, then restart greyhole & Samba. If some shares have 'Uses Pool' enabled, don't thouch anything there, Assumptions and just restart Greyhole. 5. Done!* If the user asked to just mount:** if user asked for a format: echo Your new drive has been formatted, and is now available as $NEW_DRIVE_PATH. You can now <a href="/setup?sub=shares&tab=share&root=$NEW_DRIVE_PATH">create new shares</a> in that directory.** else: echo Your new drive is now available as $NEW_DRIVE_PATH. You can now <a hrefDependencies ="/setup?sub=shares&tab=share&root=$NEW_DRIVE_PATH">create new shares</a> in that directory.* If the user asked to add the drive to storage pool: echo Your new drive is now part of your shared storage pool.** if 'Uses Pool' has been enabled for all shares: echo All your shares are now using your shared storage pool. You can configure your shared storage pool in the <a href="/setup?sub=disk_pooling&tab=share">Shares > Storage Pool</a> page. You can configure storage pool usage for shares in <a href="/setup?sub=shares&tab=share">Shares</a> page. Note that the existing data in your shares (if any) will be moved into your shared storage pool starting at midnight tonight. Attached: Required changes to hda-diskmount to support --slient and device parameters: [[File:Hda-diskmount.txt]]
Trusted, Bots, Bureaucrats, emailconfirmed, Administrators
4,146

edits