nwsp2 classic gpt support

Re: nwsp2 classic gpt support

Postby fvdw » Mon Dec 24, 2012 1:30 pm

In this post a user managed to get a disk working that was giving 4096 bytes as logical sector size in fdisk
viewtopic.php?f=11&t=950&start=20
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 24, 2012 1:44 pm

Ah, i've been using an usb hdd enclosure, this causes the 4k sectors according to that post.
So in theory, when i connect the disk through sata to a pc, it should show 512bytes sectors.
Hmm, i will try this in a bit.
I've had the red/blue blink problem too.

But i still have to use the losetup, to use the 3TB.
Do you think i can pull it off to get it working?
Or is it a small chance?
minibike12
 
Posts: 99
Joined: Sat Dec 22, 2012 9:23 pm
Location: The Netherlands

Re: nwsp2 classic gpt support

Postby Mijzelf » Mon Dec 24, 2012 1:51 pm

When you have 4kiB sectors over usb, and 512 bytes sectors over sata, it's clearly not the disk itself which is enforcing it. How about
Code: Select all
fdisk -b 512
Mijzelf
 
Posts: 255
Joined: Wed Nov 21, 2012 9:12 am

Re: nwsp2 classic gpt support

Postby fvdw » Mon Dec 24, 2012 1:52 pm

minibike12 wrote:..

But i still have to use the losetup, to use the 3TB.
Do you think i can pull it off to get it working?
Or is it a small chance?

it is worth a try, flashing the bootloader is "new land" and has a risk . If this trick of myself works then that risk can be omitted.. although I would like to know if the new u-boot would make it GPT capable
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 24, 2012 2:27 pm

fvdw wrote:it is worth a try, flashing the bootloader is "new land" and has a risk . If this trick of myself works then that risk can be omitted.. although I would like to know if the new u-boot would make it GPT capable


I would like to know this too.
I know someone that owns 2 classic nwsp2 cases, but he doesn't want to sell it :dry
And i can't experiment with the nwsp2 classic we have now since i am not the only user.
Bummer...

Anyway,
Experimenting with fdisk again.
I've 512bytes logical and physical sectors working.
But I/O size is still 4k, for minimum and optimal.
Is this a problem?

Edit: ok new problem.
Partition 6 t/m 8 do not start on physical sector boundary.
Is this a problem?

Here is a print of the terminal.

Code: Select all
Command (m for help): p

Disk /dev/sdd: 3000.6 GB, 3000558944256 bytes
255 heads, 63 sectors/track, 364797 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x388032dc

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1          64      513056   83  Linux
/dev/sdd2              65         128      514080   83  Linux
/dev/sdd3             129         192      514080   83  Linux
/dev/sdd4             193         400     1670760    5  Extended
/dev/sdd5             193         292      802226   83  Linux
/dev/sdd6             293         293        7008+  83  Linux
Partition 6 does not start on physical sector boundary.
/dev/sdd7             294         357      513056   83  Linux
Partition 7 does not start on physical sector boundary.
/dev/sdd8             358         400      344373+  83  Linux
Partition 8 does not start on physical sector boundary.


Edit 2 : An other problem.
Cant format sdd5 and sdd8 with mke2fs.
When using cat /proc/partitions i get this.
Code: Select all
   8       48 2930233344 sdd
   8       49    4104448 sdd1
   8       50    4112640 sdd2
   8       51    4112640 sdd3
   8       52          4 sdd4


It can't find sdd5 till sdd8.
But when i use fdisk command "p"
It shows sdd1 till sdd8.
What is happening here.

P.s. Still using usb casing.
Should open it and use sata connection?
Last edited by minibike12 on Mon Dec 24, 2012 2:59 pm, edited 1 time in total.
minibike12
 
Posts: 99
Joined: Sat Dec 22, 2012 9:23 pm
Location: The Netherlands

Re: nwsp2 classic gpt support

Postby fvdw » Mon Dec 24, 2012 2:57 pm

don't know if this I/O remark is a problem, we will see

Code: Select all
use this partition table to avoid the message
Partition 1 start 9 end 72
partition 2 start 73 end 136
partition 3 start 137 en 200
partition 4 start 201 end 400
Partition 5 start 209 end 312
Partition 6 start 321 end 328
Partition 7 start 337 end 400


Do not define partition 8 (no need in your case as we are going to use a loop device to allocate the remaining space)

ps be sure to choose offset to be an multiple of 4096 bytes. If you don't do that performance of the disk can be affected a lot (see advanced HDD info internet) it is also the reason why we use for partition 8 as start cylinder nr 409
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: nwsp2 classic gpt support

Postby fvdw » Mon Dec 24, 2012 3:00 pm

I edited above post there was a mistake in partition 4, that should no end with partition 7
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 24, 2012 3:07 pm

Partition 1 start 9 end 72
partition 2 start 73 end 136
partition 3 start 137 en 200
partition 4 start 201 end 400
Partition 5 start 209 end 312
Partition 6 start 321 end 328
Partition 7 start 337 end 400
Don't maken partition 8?

Which partition is primary, extended and logic?

What is the offset to use?

And did you see my Edit 2 few posts back?
minibike12
 
Posts: 99
Joined: Sat Dec 22, 2012 9:23 pm
Location: The Netherlands

Re: nwsp2 classic gpt support

Postby fvdw » Mon Dec 24, 2012 3:22 pm

partition 4 is extended and 5-6-7 logical (1-2-3 are primary)

offset to be used
the last sector not to be used will and at byte 408*8225280 = 3355914240 bytes
So you would expect that it must be 3355914240

or the one suggested by myself 3686809600
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 24, 2012 3:29 pm

Ah stupid.
Overlooked that partition 4 ended on 400 and thus was an extended partition.

Offset does not change even though i start loop on cylinder 409?
minibike12
 
Posts: 99
Joined: Sat Dec 22, 2012 9:23 pm
Location: The Netherlands

PreviousNext

Return to Development

Who is online

Users browsing this forum: No registered users and 6 guests