by moonman » Sun Dec 09, 2012 8:58 am
Now you need to repartition your 3TB drive.
See what your hdd is: either run "dmesg | tail" or "fdisk -l". Let's assume that now that you booted from usb, your hdd is sdb
1. mount it
$this->bbcode_second_pass_code('', 'mount /dev/sdb1 /mnt')
2. create backup
$this->bbcode_second_pass_code('', 'cd /mnt
tar cvzpf /backup.tar.gz . ')
3. unmount it
$this->bbcode_second_pass_code('', 'cd /
umount /mnt')
Now you need to repartition the hdd.
Install gdisk
4. $this->bbcode_second_pass_code('', 'pacman -Sy gdisk')
5. $this->bbcode_second_pass_code('', 'gdisk /dev/sdb')
d - delete partition #2
n for new partition, partition number 2, First sector: just press enter for defaults, last sector: +1G and type (Hex code or GUID) 8200 for swap
n for new partition, partition number 3, First sector: enter to use default, last sector: enter for default. Hex code or GUID: 8300 for linux partition
r for recovery, then h for hybrid mbr. In sequence put just 1. Answer N to Place EFI GPT partition first, for hex code press enter for defaults. For bootable flag answer Y. For "protect more partitions?" answer N.
m for main menu then w to write changes.
Now shut down the plug with "shutdown -h now", remove the flash drive and power cycle GoFlex
It should boot up now.
Now you need to create filesystem on the partition.
6.
$this->bbcode_second_pass_code('', 'mkswap /dev/sda2
mkfs.ext4 /dev/sda3')
7. edit fstab to reflect what you changed:
$this->bbcode_second_pass_code('', 'nano /etc/fstab')
Now in the line that you added, change
$this->bbcode_second_pass_quote('', '/')dev/sda2 /media/Storage ext4 noatime,data=ordered 0 2
to
$this->bbcode_second_pass_quote('', '/')dev/sda
3 /media/Storage ext4 noatime,data=ordered 0 2
$this->bbcode_second_pass_code('', '/dev/sda2 swap swap defaults 0 0')
8. Reboot with "reboot" command