General NAS-Central Forums

Welcome to the NAS community
It is currently Sun Jul 23, 2017 2:45 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Sun Feb 02, 2014 3:37 pm 
Offline

Joined: Sun Feb 02, 2014 3:21 pm
Posts: 4
Hello,

First of all, excuse my poor English, I am a native Dutch speaker..

I bought a Lacie 2Bigv2 without firmware (I know.. stupid..) Now I am trying to install new firmware using the tutorial from http://lacie.nas-central.org/wiki/Insta ... 82Big_2%29.

I am using Linux Mint 16 (livecd)

At first i was using a SATA to USB converter, but i was getting the " advanced format " error, ( 4096 bytes logical and physical ) so i opened up my pc and connected the disk directly to my sata port on my motherboard.

I was able to follow the tutorial to the end, but i am not able to set the partitions to Raid setting. Screenshot of fdisk:

mint tmp # fdisk -c=dos -u=cylinders /dev/sda

The device presents a logical sector size that is smaller than
the physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance may be impacted.

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (with command 'c').
WARNING: cylinders as display units are deprecated. Use command 'u' to
change units to sectors.

Command (m for help): p

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000f26c1

Device Boot Start End Blocks Id System
/dev/sda1 1 250 2008093+ 5 Extended
Partition 1 does not start on physical sector boundary.
/dev/sda2 251 121601 974751907+ 83 Linux
Partition 2 does not start on physical sector boundary.
/dev/sda5 1 32 256977 fd Linux raid autodetect
Partition 5 does not start on physical sector boundary.
/dev/sda6 33 33 8001 83 Linux
Partition 6 does not start on physical sector boundary.
/dev/sda7 34 34 8001 83 Linux
/dev/sda8 35 140 851413+ 83 Linux
Partition 8 does not start on physical sector boundary.
/dev/sda9 141 249 875511 83 Linux
Partition 9 does not start on physical sector boundary.
/dev/sda10 250 250 8001 83 Linux

Command (m for help):


I was also getting an error when i was trying to make /dev/sdb2 (data partition):

mint tmp # mdadm --stop /dev/md0
mdadm: stopped /dev/md0
mint tmp # mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda2 missing --metadata=0.90
mdadm: array /dev/md0 started.
mint tmp # mkfs.xfs /dev/md0
warning: device is not properly aligned /dev/md0
Use -f to force usage of a misaligned device
mint tmp # mkfs.xfs -f /dev/md0
warning: device is not properly aligned /dev/md0
meta-data=/dev/md0 isize=256 agcount=32, agsize=7615249 blks
= sectsz=512 attr=2, projid32bit=0
data = bsize=4096 blocks=243687952, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=118988, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
mint tmp # mdadm --stop /dev/mdo


As you can see, i followed the -f option. (force)

Can anybody tell me what i am doing wrong?
Help much appreciated! :)


Top
 Profile  
 
PostPosted: Sun Feb 02, 2014 10:09 pm 
Offline

Joined: Sun Feb 02, 2014 3:21 pm
Posts: 4
Nobody? :cry:


Top
 Profile  
 
PostPosted: Mon Feb 03, 2014 9:43 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6014
Forumnaam1 wrote:
Nobody? :cry:
In a hurry?

Actually I don't see any error in your logs. So what is the problem?


Top
 Profile  
 
PostPosted: Mon Feb 03, 2014 1:26 pm 
Offline

Joined: Sun Feb 02, 2014 3:21 pm
Posts: 4
Mijzelf wrote:
Forumnaam1 wrote:
Nobody? :cry:
In a hurry?

Actually I don't see any error in your logs. So what is the problem?



Hi Mijzelf,


Thanks for the reply, i am not really in a hurry, but i'm a little frustrated :oops: I have the 2Big now for a couple of weeks and want to use it so badly..
Do you see no errors? The notification about "does not start on physical sector boundary" is nothing to worry about? Can you tell me why i had to use -f ( force ) when i was trying to make /dev/sdb2 (data partition)? The partitions type also seems to be set as "Linux" instead of "Linux raid autodetect"? ( except for /sda5 which was created using mbr+label.gz )

