Editing
Adding a second drive
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Partition the drive == Now we need to add partition(s) to the drive. Run the following command as root (or <code>sudo</code> as a regular user): <code>fdisk /dev/sd'''b'''</code> (change the letter to the appropriate drive). <code>fdisk</code> will then prompt you for a command. Check the disk to see if any partitions exist by typing <code>p</code> and enter. If any partitions exist, you'll see them listed, like this: Device Start End Sectors Size Type /dev/sda1 2048 1953525134 1953523087 931.5G Linux filesystem Enter the <code>p</code> command to create a partition. We recommend keeping the defaults for the next options. Partition number (1-4, default 1): 1 First sector (2048-16777215, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-16777215, default 16777215): Created a new partition 1 of type 'Linux' and of size 8 GiB. Command (m for help): Once the partition is created, you can then write it to the disk using the <code>w</code> command. '''Warning!''' If you messed up, this is where you can abort if needed. Pressing enter after <code>w</code> commits the changes to the disk. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. Now if you re-run <code>ls /dev/sd*</code>, you should see the partition created.
Summary:
Please note that all contributions to NodeSpace Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
NodeSpace Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Navigation
Main page
Recent changes
Random page
Official Support
Submit Ticket
Knowledge Base
Documentation
Knowledge Spotlight
Tools
Tools
What links here
Related changes
Special pages
Page information