nwsp2 classic gpt support

Re: nwsp2 classic gpt support

Postby fvdw » Sun Dec 30, 2012 8:43 pm

tja..

anyhow the partion table I use in gdisk can be of help or guidance
Code: Select all
 # ./gdisk -l /dev/sdc
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/sdc: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 740C1A75-5180-4575-B7B3-E189F19B8AA4
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
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         1050623   512.0 MiB   8300  Linux filesystem
   2         1050624         2099199   512.0 MiB   8300  Linux filesystem
   3         2099200         3147775   512.0 MiB   8200  Linux swap
   4         3147776         3155967   4.0 MiB     8300  Linux filesystem
   5         3155968         4728831   768.0 MiB   8300  Linux filesystem
   6         4728832         4745215   8.0 MiB     8300  Linux filesystem
   7         4745216         5793791   512.0 MiB   8300  Linux filesystem
   8         5793792      1953525134   928.8 GiB   8300  Linux filesystem
root@fvdwsl-nwsp2:/

Of course your partition 8 will be bigger just use the rest of the disk. In gdisk you can specify partion size instead of sectors
for sdb1 I use +512M and so on. (as long as they are a mutiple of 4096 Bytes you are ok, and remember 1 kB = 1024 Bytes)
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: nwsp2 classic gpt support

Postby minibike12 » Sun Dec 30, 2012 9:07 pm

Hmm ok.
Figured out how gdisk works.
Partitioned the disk with gpt table structure.

I've set the sector size to 4096 instead of the standard 2048

Edit:
Hmm, pc doesn't boot with gpt disks...
minibike12
 
Posts: 99
Joined: Sat Dec 22, 2012 9:23 pm
Location: The Netherlands

Re: nwsp2 classic gpt support

Postby minibike12 » Sun Dec 30, 2012 9:33 pm

Okey, next problem,
Formatted the drive with gdisk, rebooted pc, and partition table is gone...
minibike12
 
Posts: 99
Joined: Sat Dec 22, 2012 9:23 pm
Location: The Netherlands

Re: nwsp2 classic gpt support

Postby fvdw » Sun Dec 30, 2012 9:46 pm

minibike12 wrote:Okey, next problem,
Formatted the drive with gdisk, rebooted pc, and partition table is gone...


:laughat :scratch :whistle you must use the "w" command
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: nwsp2 classic gpt support

Postby minibike12 » Sun Dec 30, 2012 9:59 pm

That is the weird thing about it.
I've used the "w" command.
The terminal said that the partition table was saved succesful.
minibike12
 
Posts: 99
Joined: Sat Dec 22, 2012 9:23 pm
Location: The Netherlands

Re: nwsp2 classic gpt support

Postby fvdw » Sun Dec 30, 2012 10:06 pm

seems to be more difficult to make a GPT table then a new u-boot :sob
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: nwsp2 classic gpt support

Postby minibike12 » Sun Dec 30, 2012 10:20 pm

Apperently it is :dontknow

I guess i can use gparted too with cylinder alignment?
minibike12
 
Posts: 99
Joined: Sat Dec 22, 2012 9:23 pm
Location: The Netherlands

Re: nwsp2 classic gpt support

Postby fvdw » Sun Dec 30, 2012 10:21 pm

I guess you can, I never used gparted, but it was used by others
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: nwsp2 classic gpt support

Postby minibike12 » Mon Dec 31, 2012 1:39 am

Formatted with gparted.
Apparently it is not working.
Red/blue light flashing, aargh...
minibike12
 
Posts: 99
Joined: Sat Dec 22, 2012 9:23 pm
Location: The Netherlands

Re: nwsp2 classic gpt support

Postby fvdw » Mon Dec 31, 2012 8:58 am

mmm..strange...you didn't forgot to install Kernel on sda6 ?

I just connected the GPT disk I made once more and it just booted fine.

Its a painful process, how did the partition table look like ? (In gparted and fdisk)
and what were the physical and logical sector sizes ? (Physical must be 512 bytes !)

A possible issue could be LBA if the bootloader still uses 32 bits then the number of sectors on a 3TB will be to big it must support LBA64. You could try that to make sda8 only 2TB. Afterwards we can change of sda8


Think I buy me a 3TB and check it out ;)
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

PreviousNext

Return to Development

Who is online

Users browsing this forum: No registered users and 15 guests