Project

General

Profile

Bug #1607

Partitioning Error via DiskWizard

Added by BlueJacket1992 almost 5 years ago. Updated about 4 years ago.

Status:
Feedback
Priority:
Medium
Assignee:
Target version:
-
Start date:
01/10/2015
Due date:
% Done:

80%


Description

When partitioning >2.1 TB drive, the app errors out.

Scenario:
a. System Drive /dev/sda
b. Three (3) 3 TB Western Digital drives (added AFTER Amahi 7.1 Install): /dev/sdb, /dev/sdc, /dev/sdd
c. After installing app, attempted to format these drives as standalone
d. Received the following error:
"#<RunTimeError: CommandExecutionError: Error: partition length of
5,XXX,XXX,XXX sectors exceeds the msdos-partition-table-imposed
maximum of 4294967295 >
e. See attached screenshot

Suggested (and ONLY a SUGGESTED) resolution:
a. Have DiskWizard execute the parted program built into Amahi 7.1
b. Using examples from the Amahi Wiki taken from these articles:
1. https://wiki.amahi.org/index.php/Adding_a_second_hard_drive_to_your_HDA
2. https://wiki.amahi.org/index.php/Partitions_Over_2.1_TB

Execute the following:
ls -l /dev/disk/by-id/
parted /dev/sdX mklabel gpt #(where sdX is the ID of the disk being partitioned)
parted /dev/sdX unit s #(ditto)
parted /dev/sdX mkpart primary ext4 2048s 100% #(ext3 FSType can be used, too...sector size could be smaller # but nothing less than 512s, I would think)
mkfs.ext4 -L greyhole01 /dev/sdX #(where "greyhole01" can be replaced by a different label for the drive)
hda-diskmount #(manual mount of ALL installed drives)
mount -a #(test the drive and IF errors occur, handle exception)

PLEASE understand I'm just trying to provide a possible solution...I could be completely off by doing this. It's my first reported bug with Amahi! If this SUGGESTED resolution should not be included, please redact as needed.

BlueJacket1992

Error01.07.2014.png View (926 KB) BlueJacket1992, 01/10/2015 05:03 AM

History

#1 Updated by tmkasun almost 5 years ago

The traditional partition table format used on PCs includes a 32-bit field to record the number of sectors a particular partition covers.With 512 byte sectors, this sets the maximum partition size at 2TB (512 * 2^32).

If you need a partition larger than 2TB, you will need to repartition the drive using the GUID Partition Table (GPT) format for the disk. If you are not trying to boot off this new disk, you are unlikely to run into any compatibility problems.
Since disk-wizard do not support1 format to GTP partition table, when it try to format the disk using msdoc table structure it can throw this error.

[1]:https://docs.google.com/drawings/d/1-bgYpsxw8XKl_pWGZTZ3_kxg8QplIPosl1b1P8roEl4/edit?usp=sharing

#2 Updated by cpg about 4 years ago

  • Status changed from New to Feedback
  • Assignee set to BlueJacket1992

i think this has been solved in the latest release of the disk wizard. do you think you could test it?

#3 Updated by BlueJacket1992 about 4 years ago

  • Subject changed from Partitioning Error to Partitioning Error via DiskWizard
  • Assignee changed from BlueJacket1992 to cpg
  • Priority changed from Normal to Medium
  • % Done changed from 0 to 80

I apologize for getting back to you so late. I recently upgraded (completely rebuilt my HDA) to Fedora Server 21 and Amahi 8. I wanted to give a clean install to test this application and, unfortunately, it didn't work flawlessly - though, ultimately, I did get it to work.

I have four storage drives:
1. A WD 6.0 TB Red drive
2. Two WD 3.0 TB NAS/Red drives
3. A 3.0 WD Green Caviar Drive

I installed FS21 and Amahi 8 - No issues. Yay!

I installed all the applications I wanted, including Greyhole and DiskWizard. Then tried to use DiskWizard to have it setup fstab for me. I selected my 6.0 TB drive, did not format the drive (obviously!), and when I clicked "Skip" I received the "Oops something went wrong" error page and the debug screen came up with the following:

Submit for Debug
vendor/bundle/ruby/gems/actionview-4.2.4/lib/action_view/renderer/renderer.rb:23:in `render'
vendor/bundle/ruby/gems/actionview-4.2.4/lib/action_view/rendering.rb:100:in `_render_template'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/streaming.rb:217:in `_render_template'
vendor/bundle/ruby/gems/actionview-4.2.4/lib/action_view/rendering.rb:83:in `render_to_body'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:32:in `render_to_body'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/renderers.rb:37:in `render_to_body'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/abstract_controller/rendering.rb:25:in `render'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:16:in `render'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/usr/share/ruby/benchmark.rb:294:in `realtime'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/core_ext/benchmark.rb:12:in `ms'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
vendor/bundle/ruby/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:43:in `render'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
vendor/bundle/ruby/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process'
vendor/bundle/ruby/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call'
vendor/bundle/ruby/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call'
vendor/bundle/ruby/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `public_send'
vendor/bundle/ruby/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `method_missing'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:51:in `serve'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call'
vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call'
vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call'
vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call'
vendor/bundle/ruby/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call'
vendor/bundle/ruby/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
vendor/bundle/ruby/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app'
vendor/bundle/ruby/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged'
vendor/bundle/ruby/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call'
vendor/bundle/ruby/gems/request_store-1.2.0/lib/request_store/middleware.rb:8:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call'
vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call'
vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
vendor/bundle/ruby/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call'
vendor/bundle/ruby/gems/railties-4.2.4/lib/rails/application.rb:165:in `call'
/usr/share/passenger/phusion_passenger/rack/thread_handler_extension.rb:74:in `process_request'
/usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:141:in `accept_and_process_next_request'
/usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:109:in `main_loop'
/usr/share/passenger/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads'

Started GET "/tab/debug" for 192.168.0.4 at 2015-11-09 09:52:36 -0500
Processing by DebugController#index as HTML
Rendered debug/_form.html.slim (7.6ms)
________________________________

Further steps:
1. I clicked the "Back" button
2. SELECTED and DESLECTED the Format checkbox (at this point, the green button changed from "Skip" to "Next" - this might have been a coding error in the app...)
3. I clicked "Next"
4. A new page came up that allowed me to selected a radio button for "automatically mount..." and I selected it, then clicked "Next"
5. A new page...
6. I clicked "Apply" after verifying the mount point was correct.

It looks like this app is almost ready to deploy/certify. The only issue I came up against was line #2 above.

Now to setup Greyhole...

Also available in: Atom