Large HDD >2TB

Re: Large HDD >2TB

Postby fvdw » Mon Feb 11, 2013 9:49 am

In gdisk you must select expert option to set align on 4096 boundaries (use the ? in gdisk to find the command)
For partition 4 and 6 just chooce Linux as filesytem type in gdisk
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Large HDD >2TB

Postby SerG_KatsO » Mon Feb 11, 2013 12:54 pm

Code: Select all
Expert command (? for help): p
Disk /dev/sdb: 7814037168 sectors, 3.6 TiB
Disk identifier (GUID): 7C2C9CA8-7199-1303-1253-4D4DBF0FC124
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 3519069838
Total free space is 7814037101 sectors (3.6 TiB)

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

Expert command (? for help): ?
a   set attributes
c   change partition GUID
e   relocate backup data structures to the end of the disk
g   change disk GUID
i   show detailed information on a partition
m   return to main menu
n   create a new protective MBR
o   print protective MBR data
p   print the partition table
q   quit without saving changes
r   recovery and transformation options (experts only)
s   resize partition table
v   verify disk
w   write table to disk and exit
z   zap (destroy) GPT data structures and exit
?   print this menu

Expert command (? for help):

I do not know how to do?
Сan be written in steps?
SerG_KatsO
Donator VIP
Donator VIP
 
Posts: 21
Joined: Wed Oct 31, 2012 10:07 am
Location: Moscow, RUSSIA

Re: Large HDD >2TB

Postby SerG_KatsO » Wed Feb 13, 2013 6:05 am

