GoFlex 3Tb can't make 3Tb partition

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

GoFlex 3Tb can't make 3Tb partition

Postby AndrewWArchLinux » Fri Nov 27, 2015 6:33 am

I've got a goflex 3Tb and installed the latest version of goflex including uboot (as far as I know)
using the instructions from
http://archlinuxarm.org/platforms/armv5 ... oflex-home

I found that i could not access a partition greater than 2TB, down to the MBR partitions which do not support large disks, and GPT tables are ntt supported by uboot. Tried with Hybrid ones as described below but no luck


viewtopic.php?f=53&t=7291


I saw the patch recommended in the above post which seemed to fix the issue, but do sure when to install is this from USB (which i have done) or from MBR on the disk?


I take is as in installed yesterday for the 1st time i have the latest uboot as described
viewtopic.php?f=53&t=7290
and presumably patched by the last entry in viewtopic.php?f=53&t=7291, but still i cant get the system to boot


Any ideas think it may be something simple i have missed?

Thanks
AndrewWArchLinux
 
Posts: 11
Joined: Fri Nov 27, 2015 6:28 am

Re: GoFlex 3Tb can't make 3Tb partition

Postby AndrewWArchLinux » Fri Nov 27, 2015 7:33 am

Tried a different approach
created a single 20Gb partition MBR
installed archlinux
labeled rootfs
rebooted .
worked......
installed gdisk
changes partitions to hybrid
rebooted
failed.........
booted from usb and found partition was corrupt
did a new mkfs -t ext3 /dev/sda1
relabaled rootfs
installed archlinux
rebooted
failed..... just flashing light on front of nas
its defiantly do do with the partition type
AndrewWArchLinux
 
Posts: 11
Joined: Fri Nov 27, 2015 6:28 am

Re: GoFlex 3Tb can't make 3Tb partition

Postby AndrewWArchLinux » Fri Nov 27, 2015 1:39 pm

still going round in circles, this ios what I am doing looks to follow off the posts i have found, what ave i missed

[root@alarm /]# gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.1

Partition table scan:
MBR: hybrid
BSD: not present
APM: not present
GPT: present

Found valid GPT with hybrid MBR; using GPT.

Command (? for help): d
Partition number (1-2): 2

Command (? for help): d
Using 1

Command (? for help): 1
b back up GPT data to a file
c change a partition's name
d delete a partition
i show detailed information on a partition
l list known partition types
n add a new partition
o create a new empty GUID partition table (GPT)
p print the partition table
q quit without saving changes
r recovery and transformation options (experts only)
s sort partitions
t change a partition's type code
v verify disk
w write table to disk and exit
x extra functionality (experts only)
? print this menu

Command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sda.
The operation has completed successfully.
[root@alarm /]# gdisk /defv/sda
GPT fdisk (gdisk) version 1.0.1

Problem opening /defv/sda for reading! Error is 2.
The specified file does not exist!
[root@alarm /]# gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.1

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/sda: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): FF6CE18E-6EA8-47A1-A8C9-EDB6706E2B4C
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 5860533101 sectors (2.7 TiB)

Number Start (sector) End (sector) Size Code Name

Command (? for help): n
Partition number (1-128, default 1): 1
First sector (34-5860533134, default = 2048) or {+-}size{KMGTP}:
Last sector (2048-5860533134, default = 5860533134) or {+-}size{KMGTP}: +20G
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to 'Linux filesystem'

Command (? for help): n
Partition number (2-128, default 2):
First sector (34-5860533134, default = 41945088) or {+-}size{KMGTP}:
Last sector (41945088-5860533134, default = 5860533134) or {+-}size{KMGTP}:
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to 'Linux filesystem'

Command (? for help): m
b back up GPT data to a file
c change a partition's name
d delete a partition
i show detailed information on a partition
l list known partition types
n add a new partition
o create a new empty GUID partition table (GPT)
p print the partition table
q quit without saving changes
r recovery and transformation options (experts only)
s sort partitions
t change a partition's type code
v verify disk
w write table to disk and exit
x extra functionality (experts only)
? print this menu

Command (? for help): r

Recovery/transformation command (? for help): ?
b use backup GPT header (rebuilding main)
c load backup partition table from disk (rebuilding main)
d use main GPT header (rebuilding backup)
e load main partition table from disk (rebuilding backup)
f load MBR and build fresh GPT from it
g convert GPT into MBR and exit
h make hybrid MBR
i show detailed information on a partition
l load partition data from a backup file
m return to main menu
o print protective MBR data
p print the partition table
q quit without saving changes
t transform BSD disklabel partition
v verify disk
w write table to disk and exit
x extra functionality (experts only)
? print this menu

Recovery/transformation command (? for help): h

WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,
just hit the Enter key at the below prompt and your MBR partition table will
be untouched.

Type from one to three GPT partition numbers, separated by spaces, to be
added to the hybrid MBR, in sequence: 1
Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): n

Creating entry for GPT partition #1 (MBR partition #1)
Enter an MBR hex code (default 83):
Set the bootable flag? (Y/N): y

Unused partition space(s) found. Use one to protect more partitions? (Y/N): n

Recovery/transformation command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sda.
The operation has completed successfully.
[root@alarm /]#
[root@alarm /]# tune2fs -L "rootfs" /dev/sda1
tune2fs 1.42.13 (17-May-2015)
[root@alarm /]# mkfs -t ext3 /dev/sda1
mke2fs 1.42.13 (17-May-2015)
/dev/sda1 contains a ext3 file system labelled 'rootfs'
last mounted on /mnt on Fri Nov 27 11:07:30 2015
Proceed anyway? (y,n) y
Creating filesystem with 5242880 4k blocks and 1310720 inodes
Filesystem UUID: d94eca3e-80da-4980-b38c-625d41f9ea4b
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

