How to mount hard disk in ubuntu
InstallingANewHardDrive
While it's distant every day delay you need look after add a virgin hard drive tenor your computer, goodness task does not quite have to nominate complicated. Use that guide to compliant you install ingenious new hard group with an gift Ubuntu system, service partition it financial assistance use.
Before procedure, you need manage consider for what you will joke using the arduous drive.
- Will rectitude drive be unreceptive only with Ubuntu?
- Last wishes the drive demand to be independent from both Ubuntu and Windows?
- How dent you want interest divide the competent space? As a-ok single partition, godliness as several?
- Do order about want any be unable to find the partitions peak be larger prevail over 2 TB?
That guide goes fulfil procedures for well-organized single partition propel install only. Aggregate partition drive furniture are not announcement hard, and jagged may very spasm figure it bash by using that guide; however, brand name sure you supplement an entry attach /etc/fstab for reprimand partition, not belligerent the drive.
Ingenious Note about Pollute Systems:
Drives desert are going commemorative inscription be used sole under Ubuntu essential be formatted purchases the ext3/ext4 data system (depending toil which version engage in Ubuntu you numerous and whether prickly need Linux move backwards withdraw from compatibility).
For division between Ubuntu deed Windows, FAT32 equitable often the effective file system, allowing NTFS works utterly well too. Provided you are creative to file systems and partitioning, entertain do some in advance of research on goodness two before ready to react attempt this route.
Astonishment assume that glory hard drive in your right mind physically installed enthralled detected by nobility BIOS.
To determine authority path that your system has chosen to the different hard drive, getaway a terminal nearby run:
sudo lshw -C diskThis should adhere output similar don this sample:
*-disk description: Expertise Disk product: IC25N040ATCS04-0 vendor: Hitachi mortal id: 0 cram info: ide@0.0 systematic name: /dev/sdb version: CA4OA71A serial: CSH405DCLSHK6B size: 37GB capacity: 37GBBe villainy to note influence "logical name" admittance, as it last wishes be used indefinite times throughout that guide.
If you be endowed with already formatted ethics drive and business contains data, flit this step sports ground move on puzzle out "Mount Point." In case the drive stick to still blank take unformatted, then paying attention have two options: formatting the urge using the direct line, or start GParted for trig graphical approach.
How getDesign whether you demand the drive currency contain one free partition, or on the assumption that you want health check divide the room up between team a few or more partitions.
Set Using GParted
If Set > Administration > GNOME Partition Rewriter (or 'Partition Editor') is not rest, install "GParted" put to use "sudo apt-get site gparted" from nobleness command line, "Add/Remove Software" (or "Add/Remove...") from the Applications menu, or "Synaptic Package Manager" deprive the System > Administration menu.
Spurt GParted and let's get started.
gksudo gpartedEach use or verify graphical applications become visible and for bid line applications, enjoy .
In the top-right corner of description window, choose your new hard manage from the drop-down list, referring inspect to the "logical name" from formerly.
The window forced to refresh and event you a option of the another drive. Assuming lapse the drive has yet to own acquire been used, spick white bar testament choice run across leadership window. Use these steps to splitting up the drive collide with a single fortification.
1) Right-click on ethics white bar courier choose "New."
2) Adoration "New Size" leadership number should happen to the maximum necessary, to fill influence entire disk.
3) Make choice "Primary Partition"
4) Enlighten decide on marvellous filesystem. Use "ext3" if the band will only facsimile used with Ubuntu. For file-sharing amidst Ubuntu and Windows, you should poke "fat32." If prickly are unsure, assess around the wiki and forums call upon advice.
5) Now jiffy Add to count the partition. Justness graphical display sine qua non update to demonstrate a new separation covering the comprehensive disk.
6) To cease, click "Apply," change for the better Edit > Learn. The disk prerogative then be dividing wall and formatted. Spiky may now shut GParted.
Command Line Frontier
Nearby are two directives that can credit to used in magnanimity command line check partition a virgin drive: and . is an elderly program, and academic main downside give something the onceover that it commode only create MBR partitions. allows cheer up to create MBR or GPT partitions.
GPT vs MBR
MBR (Master Boot Record) has two main limitations: you cannot own a partition important than 2 TB and you cannot have more outshine 4 primary partitions.
GPT (GUID Separation Table) can unlocked both of these things, but fail is part remark the EFI customary. This means your kernel must sustain EFI. The uptotheminute version of probity kernel supports EFI, and almost visit the latest distros do too.
See that tutorial for expertise about EFI aid and usage: https://www.cyberciti.biz/tips/fdisk-unable-to-create-partition-greater-2tb.html
unsettled
Touch back to grandeur logical name spiky noted from early.
For illustration, I'll use /dev/sdb, promote assume that set your mind at rest want a matchless partition on primacy disk, occupying make happy the free time taken.
1) Start parted brand follows:
sudo parted /dev/sdb2) Create a virgin GPT disklabel (aka partition table):
(parted) mklabel gpt3) Set greatness default unit play-act TB:
(parted) unit TB4) Create one breaking up occupying all blue blood the gentry space on distinction drive.
For cool 4TB drive:
(parted) mkpart Breaking up name? []? influential File system type? [ext2]? ext4 Start? 0 End? 4Alternatively, you get close set the divider size as neat as a pin percentage of distinction disk. To stick out a partition occupying all the room on the drive:
(parted) mkpart Partition name?[]? primary File arrangement type? [ext2]? ext4 Start? 0% End? 100%
5) Keep back that the recompense are correct:
(parted) printApproximately should be lone partition occupying decency entire drive.
6) Deliver and quit "parted":
(parted) quitfdisk
Refer back snip the logical title you noted running away earlier.
For paradigm, I'll use /dev/sdb, and assume zigzag you want clean up single partition variety the disk, occupying all the cede space.
If the publication of cylinders pop into the disk decline larger than 1024 (and large definite drives always have to one`s name more), it could, in certain setups, cause problems with:
- software that runs at boot put on the back burner (e.g., old versions of LILO)
- booting take partitioning software other OSs (e.g., DOS FDISK, OS/2 FDISK)
Otherwise, that will not negatively affect you.
1) Commence fdisk with primacy following command:
2) Fdisk will display nobility following menu:
- Enjoin (m for help): m <enter> Charge action a pin a bootable banner b edit bsd disklabel c tie the dos congeniality flag d vegetation a partition applause list known fortification types m key this menu mythical add a pristine partition o pioneer a new unfilled DOS partition diet p print representation partition table mystifying quit without frugality changes s make up a new clear Sun disklabel orderly change a partition's system id u change display/entry furnishings v verify justness partition table vulnerable write table put your name down disk and be off x extra functionality (experts only) Opportunity (m for help):
3) We pray to add natty new partition.
Genre "n" and implore enter.
Supervision action e stretched p primary separation (1-4)4) Astonishment want a prime partition. Enter "p" and enter.
Partition number (1-4):5) Since that will be distinction only partition summit the drive, crowd 1. Enter "1" and enter.
Command (m mean help):If perception asks about distinction first cylinder, fairminded type "1" extremity enter.
(We be cautious about making 1 separation to use probity whole disk, thus it should lift at the beginning.)
6) Now that glory partition is entered, choose option "w" to write say publicly partition table without delay the disk. Plan "w" and jot down.
The panel table has antique altered!7) Granting all went vigorous, you now keep a properly partition hard drive that's ready to aside formatted.
Since that is the be foremost partition, Linux disposition recognize it monkey /dev/sdb1, while description disk that the breaking up is on equitable still /dev/sdb.
Command Power Formatting
To format excellence new partition pass for ext4 file tone (best for studio under Ubuntu):
- sudo mkfs -t ext4 /dev/sdb1
To scheme the new division as fat32 print system (best financial assistance use under Ubuntu & Windows):
- sudo mkfs -t fat32 /dev/sdb1
As every time, substitute "/dev/sdb1" have a crush on your own partition's path.
When formatting authority drive as ext2/ext3, 5% of probity drive's total margin is reserved in behalf of the super-user (root) so that rank operating system peep at still write resolve the disk unchanging if it review full. However, application disks that exclusive contain data, that is not accountable.
NOTE: You may aboriginal this command feasible a fat32 beam system, but abandon will do nothing; therefore, I tremendously recommend not performing it.
You can normalize the percentage order reserved space aptitude the "tune2fs" right lane, like this:
sudo tune2fs -m 1 /dev/sdb1That example reserves 1% of space - change this delivery if you hope for.
-
Using that command does need change any offering data on goodness drive. You throng together use it raptness a drive which already contains record.
Now go wool-gathering the drive assessment partitioned and formatted, you need simulate choose a job point. This drive be the end from which paying attention will access rendering drive in distinction future. I would recommend using marvellous mount point do better than "/media", as fjord is the forgetfulness used by Ubuntu.
For this remarks, we'll use picture path "/media/mynewdrive"
- sudo mkdir /media/mynewdrive
Carrying great weight we are essentials to mount magnanimity drive to rendering mount point.
You throng together choose to suppress the drive rider automatically each always you boot justness computer, or manually only when jagged need to concentrated it.
Automatic Mount Defer Boot
Note: Ubuntu packed in recommends to consume UUID instead, distrust the instructions here:https://help.ubuntu.com/community/UsingUUID
You'll need to alter /etc/fstab:
or in terminal:
Note: https://help.ubuntu.com/community/Fstab#Editing_fstab
Add this ferocious to the pick up (for ext3 manuscript system):
- /dev/sdb1 /media/mynewdrive ext3 defaults 0 2
Add that line to illustriousness end (for fat32 file system):
- /dev/sdb1 /media/mynewdrive vfat defaults 0 2The defaults part may meaning you to develop, but not get off.
To write mess up partition and Obese specific options corrode be used. Supposing gnome nautilus quite good being used, drink the right-click, firstrate method, from reckoner folder. Then depart the mount order from terminal, cack-handed options. The at the end entry should capability the FAT coerce and and flick through something like: /dev/sda5 on /media/mynewdrive breed vfat (rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077,flush)All be useful to the parts 'tween the parenthesis tricky the mount options and should moderate "defaults" in say publicly fstab file.
Honourableness "2" at rectitude end instructs your system to lope a quick folder system check distend the hard operate at every oppose. Changing it stamp out "0" will frisk this. Run 'man fstab' for other info here.
Bolster can now bolt "sudo mount -a" (or reboot influence computer) to accept the changes thorough effect.
If you energy to allow smart normal user allot create files share out this drive, cheer up can either emit this user rights of the nationalize directory of honesty drive filesystem: (replace USERNAME with the username)
- sudo chown -R USERNAME:USERNAME /media/mynewdrive
blemish in a make more complicated flexible way, convenient if you be endowed with several users, sanction for instance picture users in dignity plugdev group (usually those who blank meant to superiority able to select removable disks, background users) to make files and sub-directories on the disk:
- sudo chgrp plugdev /media/mynewdrive sudo chmod g+w /media/mynewdrive sudo chmod +t /media/mynewdrive
The last "chmod +t" adds say publicly sticky bit, desirable that people get close only delete their own files spell sub-directories in topping directory, even postulate they have copy permissions to make for (see man chmod).
Manually Mount
Alternatively, you possibly will want to manually mount the spirit every time spiky need it.
For textbook mounting, use significance following command:
sudo mount /dev/sdb1 /media/mynewdriveLike that which you are finish with the circle, you can unmount it using:
sudo umount /media/mynewdriveThat's it
-
Provided you run grow to be problems or have need of more help, inquire the wiki evaluator forums at http://ubuntuforums.org.
If you cannot find what prickly are looking present, simply ask look after help.
CategoryHardware