Re: [PLUG] Hard drive: size discrepancy

2018-11-13 Thread Rich Shepard

On Mon, 12 Nov 2018, Galen Seitz wrote:


No, you can't change the sector size. If you have the disk directly
connected to your system using SATA, I can't explain why you are having
this problem.


Galen,

  It's a naked, internal drive but the adapter I've been using to connect
drives to hosts is 10-12 years old usb2. Just ordered a usb3 to sata
replacement. As this is the only drive > 2T that I've partitioned and
formatted with the current adapter it's highly likely that it has the 2T
limit.

  When the new adapter arrives I'll post results.

Regards,

Rich
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Hard drive: size discrepancy

2018-11-12 Thread Rich Shepard

On Mon, 12 Nov 2018, Galen Seitz wrote:


If you can, connect the disk via SATA and post the output of this command:
sudo parted /dev/my_disk print


Galen,

  Aha! it's not internally connected. The multibay enclosure has both USB
and SATA connectors; I've been using the USB one. I'll find an external SATA
port (I think the motherboard has one) and use that.

Best regards,

Rich
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Hard drive: size discrepancy

2018-11-12 Thread Galen Seitz

On 11/12/2018 09:45 AM, Rich Shepard wrote:

On Mon, 12 Nov 2018, Galen Seitz wrote:


The 32 bit limit that was mentioned in an Ubuntu forum relates to some
USB<->SATA converters. Apparently some controllers have internal sector
registers that are only 32 bits.

Number of 512 byte sectors in 3 TB drive
3e12 / 512 = 5.9e9 sectors

Assuming 32 bit wrapping (modulo 2^32)
5.9e9 - 2^32 = 1.6e9 sectors

Drive size after wrapping
1.6e9 * 512 = 801 GB


Galen,

   So the sector size should be increased?


No, you can't change the sector size.  If you have the disk directly 
connected to your system using SATA, I can't explain why you are having 
this problem.


If you can, connect the disk via SATA and post the output of this command:
sudo parted /dev/my_disk print


galen
--
Galen Seitz
gal...@seitzassoc.com
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Hard drive: size discrepancy

2018-11-12 Thread Rich Shepard

On Mon, 12 Nov 2018, Galen Seitz wrote:


The 32 bit limit that was mentioned in an Ubuntu forum relates to some
USB<->SATA converters. Apparently some controllers have internal sector
registers that are only 32 bits.

Number of 512 byte sectors in 3 TB drive
3e12 / 512 = 5.9e9 sectors

Assuming 32 bit wrapping (modulo 2^32)
5.9e9 - 2^32 = 1.6e9 sectors

Drive size after wrapping
1.6e9 * 512 = 801 GB


Galen,

  So the sector size should be increased?

Thanks,

Rich
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Hard drive: size discrepancy

2018-11-12 Thread Galen Seitz

On 11/11/2018 05:31 PM, Tomas Kuchta wrote:

Disks we're not limited to <3 TB on 32b systems. The only limit there ever
was old MS FAT.


The 32 bit limit that was mentioned in an Ubuntu forum relates to some 
USB<->SATA converters.  Apparently some controllers have internal sector 
registers that are only 32 bits.


Number of 512 byte sectors in 3 TB drive
3e12 / 512 = 5.9e9 sectors

Assuming 32 bit wrapping (modulo 2^32)
5.9e9 - 2^32 = 1.6e9 sectors

Drive size after wrapping
1.6e9 * 512 = 801 GB


galen
--
Galen Seitz
gal...@seitzassoc.com
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Hard drive: size discrepancy

2018-11-12 Thread Rich Shepard

On Mon, 12 Nov 2018, Tomas Kuchta wrote:


Disks we're not limited to <3 TB on 32b systems. The only limit there ever
was old MS FAT.


Tomas,

  Whatever the reason, this one does not want to reveal all its capabilites.