The problem is a bleu blinking light of the Lacie.. en no visibility on network..

I will follow the tutorial all over again, .. maybe i forget something..


Top
 Profile  
 
PostPosted: Mon Feb 03, 2014 1:57 pm 
Offline

Joined: Thu Mar 08, 2012 7:47 pm
Posts: 90
Hi Forumnaam1,

I assume that you post about these warning "Partition 1 does not start on physical sector boundary."

Your disk is an Advanced Format disk (AF):
Code:
Sector size (logical/physical): 512 bytes / 4096 bytes
So each partition must start end start on a physical sector (4096) and not on a logical sector (512).

You can get it if you check for each partition that its size is divisible by 8 (8*512=4096).

So try this partition table
Code:
/dev/sda1 9 336   => (336-8)/8=41
/dev/sda2 337 121600    => (12160-336)/8=1478
/dev/sda5 17 48      => (48-16)/8=4
/dev/sda6 57 64      => (64-56)/8=1
/dev/sda7 73 80      => (80-72)/8=1
/dev/sda8 89 200      => (200-88)/8=14
/dev/sda9 209 320   => (320-208)/8=14
/dev/sda10 329 336   => (336-328)/8=1

Note : for each logical partition an offset of 8 must added (partition 5,6,7,8,9 and 10)


Top
 Profile  
 
PostPosted: Mon Feb 03, 2014 2:30 pm 
Offline

Joined: Sun Feb 02, 2014 3:21 pm
Posts: 4
Jocko wrote:
Hi Forumnaam1,

I assume that you post about these warning "Partition 1 does not start on physical sector boundary."

Your disk is an Advanced Format disk (AF):
Code:
Sector size (logical/physical): 512 bytes / 4096 bytes
So each partition must start end start on a physical sector (4096) and not on a logical sector (512).

You can get it if you check for each partition that its size is divisible by 8 (8*512=4096).

So try this partition table
Code:
/dev/sda1 9 336   => (336-8)/8=41
/dev/sda2 337 121600    => (12160-336)/8=1478
/dev/sda5 17 48      => (48-16)/8=4
/dev/sda6 57 64      => (64-56)/8=1
/dev/sda7 73 80      => (80-72)/8=1
/dev/sda8 89 200      => (200-88)/8=14
/dev/sda9 209 320   => (320-208)/8=14
/dev/sda10 329 336   => (336-328)/8=1

Note : for each logical partition an offset of 8 must added (partition 5,6,7,8,9 and 10)


Thanks for your reply Jocko,

Hmm.. so the pc still see the disk as Advanced Format.. I thought that connecting the disk to a "real" s-ata port on my motherboard it will shot the appropiate settings.. Before i tried a SATA / USB converter and it was showing 4096/4096.. I read somewhere in a thread on this forum that the only option was to connect the disk directly to the motherboard.. So i did en it was showing 512/4096. I thougth that this was correct, not knowing that both (logical and physical) must be 512.

Do you think that your suggestion works? Will this explain why the necessary partition types was net set to "linux raid autodetect" ? Because it can't write to adress 4096?

Thanks for the help so far!


Top
 Profile  
 
PostPosted: Mon Feb 03, 2014 3:54 pm 
Offline

Joined: Thu Mar 08, 2012 7:47 pm
Posts: 90
For another alternative firmware, we use this trick when it's an AF disk.

So this new partition table should work. (no longer wrong alignment warning). I check for each partition that its size is at least the same or bigger than the original.

Otherwise
Quote:
Will this explain why the necessary partition types was not set to "linux raid autodetect" ?
I don't known but with a try you will get the answer :mrgreen:

Note: after creating a partition, you can change later its type and if I remember well with the option t


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group