Skip to content
Nosce Te Ipsum
  • Home
  • About me
  • My COETAIL Blogs
    • Course 1
    • Course 2
    • Course 3
    • Course 4
  • Testimonials
    • Professional
    • Personal
Site Search

Attaching an external storage with over 2TB in size

  • November 15, 2018
  • by Muhammad
Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
Pin on Pinterest
Pinterest
Share on Reddit
Reddit
Email this to someone
email
Share on StumbleUpon
StumbleUpon
Digg this
Digg

Usually, we can prepare and attach external storage using fdisk and then a permanent entry in fstab. However, when the disk size exceeds 2TB, fdisk will have issues in dealing with this device. You need to install 'parted' in order to prepare the disk. Once parted is installed, launch and use the instructions below to prepare your disk.

  • The ‘x’ in /dev/sdx and ‘xx’ in /dev/sdxx should be replaced with the suitable device links for your disk.
  • You can find it out by monitoring tail -f /var/log/messages in Raspbian OS.
  • Using 0 0 in mkpart command will let you choose all the space available and I selected to use ext4 for the filesystem.
  • You will replace .ext4 with the suitable extension you select in # mkfs.ext4 /dev/sdxx command.
  • Mount command should be used with ‘xx’ in /dev/sdxx for the suitable device and /folder is the path you want to mount this drive to.
parted /dev/sdx
.
.
(parted) mklabel gpt
.
.
(parted) unit TB
.
.
(parted) mkpart primary 0 0
.
.
(parted) quit
.
.
mkfs.ext4 /dev/sdxx
.
.
mount /dev/sdxx /folder

 

Now that the disk is ready, all you need to is add mount /dev/sdxx /folder to fstab so that it automatically mounts on reboots.

Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
Pin on Pinterest
Pinterest
Share on Reddit
Reddit
Email this to someone
email
Share on StumbleUpon
StumbleUpon
Digg this
Digg
Setting up L2TP/IPSEC server using PSK on Raspberry Pi using Strongswan
True Meaning of Life
Muhammad
2TB external storage mount

Related articles

Raspberry PI as temperature and…
Dynamic DNS client setup for…
Install Nginx, MySQL and PHP…
Autostart a terminal app on…
Setting up L2TP/IPSEC server using…
(c) Raspberry Pi
Starting with Raspberry Pi
Using GeoIP database to identify…
Designing Technology Infrastructure for Transformational…
The sad state of human…
Installing RD9700 chipset based USB…

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Follow Me!

Follow Me On TwitterFollow Me On LinkedInFollow Me On PinterestFollow Me On About.meFollow Me On Wordpress
May 2025
M T W T F S S
« Oct    
 1234
567891011
12131415161718
19202122232425
262728293031  

2009 2010 2011 Amelie apache beijing birthday clearos crèpes debian december 2009 dubai email february firewall guide holidays ill install internet kuala lumpur linux list mac maheen mobile october 2009 outlook Pakistan raspberry raspberry pi router search Sharepoint smtp snow spring ubuntu unix VLAN VPN windows 7 winter xian Zimbra

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

Categories

Licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Theme by Colorlib Powered by WordPress
  • Home
  • About me
  • My COETAIL Blogs
  • Testimonials