Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
=Important Notes=
* This is an '''advanced''' how-to on how to add additional drives to your HDA.
* Amahi cannot be held responsible for any data breakage or destruction arising from the use or misuse of this script. We provide it as a service in good will. You accept this automatically if you use the script.
 
=Make sure your drive is detected by the BIOS=
 
It should be listed in the drives that appear when you boot your computer, before the Fedora boot screen appears. You can also enter you BIOS and confirm they appear there.
=Make sure your drive is detected by Fedora=
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left">
yum -y install pmount fuse fuse-libs ntfs-3g gpartedutil-linux-ng
</div>
You should (unless you have a good reason not to) use GParted to partition and format your hard drive.<br/>
From the HDA desktop Not having X installed would qualify as a good reason! In such cases, either use SSH X11 Forwarding (or using VNCGoogle that if you'd like to use this), or [[Adding_a_second_hard_drive_to_your_HDA#Using_cfdisk|use cfdisk]] from a [[Open Terminal as root|Terminal, as root]] . You'll probably want to create a single partition, and type format it as ''ext3'gparted'.<br/>Note that Windows can't read ext3 partitions, so if you want dual-boot Windows on your Amahi PC, or if you intend to connect this hard drive to a Windows computer later, you should format as NTFS instead, and you should do that on Windows before you connect the drive in your HDA.<br/>Remember that using NTFS partitions on Linux will be slower that using ext3 partitions, so you should only use NTFS if you really need it.<br/>How much slower: compare the blue bars (NTFS-3G) with the red bars (ext3) on [http://www.tuxera.com/products/tuxera-ntfs-commercial/performance/ this graph].<br/>''' Be sure to launch read the GParted application.[[Adding_a_second_hard_drive_to_your_HDA#NTFS_partitions|last section about NTFS]] on this page if you use a NTFS partition!'''
To know what device (/dev/sdX) you need to select in GPartedpartition and format, use the following command, in a [[Terminal, as root|Open Terminalas root]]:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
</div>
Find the row corresponding to your hard drive, and look at the end of the line to identify the correct device to select in GParteduse.
Example:
</div>
In the above example, /dev/sdb would be what I would select in GParted(or use on the cfdisk command). sda in my primary hard drive, and sdb my second hard drive. ==Using GParted==From the HDA desktop (or using VNC), [[Open Terminal as root]] and type '''gparted''' to launch the GParted application.
You'll probably want to create a single partition, and format it as ''ext3''.<brSelect the device (/>Note that Windows can't read ext3 partitions, so if you want to read your disk on Windows, you should format as NTFS instea, and you should do that on Windows before you connect the drive in your HDA.<brdev/>Remember that using NTFS partitions on Linux will be slower sdX) that using ext3 partitions, so you should only use NTFS if you really need itfound above.<br/>How much slower: compare In the blue bars (NTFS-3G) with the red bars (ext3) on [http:above example, /dev/wwwsdb would be what I would select in GParted.tuxera.com/products/tuxera-ntfs-commercial/performance/ this graph].<br/>'''Be sure to read the [[Adding_a_second_hard_drive_to_your_HDA#NTFS_partitions|last section about NTFS]] on this page if you use a NTFS partition!'''
There are many easy to follow guides online on how to use GParted. You should Google for one, to find one that seems clear to you.<br/>
[http://www.mepisguides.com/Mepis-6/Install/gparted/gparted-set-partition.html Here's one] that looks simple. Just use ext3 instead of fat32 in you follow that tutorial.
 
==Using cfdisk==
From a [[Terminal, as root|Open Terminal as root]], type '''cfdisk /dev/sdX''' to launch the cfdisk application.
 
Make sure to replace /dev/sdX with the actual device (eg. /dev/sdb) that you found above.
 
If your hard drive contains existing partitions, select them one by one at the top (using up/down arrow keys), then select the '''[ Delete ]''' action (using the left/right arrow keys), then hit ENTER.
 
You should now only have Free Space listed at the top.<br/>
Select the '''[ New ]''' action, and accept the default (Primary, and size).
 
You should now have a single partition listed at the top, of type Linux.<br/>
Select the '''[ Write ]''' action, then '''[ Quit ]'''.
 
Now that you partitioned your drive, you need to format your newly created partition.<br/>
To format as EXT3, use this command:
 
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
mkfs.ext3 -j /dev/sdX1
</div>
 
Replace ext3 with ext4 in the above command to format your partition as EXT4 instead of EXT3.
 
'''/dev/sdX1''' in the above command refers to the partition your created in cfdisk.<br/>
Go back in cfdisk, and check the ''Name'' column if you're unsure.<br/>
If you see ''sdb1'' in the name column, you should use '''/dev/sdb1''' in the above command.
=Mount the hard drive=