OK.I updated my Ubuntu and appeared menu "set the sector alignment value" in gdisk. But no
not solved the problem. Current partitions:
Code: Select all
Command (? for help): p
Disk /dev/sdb: 7814037168 sectors, 3.6 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 7C2C9CA8-7199-1303-1253-4D4DBF0FC124
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 7814037134
Partitions will be aligned on 2048-sector boundaries
Total free space is 4062 sectors (2.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            4096         1052671   512.0 MiB   8300  Linux filesystem
   2         1052672         2101247   512.0 MiB   8300  Linux filesystem
   3         2101248         3149823   512.0 MiB   8300  Linux filesystem
   4         3149824         3166207   8.0 MiB     8200  Linux swap
   5         3166208         4739071   768.0 MiB   8300  Linux filesystem
   6         4739072         4755455   8.0 MiB     8300  Linux filesystem
   7         4755456         5804031   512.0 MiB   8300  Linux filesystem
   8         5804032      7814037134   3.6 TiB     8300  Linux filesystem

I gave the command sector aligment:
Code: Select all
Expert command (? for help): l
Enter the sector alignment value (1-65536, default = 2048): 4096

Expert 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).
The operation has completed successfully.
root@pablo-desktop:/home/pablo# gdisk /dev/sdb
GPT fdisk (gdisk) version 0.8.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/sdb: 7814037168 sectors, 3.6 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 7C2C9CA8-7199-1303-1253-4D4DBF0FC124
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 7814037134
Partitions will be aligned on 2048-sector boundaries    <--------------------------------------------- WTF???
Total free space is 4062 sectors (2.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            4096         1052671   512.0 MiB   8300  Linux filesystem
   2         1052672         2101247   512.0 MiB   8300  Linux filesystem
   3         2101248         3149823   512.0 MiB   8300  Linux filesystem
   4         3149824         3166207   8.0 MiB     8200  Linux swap
   5         3166208         4739071   768.0 MiB   8300  Linux filesystem
   6         4739072         4755455   8.0 MiB     8300  Linux filesystem
   7         4755456         5804031   512.0 MiB   8300  Linux filesystem
   8         5804032      7814037134   3.6 TiB     8300  Linux filesystem

I repartition disk many times.
Many times make fs on partitions /dev/sdb5 and /dev/sdb8
And i write UIMAGE-26394-NWSP2CL-59 to /dev/sdb6
write firmware xfvdw-sl-14-0-nwsp2-23dec2012.bin to /dev/sdb1, /dev/sdb2, /dev/sdb7 And also expand tar ball in /dev/sdb5
System loading but not started. In network is not visible. I view mac-table in my switch and not visible mac-adress Lacie after booting
Help me please.
SerG_KatsO
Donator VIP
Donator VIP
 
Posts: 21
Joined: Wed Oct 31, 2012 10:07 am
Location: Moscow, RUSSIA

Re: Large HDD >2TB

Postby fvdw » Wed Feb 13, 2013 8:53 am

your partition table is fine and alignment on 4096 boundaries
When you start gdisk it mentions the value its going to use if you make a new table.

Why it is not booting is something else.
You must not write the ".bin" file to sdb1, 2 and 7.
The bin file is an bz2 compressed archive to be used via firmware upgrade menu when the firmware is running.
You must use the disk image that is packed inside the image.
You can extract it in Ubuntu using
Code: Select all
tar -xjvf firmare-name.bin

You will get several files, one of them big with extensions ".img" thats the one you need to write to sdb1,2 and 7
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Large HDD >2TB

Postby SerG_KatsO » Wed Feb 13, 2013 9:16 am

I record images strictly according to instructions from viewtopic.php?f=7&t=336:
Code: Select all
dd if=/path-to-kernel-image/UIMAGE-26xyz-NWSP2CL-n of=/dev/sdb6

Of course the path and file names I have other.
Recorded in the same firmware:
Code: Select all
dd if=path-to-firmware/fvdw-sl..... of=/dev/sdb1{2,7}

And tar ball unpack:
Code: Select all
cd /mnt-sdb5
tar -xzvf sda-lacie-nwsp.tar.gz
chmod 777 /mnt-sdb5/etc/nas_conf_db.xml

strictly according to instructions!
So did directory "public" in /dev/sdb8
SerG_KatsO
Donator VIP
Donator VIP
 
Posts: 21
Joined: Wed Oct 31, 2012 10:07 am
Location: Moscow, RUSSIA

Re: Large HDD >2TB

Postby fvdw » Wed Feb 13, 2013 5:32 pm

what file did you write to sdb1, 2 and 3 ? a file with extensin .img of 256 MB or the .bin file ?

the swap in your partition table is the wrong partition it should be sdb3 (sorry did not nice that) But I don't think this is the problem
What is the behavior of the blue led when booting ?

below the partition table of my 3 TB WD green disk
Code: Select all
root@fvdwsl-nwsp2:/ # gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.5

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

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): BCCC1E49-2DBF-4FCF-9FE5-24DCA0013C87
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 4062 sectors (2.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            4096         1052671   512.0 MiB   8300  Linux filesystem
   2         1052672         2101247   512.0 MiB   8300  Linux filesystem
   3         2101248         3149823   512.0 MiB   8200  Linux swap
   4         3149824         3166207   8.0 MiB     8300  Linux filesystem
   5         3166208         4739071   768.0 MiB   8300  Linux filesystem
   6         4739072         4755455   8.0 MiB     8300  Linux filesystem
   7         4755456         5804031   512.0 MiB   8300  Linux filesystem
   8         5804032      5860533134   2.7 TiB     8300  Linux filesystem
root@fvdwsl-nwsp2:/ #
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Large HDD >2TB

Postby fvdw » Wed Feb 13, 2013 5:51 pm

ps you can also connect with "clunc" and see if it recognize your disk
use command (at Marvell>> prompt)
Code: Select all
ide reset

and
Code: Select all
ide part

to see if partitions are recognized.

If the partitions are recognized, you can try to boot the kernel from sda6,
you should give this command (assuming you gave the above commands first)
Code: Select all
disk 0x800000 0:6
bootm
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Large HDD >2TB

Postby SerG_KatsO » Thu Feb 14, 2013 6:58 am

I did it! Earned! :bananadance

Indeed, I flash a wrong image into sections 1,2,7

[ img ]


Thank you very much !!!
SerG_KatsO
Donator VIP
Donator VIP
 
Posts: 21
Joined: Wed Oct 31, 2012 10:07 am
Location: Moscow, RUSSIA

Previous

Return to Development

Who is online

Users browsing this forum: Bing Bot and 21 guests