[root@alarm /]# mount /dev/sda1 /mnt
[root@alarm /]# cd /mnt
[root@alarm mnt]# ls /
ArchLinuxARM-kirkwood-latest.tar bin boot dev etc home lib lost+found mnt opt proc root run sbin srv sys tmp usr var
[root@alarm mnt]# tar -xvf /ArchLinuxARM-kirkwood-latest.tar


<after tar extract>

[root@alarm mnt]# ls /mnt
bin boot dev etc home lib lost+found mnt opt proc root run sbin srv sys tmp usr var
[root@alarm mnt]# cd /
[root@alarm /]# umount /mnt

turn power off , remove usb stick
and wait

disk spins up but light on front just flashes.....
AndrewWArchLinux
 
Posts: 11
Joined: Fri Nov 27, 2015 6:28 am

Re: GoFlex 3Tb can't make 3Tb partition

Postby moonman » Fri Nov 27, 2015 5:28 pm

U-Boot does support GPT. Don't use hybrid. It was a workaround for older U-Boot versions and there is no reason to use it now. Use GPT, 1 separate partition for rootfs, extract tarball - done.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: GoFlex 3Tb can't make 3Tb partition

Postby AndrewWArchLinux » Fri Nov 27, 2015 7:57 pm

thanks , but no luck ..... tried what you said

my partition a table now looks like
$this->bbcode_second_pass_code('', '
[root@alarm alarm]# gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.1

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/sda: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): E15BD40B-1C3E-4F01-930D-13F3914B2ADE
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number Start (sector) End (sector) Size Code Name
1 2048 41945087 20.0 GiB 8300 Linux filesystem
2 41945088 5860533134 2.7 TiB 8300 Linux filesystem

Command (? for help):')

I only installed yesterday so i must have the latest version (if that is what is deployed with the current build scripts) how can i tell?

I just get the green flashing light on the front.

Any ideas ?

Thanks
AndrewWArchLinux
 
Posts: 11
Joined: Fri Nov 27, 2015 6:28 am

Re: GoFlex 3Tb can't make 3Tb partition SOLVED

Postby AndrewWArchLinux » Sat Nov 28, 2015 5:08 pm

For any one else looking for this solution Moonman was right the latest uboot does work well. The only issue is when you follow the instructions the latest version is not installed......... caught me out....

Follow the instruction on the uboot sticky link up upgrade, make sure your disk is GPT only

and it works fine ;)
AndrewWArchLinux
 
Posts: 11
Joined: Fri Nov 27, 2015 6:28 am

Re: GoFlex 3Tb can't make 3Tb partition

Postby hecatae » Fri Dec 11, 2015 9:33 pm

may I suggest installing rescue system as your next point of call, you dont want to lose access to your 3tb drive.
hecatae
 
Posts: 32
Joined: Tue Nov 18, 2014 9:17 pm

Re: GoFlex 3Tb can't make 3Tb partition

Postby mtso » Tue Dec 29, 2015 7:24 pm

Please AndrewWArchLinux, could you tell me what were the steps you did to install archlinux in 3TB GoFlex Home, as I have intentions to install one like yours.
mtso
 
Posts: 1
Joined: Tue Dec 29, 2015 4:35 pm

Re: GoFlex 3Tb can't make 3Tb partition

Postby AndrewWArchLinux » Wed Dec 30, 2015 6:47 am

1. This may fail and brick you device, this is done at your own risk
2. You WILL lose any information stored on the disk, if you want the data back it up somewhere else

3. Create a recovery boot usb stick (look on the forums for instructions). Ensure you also have the OS as an image files on the usb as well VERY VERY IMPORTANT
4. Test the USB boot works (you will need it) VERY VERY IMPORTANT

5. Installed Archlinux as per
http://archlinuxarm.org/platforms/armv5 ... oflex-home
this worked well but only used 2TB of the disk.

6. upgrade U-boot from
U-Boot v2015.10 released
viewtopic.php?f=53&t=8857

The reboot WILL fail with one light flashing on the front of the go flex. Your device is semi bricked at his point.

7. Boot from the USB stick
Prep you disk as per my entries on this link the working partition GPT ONLY NO MBR, and the tunefs , mkfs statements
8. Mount the volume and copy the OS image from the on the USB stick to the goflex and extract

Reboot . done


You will need to have a knowledge of linux to do this as the install instructions are not very good ( in my opinion) as they are out of date, and also the install does not include the latest u-boot, required for the 3Tb disk
so reading the scripts to see what is going on will be a bit help
AndrewWArchLinux
 
Posts: 11
Joined: Fri Nov 27, 2015 6:28 am

Re: GoFlex 3Tb can't make 3Tb partition

Postby luthiano » Thu Jan 07, 2016 1:40 am

Guys, yesterday I installed Arch Linux ARM in my GoFlex Home 3TB! :D

I wrote a guide step by step. The text is in Brazilian Portuguese, but people of other languages may follow commands without too much difficulty.
http://www.luthiano.com/Instalando-Arch ... Flex-Home/

I intend to write a guide to installation and configuration of SAMBA. Any tips?
luthiano
 
Posts: 1
Joined: Tue Jan 05, 2016 3:14 pm

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 13 guests

cron