Yet. I checked the Seagate site (as the disk label suggests) and found only
information for Windows users on installation, formatting, and similar
topics. No e-mail contact for non-warranty repair technical support. So,
time to ask on a hardware-related forum (perhaps Tom's Hardware or LQ).

  MS FAT is an appropriate description.

Regards,

Rich
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Hard drive: size discrepancy

2018-11-11 Thread Tomas Kuchta
Disks we're not limited to <3 TB on 32b systems. The only limit there ever
was old MS FAT.

T

On Mon, Nov 12, 2018, 2:54 AM Rich Shepard  On Sun, 11 Nov 2018, Galen Seitz wrote:
>
> > How is the disk connected to your system? USB? Perhaps this applies:
> > 
>
> galen,
>
>Looks like drives sold in external USB enclosures do have different
> firmware on the drives. As a response on that thread wrote, "There have
> been
> several posts about this type of problem in the past on this forum. The
> usual culprit is a USB drive enclosure that has a 32-bit limitation. ...
> I've never heard of this problem showing up in Linux with internal drives,
> but it's theoretically possible."
>
>So I guess it's now a 750G drive since it started life as an external
> drive and I intended it to remain so, but in a multi-drive bay.
>
> Thanks very much,
>
> Rich
>
>
> ___
> PLUG mailing list
> PLUG@pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Hard drive: size discrepancy

2018-11-11 Thread Rich Shepard

On Sun, 11 Nov 2018, Galen Seitz wrote:


How is the disk connected to your system? USB? Perhaps this applies:



galen,

  Looks like drives sold in external USB enclosures do have different
firmware on the drives. As a response on that thread wrote, "There have been
several posts about this type of problem in the past on this forum. The
usual culprit is a USB drive enclosure that has a 32-bit limitation. ...
I've never heard of this problem showing up in Linux with internal drives,
but it's theoretically possible."

  So I guess it's now a 750G drive since it started life as an external
drive and I intended it to remain so, but in a multi-drive bay.

Thanks very much,

Rich


___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Hard drive: size discrepancy

2018-11-11 Thread Rich Shepard

On Sun, 11 Nov 2018, Galen Seitz wrote:


sudo parted /dev/my_disk print
What does this show for the size of the disk?


galen,

  I used parted -l /dev/sdc. The tool showed all three disks; it reported sdc
having 802G capacity. parted /dev/sdc print reports the same 802G.

  Seems like this drive just will not allow access to the full 3T when
outside of its original case. Perhaps Seagate builds the firmware
differently when the drive is sold in an external enclosure rather than for
internal use in a desktop.

  So, since we seem to have exhausted possibilities (fdisk, cfdisk, lsblk,
parted, gparted) I need to replace it with a known-good internal hard drive.
Will order from Newegg later today.

Thanks,

Rich
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Hard drive: size discrepancy

2018-11-11 Thread Galen Seitz

On 11/11/2018 10:39 AM, Galen Seitz wrote:

On 11/11/2018 10:33 AM, Rich Shepard wrote:

On Sun, 11 Nov 2018, Bill Barry wrote:


These might reveal something.
fdisk -l /dev/sdb
lsblk


Bill,

   Thank you. I looked at the output of both before writing to the 
mail list.

Each shows ~750G available.



sudo parted /dev/my_disk print

What does this show for the size of the disk?


galen


How is the disk connected to your system?  USB?  Perhaps this applies:




galen
--
Galen Seitz
gal...@seitzassoc.com
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Hard drive: size discrepancy

2018-11-11 Thread Galen Seitz

On 11/11/2018 10:33 AM, Rich Shepard wrote:

On Sun, 11 Nov 2018, Bill Barry wrote:


These might reveal something.
fdisk -l /dev/sdb
lsblk


Bill,

   Thank you. I looked at the output of both before writing to the mail 
list.

Each shows ~750G available.



sudo parted /dev/my_disk print

What does this show for the size of the disk?


galen
--
Galen Seitz
gal...@seitzassoc.com
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Hard drive: size discrepancy

2018-11-11 Thread Rich Shepard

On Sun, 11 Nov 2018, Bill Barry wrote:


These might reveal something.
fdisk -l /dev/sdb
lsblk


Bill,

  Thank you. I looked at the output of both before writing to the mail list.
Each shows ~750G available.

Regards,

Rich
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Hard drive: size discrepancy

2018-11-11 Thread Bill Barry
On Sun, Nov 11, 2018, 12:15 PM Rich Shepard  On Sun, 11 Nov 2018, Galen Seitz wrote:
>
> > Do you have the parted command available? I doubt it will make a
> > difference, but it's worth a try. That's what I use here.
>
> galen.
>
>I used gparted and parted is also available. I've used cfdisk on new
> drives to create a partition table type and partitions, then mke2fs to
> install a file system on them. Haven't used parted/gparted before now.
>
> Thanks,
>
> Rich
>

These might reveal something.

fdisk -l /dev/sdb

lsblk

Bill

>
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Hard drive: size discrepancy

2018-11-11 Thread Rich Shepard

On Sun, 11 Nov 2018, Galen Seitz wrote:


Do you have the parted command available? I doubt it will make a
difference, but it's worth a try. That's what I use here.


galen.

  I used gparted and parted is also available. I've used cfdisk on new
drives to create a partition table type and partitions, then mke2fs to
install a file system on them. Haven't used parted/gparted before now.

Thanks,

Rich
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Hard drive: size discrepancy

2018-11-11 Thread Rich Shepard

On Sun, 11 Nov 2018, Rich Shepard wrote:


 Will try on the new desktop.


  Sigh. No difference.

  Anything else I can try before this goes to Free Geek?

Rich
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Hard drive: size discrepancy

2018-11-11 Thread Rich Shepard

On Sun, 11 Nov 2018, Rich Shepard wrote:


I no longer remember how to translate these numbers to disk capacity, but
it's missing about 2.25T.


  Ah, wait. I just had a thought that might be inportant. The drive is
connected to the old desktop and with an MBR partition type it may not be
able to see the 3T, although it did when the drive was in its original case.
(Might have been firmware foo in the enclosure.)

  Will try on the new desktop.

Rich
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Hard drive: size discrepancy

2018-11-11 Thread Rich Shepard

On Sat, 10 Nov 2018, Galen Seitz wrote:


dd if=/dev/zero of=/dev/my_raw_scratch_disk bs=1M count=1


Galen,

  Unfortunately, this makes no difference. gparted still sees only 750G. The
device information it shows is:

Model:  ST330006 51AS
Serial: None 
Size: 	746.52GiB

Path:   /dev/sdb

Partition table:gpt
Heads:  255
Sectors/track:  63
Cylinders:  97451
Total sectors:  1565565872
Sector size:512

  I no longer remember how to translate these numbers to disk capacity, but
it's missing about 2.25T.

Regards,

Rich
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Hard drive: size discrepancy

2018-11-10 Thread Rich Shepard

On Sat, 10 Nov 2018, Galen Seitz wrote:


dd if=/dev/zero of=/dev/my_raw_scratch_disk bs=1M count=1

This will zero the first megabyte of the disk, wiping any existing
partition table. Then try partitioning again. Be sure you are using the
whole device and not a partion (i.e. /dev/sdX and not /dev/sdXN).


galen,

  Thank you. The drive is seen as /dev/sdb and that's why I was puzzled that
not all 3T were seen.

  A task for tomorrow morning.

Best regards,

Rich
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Hard drive: size discrepancy

2018-11-10 Thread Galen Seitz

On 11/10/2018 03:15 PM, Rich Shepard wrote:
   I have a Seagate Barracuda XT with marked capacity of 3000GB. It was 
in a

sealed external enclosure which I disassembled.

   The drive had a MBR/DOS partition table type. I used gparted to change
that to GPT. However, gparted sees only 746.52GB on the drive. It still has
a DOS/MBR boot sector.

   What can I do to find the missing space on the drive and remove the MBR
since it's no longer needed.


dd if=/dev/zero of=/dev/my_raw_scratch_disk bs=1M count=1

This will zero the first megabyte of the disk, wiping any existing 
partition table.  Then try partitioning again.  Be sure you are using 
the whole device and not a partion (i.e. /dev/sdX and not /dev/sdXN).



galen
--
Galen Seitz
gal...@seitzassoc.com
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


[PLUG] Hard drive: size discrepancy

2018-11-10 Thread Rich Shepard

  I have a Seagate Barracuda XT with marked capacity of 3000GB. It was in a
sealed external enclosure which I disassembled.

  The drive had a MBR/DOS partition table type. I used gparted to change
that to GPT. However, gparted sees only 746.52GB on the drive. It still has
a DOS/MBR boot sector.

  What can I do to find the missing space on the drive and remove the MBR
since it's no longer needed.

TIA,

Rich
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug