Difference between revisions of "New Disk Wizard"

From Amahi Wiki
Jump to: navigation, search
Line 41: Line 41:
 
* If the user asked to add the drive to storage pool: echo Your new drive is now part of your shared storage pool.
 
* 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.
 
** 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]]

Revision as of 01:05, 13 July 2010

Ideas for a new disk wizard:

  • need to distinguish between temporary/removable and permanent
  • need to have the ability to format
  • need 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 as temporary storage
  • it should support/recognize multiple file systems, most notably, NTFS and ext3/4, possibly FAT

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; strongly recommended 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, 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 href="/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