public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Fdisk reports new HD as 10MiB
@ 2019-07-05 14:12 Robin Atwood
  2019-07-05 14:14 ` Vladimir Romanov
  0 siblings, 1 reply; 25+ messages in thread
From: Robin Atwood @ 2019-07-05 14:12 UTC (permalink / raw
  To: gentoo-user

I just bought a new "2TB" Western Digital hard drive. Imagine my
surprise when fdisk reports it is only 10MiB in capacity! Is there
anything I can do to rectify this (of a technical nature)? I live in
Bangkok so it is not unlikely the guy in the little shop where I bought
it sold me a load of junk. But the device is in warranty until 2022
and looks convincing (I checked the serial number on the WD web
site). Of course I can go to the WD service centre and get the HD
exchanged but I thought I would see if there were any technical
wheezes first.   

Thanks
Robin
-- 
----------------------------------------------------------------------
Robin Atwood.

"Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst"
         from "Mandalay" by Rudyard Kipling
----------------------------------------------------------------------









-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-05 14:12 [gentoo-user] Fdisk reports new HD as 10MiB Robin Atwood
@ 2019-07-05 14:14 ` Vladimir Romanov
  2019-07-05 14:30   ` Robin Atwood
  2019-07-09 22:06   ` Mike Gilbert
  0 siblings, 2 replies; 25+ messages in thread
From: Vladimir Romanov @ 2019-07-05 14:14 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1364 bytes --]

Fdisk can not work with drives larger than 2TB. Your drive may be slightly
(10 mb) larger than that, so the result. For such disks you need not Fdisk,
but GPT programs.

пт, 5 июл. 2019 г., 19:12 Robin Atwood <robin@binro.org>:

> I just bought a new "2TB" Western Digital hard drive. Imagine my
> surprise when fdisk reports it is only 10MiB in capacity! Is there
> anything I can do to rectify this (of a technical nature)? I live in
> Bangkok so it is not unlikely the guy in the little shop where I bought
> it sold me a load of junk. But the device is in warranty until 2022
> and looks convincing (I checked the serial number on the WD web
> site). Of course I can go to the WD service centre and get the HD
> exchanged but I thought I would see if there were any technical
> wheezes first.
>
> Thanks
> Robin
> --
> ----------------------------------------------------------------------
> Robin Atwood.
>
> "Ship me somewheres east of Suez, where the best is like the worst,
>  Where there ain't no Ten Commandments an' a man can raise a thirst"
>          from "Mandalay" by Rudyard Kipling
> ----------------------------------------------------------------------
>
>
>
>
>
>
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>

[-- Attachment #2: Type: text/html, Size: 1746 bytes --]

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-05 14:14 ` Vladimir Romanov
@ 2019-07-05 14:30   ` Robin Atwood
  2019-07-05 14:31     ` Vladimir Romanov
                       ` (2 more replies)
  2019-07-09 22:06   ` Mike Gilbert
  1 sibling, 3 replies; 25+ messages in thread
From: Robin Atwood @ 2019-07-05 14:30 UTC (permalink / raw
  To: gentoo-user

On Fri, 5 Jul 2019 19:14:35 +0500
Vladimir Romanov <blueboar2@gmail.com> wrote:

> Fdisk can not work with drives larger than 2TB. Your drive may be
> slightly (10 mb) larger than that, so the result. For such disks you
> need not Fdisk, but GPT programs.
> 
> пт, 5 июл. 2019 г., 19:12 Robin Atwood <robin@binro.org>:
> 
> > I just bought a new "2TB" Western Digital hard drive. Imagine my
> > surprise when fdisk reports it is only 10MiB in capacity! Is there
> > anything I can do to rectify this (of a technical nature)? I live in
> > Bangkok so it is not unlikely the guy in the little shop where I
> > bought it sold me a load of junk. But the device is in warranty
> > until 2022 and looks convincing (I checked the serial number on the
> > WD web site). Of course I can go to the WD service centre and get
> > the HD exchanged but I thought I would see if there were any
> > technical wheezes first.

Thanks Vladimir, that sounds promising. Can you recommend any GPT
programs (this is new to me)? However the dd utility failed when I
tried to copy my old HD to the new one. 

# dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync  
dd: error writing '/dev/sdb': No space left on device
160+0 records in
159+0 records out
10481664 bytes (10 MB, 10 MiB) copied, 0.132944 s, 78.8 MB/s

Cheers
Robin
-- 
----------------------------------------------------------------------
Robin Atwood.

"Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst"
         from "Mandalay" by Rudyard Kipling
----------------------------------------------------------------------









-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-05 14:30   ` Robin Atwood
@ 2019-07-05 14:31     ` Vladimir Romanov
  2019-07-05 14:36       ` Robin Atwood
  2019-07-05 14:34     ` Mick
  2019-07-06 22:23     ` Wol's lists
  2 siblings, 1 reply; 25+ messages in thread
From: Vladimir Romanov @ 2019-07-05 14:31 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2063 bytes --]

Well, dd should work well in any case. May be your drive is broken really?

пт, 5 июл. 2019 г., 19:30 Robin Atwood <robin@binro.org>:

> On Fri, 5 Jul 2019 19:14:35 +0500
> Vladimir Romanov <blueboar2@gmail.com> wrote:
>
> > Fdisk can not work with drives larger than 2TB. Your drive may be
> > slightly (10 mb) larger than that, so the result. For such disks you
> > need not Fdisk, but GPT programs.
> >
> > пт, 5 июл. 2019 г., 19:12 Robin Atwood <robin@binro.org>:
> >
> > > I just bought a new "2TB" Western Digital hard drive. Imagine my
> > > surprise when fdisk reports it is only 10MiB in capacity! Is there
> > > anything I can do to rectify this (of a technical nature)? I live in
> > > Bangkok so it is not unlikely the guy in the little shop where I
> > > bought it sold me a load of junk. But the device is in warranty
> > > until 2022 and looks convincing (I checked the serial number on the
> > > WD web site). Of course I can go to the WD service centre and get
> > > the HD exchanged but I thought I would see if there were any
> > > technical wheezes first.
>
> Thanks Vladimir, that sounds promising. Can you recommend any GPT
> programs (this is new to me)? However the dd utility failed when I
> tried to copy my old HD to the new one.
>
> # dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync
> dd: error writing '/dev/sdb': No space left on device
> 160+0 records in
> 159+0 records out
> 10481664 bytes (10 MB, 10 MiB) copied, 0.132944 s, 78.8 MB/s
>
> Cheers
> Robin
> --
> ----------------------------------------------------------------------
> Robin Atwood.
>
> "Ship me somewheres east of Suez, where the best is like the worst,
>  Where there ain't no Ten Commandments an' a man can raise a thirst"
>          from "Mandalay" by Rudyard Kipling
> ----------------------------------------------------------------------
>
>
>
>
>
>
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>

[-- Attachment #2: Type: text/html, Size: 2725 bytes --]

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-05 14:30   ` Robin Atwood
  2019-07-05 14:31     ` Vladimir Romanov
@ 2019-07-05 14:34     ` Mick
  2019-07-05 14:44       ` Robin Atwood
  2019-07-06 22:23     ` Wol's lists
  2 siblings, 1 reply; 25+ messages in thread
From: Mick @ 2019-07-05 14:34 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 917 bytes --]

On Friday, 5 July 2019 15:30:06 BST Robin Atwood wrote:

> Thanks Vladimir, that sounds promising. Can you recommend any GPT
> programs (this is new to me)? However the dd utility failed when I
> tried to copy my old HD to the new one.
> 
> # dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync
> dd: error writing '/dev/sdb': No space left on device
> 160+0 records in
> 159+0 records out
> 10481664 bytes (10 MB, 10 MiB) copied, 0.132944 s, 78.8 MB/s
> 
> Cheers
> Robin

You can use gptfdisk, parted/gparted, etc.

To check the size as well as additional information you can use smartmontools 
and run:

smartctl -i /dev/sda

It may also be worth checking if later firmware is available to address any 
issues with it, like reporting the wrong size with some tools.

However, the dd command failure sounds suspicious - as I understand it dd 
should not fail unless the disk has run out of space.
-- 
Regards,

Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-05 14:31     ` Vladimir Romanov
@ 2019-07-05 14:36       ` Robin Atwood
  2019-07-05 14:40         ` Vladimir Romanov
  0 siblings, 1 reply; 25+ messages in thread
From: Robin Atwood @ 2019-07-05 14:36 UTC (permalink / raw
  To: gentoo-user

On Fri, 5 Jul 2019 19:31:39 +0500
Vladimir Romanov <blueboar2@gmail.com> wrote:

> Well, dd should work well in any case. May be your drive is broken
> really?
> 
> пт, 5 июл. 2019 г., 19:30 Robin Atwood <robin@binro.org>:
> 
> > On Fri, 5 Jul 2019 19:14:35 +0500
> > Vladimir Romanov <blueboar2@gmail.com> wrote:
> >
> > > Fdisk can not work with drives larger than 2TB. Your drive may be
> > > slightly (10 mb) larger than that, so the result. For such disks
> > > you need not Fdisk, but GPT programs.
> > >
> > > пт, 5 июл. 2019 г., 19:12 Robin Atwood <robin@binro.org>:
> > >
> > > > I just bought a new "2TB" Western Digital hard drive. Imagine my
> > > > surprise when fdisk reports it is only 10MiB in capacity! Is
> > > > there anything I can do to rectify this (of a technical
> > > > nature)? I live in Bangkok so it is not unlikely the guy in the
> > > > little shop where I bought it sold me a load of junk. But the
> > > > device is in warranty until 2022 and looks convincing (I
> > > > checked the serial number on the WD web site). Of course I can
> > > > go to the WD service centre and get the HD exchanged but I
> > > > thought I would see if there were any technical wheezes first.
> >
> > Thanks Vladimir, that sounds promising. Can you recommend any GPT
> > programs (this is new to me)? However the dd utility failed when I
> > tried to copy my old HD to the new one.
> >
> > # dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync
> > dd: error writing '/dev/sdb': No space left on device
> > 160+0 records in
> > 159+0 records out
> > 10481664 bytes (10 MB, 10 MiB) copied, 0.132944 s, 78.8 MB/s

It looks like it. :(

Robin
-- 
----------------------------------------------------------------------
Robin Atwood.

"Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst"
         from "Mandalay" by Rudyard Kipling
----------------------------------------------------------------------









-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-05 14:36       ` Robin Atwood
@ 2019-07-05 14:40         ` Vladimir Romanov
  2019-07-05 15:42           ` Grant Taylor
  0 siblings, 1 reply; 25+ messages in thread
From: Vladimir Romanov @ 2019-07-05 14:40 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2457 bytes --]

May be your motherboard or BIOS just too old, and it doesn't support such
hard disks?

пт, 5 июл. 2019 г., 19:36 Robin Atwood <robin@binro.org>:

> On Fri, 5 Jul 2019 19:31:39 +0500
> Vladimir Romanov <blueboar2@gmail.com> wrote:
>
> > Well, dd should work well in any case. May be your drive is broken
> > really?
> >
> > пт, 5 июл. 2019 г., 19:30 Robin Atwood <robin@binro.org>:
> >
> > > On Fri, 5 Jul 2019 19:14:35 +0500
> > > Vladimir Romanov <blueboar2@gmail.com> wrote:
> > >
> > > > Fdisk can not work with drives larger than 2TB. Your drive may be
> > > > slightly (10 mb) larger than that, so the result. For such disks
> > > > you need not Fdisk, but GPT programs.
> > > >
> > > > пт, 5 июл. 2019 г., 19:12 Robin Atwood <robin@binro.org>:
> > > >
> > > > > I just bought a new "2TB" Western Digital hard drive. Imagine my
> > > > > surprise when fdisk reports it is only 10MiB in capacity! Is
> > > > > there anything I can do to rectify this (of a technical
> > > > > nature)? I live in Bangkok so it is not unlikely the guy in the
> > > > > little shop where I bought it sold me a load of junk. But the
> > > > > device is in warranty until 2022 and looks convincing (I
> > > > > checked the serial number on the WD web site). Of course I can
> > > > > go to the WD service centre and get the HD exchanged but I
> > > > > thought I would see if there were any technical wheezes first.
> > >
> > > Thanks Vladimir, that sounds promising. Can you recommend any GPT
> > > programs (this is new to me)? However the dd utility failed when I
> > > tried to copy my old HD to the new one.
> > >
> > > # dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync
> > > dd: error writing '/dev/sdb': No space left on device
> > > 160+0 records in
> > > 159+0 records out
> > > 10481664 bytes (10 MB, 10 MiB) copied, 0.132944 s, 78.8 MB/s
>
> It looks like it. :(
>
> Robin
> --
> ----------------------------------------------------------------------
> Robin Atwood.
>
> "Ship me somewheres east of Suez, where the best is like the worst,
>  Where there ain't no Ten Commandments an' a man can raise a thirst"
>          from "Mandalay" by Rudyard Kipling
> ----------------------------------------------------------------------
>
>
>
>
>
>
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>

[-- Attachment #2: Type: text/html, Size: 3474 bytes --]

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-05 14:34     ` Mick
@ 2019-07-05 14:44       ` Robin Atwood
  2019-07-05 14:47         ` Mick
                           ` (2 more replies)
  0 siblings, 3 replies; 25+ messages in thread
From: Robin Atwood @ 2019-07-05 14:44 UTC (permalink / raw
  To: gentoo-user

On Fri, 05 Jul 2019 15:34:18 +0100
Mick <michaelkintzios@gmail.com> wrote:

> On Friday, 5 July 2019 15:30:06 BST Robin Atwood wrote:
> 
> > Thanks Vladimir, that sounds promising. Can you recommend any GPT
> > programs (this is new to me)? However the dd utility failed when I
> > tried to copy my old HD to the new one.
> > 
> > # dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync
> > dd: error writing '/dev/sdb': No space left on device
> > 160+0 records in
> > 159+0 records out
> > 10481664 bytes (10 MB, 10 MiB) copied, 0.132944 s, 78.8 MB/s
> > 
> > Cheers
> > Robin  
> 
> You can use gptfdisk, parted/gparted, etc.
> 
> To check the size as well as additional information you can use
> smartmontools and run:
> 
> smartctl -i /dev/sda
> 
> It may also be worth checking if later firmware is available to
> address any issues with it, like reporting the wrong size with some
> tools.
> 
> However, the dd command failure sounds suspicious - as I understand
> it dd should not fail unless the disk has run out of space.

OK panic over! I had shelled into the wrong system! The mystery is what
I was trying to copy to, the machine only has one HD.

Thanks
Robin
-- 
----------------------------------------------------------------------
Robin Atwood.

"Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst"
         from "Mandalay" by Rudyard Kipling
----------------------------------------------------------------------









-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-05 14:44       ` Robin Atwood
@ 2019-07-05 14:47         ` Mick
  2019-07-05 15:33           ` Robin Atwood
  2019-07-05 23:11         ` Adam Carter
  2019-07-06  1:14         ` Paul Colquhoun
  2 siblings, 1 reply; 25+ messages in thread
From: Mick @ 2019-07-05 14:47 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 280 bytes --]

On Friday, 5 July 2019 15:44:46 BST Robin Atwood wrote:

> OK panic over! I had shelled into the wrong system! The mystery is what
> I was trying to copy to, the machine only has one HD.

Cool, I hope you didn't overwrite useful data and you keep backups.  ;-)

-- 
Regards,

Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-05 14:47         ` Mick
@ 2019-07-05 15:33           ` Robin Atwood
  0 siblings, 0 replies; 25+ messages in thread
From: Robin Atwood @ 2019-07-05 15:33 UTC (permalink / raw
  To: gentoo-user

On Fri, 05 Jul 2019 15:47:04 +0100
Mick <michaelkintzios@gmail.com> wrote:

> On Friday, 5 July 2019 15:44:46 BST Robin Atwood wrote:
> 
> > OK panic over! I had shelled into the wrong system! The mystery is
> > what I was trying to copy to, the machine only has one HD.  
> 
> Cool, I hope you didn't overwrite useful data and you keep
> backups.  ;-)
> 

Me too, and yes!

-- 
----------------------------------------------------------------------
Robin Atwood.

"Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst"
         from "Mandalay" by Rudyard Kipling
----------------------------------------------------------------------









-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-05 14:40         ` Vladimir Romanov
@ 2019-07-05 15:42           ` Grant Taylor
  0 siblings, 0 replies; 25+ messages in thread
From: Grant Taylor @ 2019-07-05 15:42 UTC (permalink / raw
  To: gentoo-user

On 7/5/19 8:40 AM, Vladimir Romanov wrote:
> May be your motherboard or BIOS just too old, and it doesn't support 
> such hard disks?

I remember a time when Linux would support large (multi-GB) drives when 
the BIOS would not support them.

Linux could bypass the BIOS and talk directly to the drives and utilize 
the drive's full capacity.

The idea that Linux can no longer do this with larger drives disheartens me.



-- 
Grant. . . .
unix || die


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-05 14:44       ` Robin Atwood
  2019-07-05 14:47         ` Mick
@ 2019-07-05 23:11         ` Adam Carter
  2019-07-06 14:30           ` Robin Atwood
  2019-07-06  1:14         ` Paul Colquhoun
  2 siblings, 1 reply; 25+ messages in thread
From: Adam Carter @ 2019-07-05 23:11 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 430 bytes --]

>
> OK panic over! I had shelled into the wrong system! The mystery is what
> I was trying to copy to, the machine only has one HD.
>

lsblk is nice

$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0 931.5G  0 disk
└─sda1        8:1    0 931.5G  0 part /var
nvme0n1     259:0    0   477G  0 disk
├─nvme0n1p1 259:1    0     1G  0 part
└─nvme0n1p2 259:2    0   476G  0 part /

[-- Attachment #2: Type: text/html, Size: 715 bytes --]

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-05 14:44       ` Robin Atwood
  2019-07-05 14:47         ` Mick
  2019-07-05 23:11         ` Adam Carter
@ 2019-07-06  1:14         ` Paul Colquhoun
  2019-07-06 14:28           ` Robin Atwood
  2 siblings, 1 reply; 25+ messages in thread
From: Paul Colquhoun @ 2019-07-06  1:14 UTC (permalink / raw
  To: gentoo-user

On Saturday, July 6, 2019 12:44:46 A.M. AEST Robin Atwood wrote:
> On Fri, 05 Jul 2019 15:34:18 +0100
> 
> Mick <michaelkintzios@gmail.com> wrote:
> > On Friday, 5 July 2019 15:30:06 BST Robin Atwood wrote:
> > > Thanks Vladimir, that sounds promising. Can you recommend any GPT
> > > programs (this is new to me)? However the dd utility failed when I
> > > tried to copy my old HD to the new one.
> > > 
> > > # dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync
> > > dd: error writing '/dev/sdb': No space left on device
> > > 160+0 records in
> > > 159+0 records out
> > > 10481664 bytes (10 MB, 10 MiB) copied, 0.132944 s, 78.8 MB/s
> > > 
> > > Cheers
> > > Robin
> > 
> > You can use gptfdisk, parted/gparted, etc.
> > 
> > To check the size as well as additional information you can use
> > smartmontools and run:
> > 
> > smartctl -i /dev/sda
> > 
> > It may also be worth checking if later firmware is available to
> > address any issues with it, like reporting the wrong size with some
> > tools.
> > 
> > However, the dd command failure sounds suspicious - as I understand
> > it dd should not fail unless the disk has run out of space.
> 
> OK panic over! I had shelled into the wrong system! The mystery is what
> I was trying to copy to, the machine only has one HD.


It would probably just have created a normal file called /dev/sdb which would 
have grown till it filled the empty space on the partition.


-- 
Reverend Paul Colquhoun, ULC.     http://andor.dropbear.id.au/
  Asking for technical help in newsgroups?  Read this first:
     http://catb.org/~esr/faqs/smart-questions.html#intro





^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-06  1:14         ` Paul Colquhoun
@ 2019-07-06 14:28           ` Robin Atwood
  0 siblings, 0 replies; 25+ messages in thread
From: Robin Atwood @ 2019-07-06 14:28 UTC (permalink / raw
  To: gentoo-user

On Sat, 06 Jul 2019 11:14:38 +1000
Paul Colquhoun <paulcol@andor.dropbear.id.au> wrote:

> > OK panic over! I had shelled into the wrong system! The mystery is
> > what I was trying to copy to, the machine only has one HD.  
> 
> 
> It would probably just have created a normal file called /dev/sdb
> which would have grown till it filled the empty space on the
> partition.

Yes, that's what it did, though it didn't fill the partition up. Phew,
that's a relief, I was worrying I had overwritten the BIOS or
something! 

Thanks
Robin
-- 
----------------------------------------------------------------------
Robin Atwood.

"Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst"
         from "Mandalay" by Rudyard Kipling
----------------------------------------------------------------------









-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-05 23:11         ` Adam Carter
@ 2019-07-06 14:30           ` Robin Atwood
  2019-07-06 14:56             ` Dale
  0 siblings, 1 reply; 25+ messages in thread
From: Robin Atwood @ 2019-07-06 14:30 UTC (permalink / raw
  To: gentoo-user

On Sat, 6 Jul 2019 09:11:22 +1000
Adam Carter <adamcarter3@gmail.com> wrote:

> >
> > OK panic over! I had shelled into the wrong system! The mystery is
> > what I was trying to copy to, the machine only has one HD.
> >
> 
> lsblk is nice
> 
> $ lsblk
> NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
> sda           8:0    0 931.5G  0 disk
> └─sda1        8:1    0 931.5G  0 part /var
> nvme0n1     259:0    0   477G  0 disk
> ├─nvme0n1p1 259:1    0     1G  0 part
> └─nvme0n1p2 259:2    0   476G  0 part /

lsblk *is* nice, thanks!

Robin
-- 
----------------------------------------------------------------------
Robin Atwood.

"Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst"
         from "Mandalay" by Rudyard Kipling
----------------------------------------------------------------------









-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-06 14:30           ` Robin Atwood
@ 2019-07-06 14:56             ` Dale
  2019-07-06 22:19               ` Wol's lists
  0 siblings, 1 reply; 25+ messages in thread
From: Dale @ 2019-07-06 14:56 UTC (permalink / raw
  To: gentoo-user

Robin Atwood wrote:
> On Sat, 6 Jul 2019 09:11:22 +1000
> Adam Carter <adamcarter3@gmail.com> wrote:
>
>>> OK panic over! I had shelled into the wrong system! The mystery is
>>> what I was trying to copy to, the machine only has one HD.
>>>
>> lsblk is nice
>>
>> $ lsblk
>> NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
>> sda           8:0    0 931.5G  0 disk
>> └─sda1        8:1    0 931.5G  0 part /var
>> nvme0n1     259:0    0   477G  0 disk
>> ├─nvme0n1p1 259:1    0     1G  0 part
>> └─nvme0n1p2 259:2    0   476G  0 part /
> lsblk *is* nice, thanks!
>
> Robin


FYI, it also works when using LVM too.


root@fireball / # lsblk
NAME              MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                 8:0    1 149.1G  0 disk
├─sda1              8:1    1 384.3M  0 part /boot
├─sda2              8:2    1     1K  0 part
├─sda5              8:5    1   957M  0 part
├─sda6              8:6    1  23.3G  0 part /
└─sda7              8:7    1 124.5G  0 part
  ├─OS-usr        254:0    0    35G  0 lvm  /usr
  ├─OS-var        254:1    0    32G  0 lvm  /var
  └─OS-swap       254:2    0    12G  0 lvm  [SWAP]
sdb                 8:16   1   2.7T  0 disk
└─sdb1              8:17   1   2.7T  0 part
  └─Home2-Home2   254:3    0   8.2T  0 lvm  /home
sdc                 8:32   1   5.5T  0 disk
└─sdc1              8:33   1   5.5T  0 part
  └─Home2-Home2   254:3    0   8.2T  0 lvm  /home
sdd                 8:48   1 698.7G  0 disk
└─sdd1              8:49   1 698.7G  0 part
  └─backup-backup 254:4    0 698.6G  0 lvm  /backup
sr0                11:0    1     3G  0 rom 
root@fireball / #


That is nice.  Now to remember it.  lol 

Dale

:-)  :-) 


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-06 14:56             ` Dale
@ 2019-07-06 22:19               ` Wol's lists
  2019-07-07  1:12                 ` Dale
  0 siblings, 1 reply; 25+ messages in thread
From: Wol's lists @ 2019-07-06 22:19 UTC (permalink / raw
  To: gentoo-user

On 06/07/2019 15:56, Dale wrote:
> Robin Atwood wrote:
>> On Sat, 6 Jul 2019 09:11:22 +1000
>> Adam Carter <adamcarter3@gmail.com> wrote:
>>
>>>> OK panic over! I had shelled into the wrong system! The mystery is
>>>> what I was trying to copy to, the machine only has one HD.
>>>>
>>> lsblk is nice
>>>
>>> $ lsblk
>>> NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
>>> sda           8:0    0 931.5G  0 disk
>>> └─sda1        8:1    0 931.5G  0 part /var
>>> nvme0n1     259:0    0   477G  0 disk
>>> ├─nvme0n1p1 259:1    0     1G  0 part
>>> └─nvme0n1p2 259:2    0   476G  0 part /
>> lsblk *is* nice, thanks!
>>
>> Robin
> 
> 
> FYI, it also works when using LVM too.
> 
> 
> root@fireball / # lsblk
> NAME              MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
> sda                 8:0    1 149.1G  0 disk
> ├─sda1              8:1    1 384.3M  0 part /boot
> ├─sda2              8:2    1     1K  0 part
> ├─sda5              8:5    1   957M  0 part
> ├─sda6              8:6    1  23.3G  0 part /
> └─sda7              8:7    1 124.5G  0 part
>    ├─OS-usr        254:0    0    35G  0 lvm  /usr
>    ├─OS-var        254:1    0    32G  0 lvm  /var
>    └─OS-swap       254:2    0    12G  0 lvm  [SWAP]
> sdb                 8:16   1   2.7T  0 disk
> └─sdb1              8:17   1   2.7T  0 part
>    └─Home2-Home2   254:3    0   8.2T  0 lvm  /home
> sdc                 8:32   1   5.5T  0 disk
> └─sdc1              8:33   1   5.5T  0 part
>    └─Home2-Home2   254:3    0   8.2T  0 lvm  /home
> sdd                 8:48   1 698.7G  0 disk
> └─sdd1              8:49   1 698.7G  0 part
>    └─backup-backup 254:4    0 698.6G  0 lvm  /backup
> sr0                11:0    1     3G  0 rom
> root@fireball / #
> 
What about lsdrv (as per the raid wiki)?

https://raid.wiki.kernel.org/index.php/Asking_for_help

That handles pretty much everything.

Cheers,
Wol


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-05 14:30   ` Robin Atwood
  2019-07-05 14:31     ` Vladimir Romanov
  2019-07-05 14:34     ` Mick
@ 2019-07-06 22:23     ` Wol's lists
  2019-07-07  1:15       ` Dale
  2 siblings, 1 reply; 25+ messages in thread
From: Wol's lists @ 2019-07-06 22:23 UTC (permalink / raw
  To: gentoo-user

On 05/07/2019 15:30, Robin Atwood wrote:
> Thanks Vladimir, that sounds promising. Can you recommend any GPT
> programs (this is new to me)? However the dd utility failed when I
> tried to copy my old HD to the new one.

Recommend any gpt programs? fdisk :-) ?

Yes I know it was said it doesn't work, but ime it's been upgraded to 
cope. That said, I always use gdisk now, which is almost the same but 
explicitly handles gpt.

Cheers,
Wol


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-06 22:19               ` Wol's lists
@ 2019-07-07  1:12                 ` Dale
  2019-07-07 12:19                   ` Wols Lists
  0 siblings, 1 reply; 25+ messages in thread
From: Dale @ 2019-07-07  1:12 UTC (permalink / raw
  To: gentoo-user

Wol's lists wrote:
> On 06/07/2019 15:56, Dale wrote:
>> Robin Atwood wrote:
>>> On Sat, 6 Jul 2019 09:11:22 +1000
>>> Adam Carter <adamcarter3@gmail.com> wrote:
>>>
>>>>> OK panic over! I had shelled into the wrong system! The mystery is
>>>>> what I was trying to copy to, the machine only has one HD.
>>>>>
>>>> lsblk is nice
>>>>
>>>> $ lsblk
>>>> NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
>>>> sda           8:0    0 931.5G  0 disk
>>>> └─sda1        8:1    0 931.5G  0 part /var
>>>> nvme0n1     259:0    0   477G  0 disk
>>>> ├─nvme0n1p1 259:1    0     1G  0 part
>>>> └─nvme0n1p2 259:2    0   476G  0 part /
>>> lsblk *is* nice, thanks!
>>>
>>> Robin
>>
>>
>> FYI, it also works when using LVM too.
>>
>>
>> root@fireball / # lsblk
>> NAME              MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
>> sda                 8:0    1 149.1G  0 disk
>> ├─sda1              8:1    1 384.3M  0 part /boot
>> ├─sda2              8:2    1     1K  0 part
>> ├─sda5              8:5    1   957M  0 part
>> ├─sda6              8:6    1  23.3G  0 part /
>> └─sda7              8:7    1 124.5G  0 part
>>    ├─OS-usr        254:0    0    35G  0 lvm  /usr
>>    ├─OS-var        254:1    0    32G  0 lvm  /var
>>    └─OS-swap       254:2    0    12G  0 lvm  [SWAP]
>> sdb                 8:16   1   2.7T  0 disk
>> └─sdb1              8:17   1   2.7T  0 part
>>    └─Home2-Home2   254:3    0   8.2T  0 lvm  /home
>> sdc                 8:32   1   5.5T  0 disk
>> └─sdc1              8:33   1   5.5T  0 part
>>    └─Home2-Home2   254:3    0   8.2T  0 lvm  /home
>> sdd                 8:48   1 698.7G  0 disk
>> └─sdd1              8:49   1 698.7G  0 part
>>    └─backup-backup 254:4    0 698.6G  0 lvm  /backup
>> sr0                11:0    1     3G  0 rom
>> root@fireball / #
>>
> What about lsdrv (as per the raid wiki)?
>
> https://raid.wiki.kernel.org/index.php/Asking_for_help
>
> That handles pretty much everything.
>
> Cheers,
> Wol
>
>


I don't have RAID so no idea. 

Dale

:-)  :-) 


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-06 22:23     ` Wol's lists
@ 2019-07-07  1:15       ` Dale
  0 siblings, 0 replies; 25+ messages in thread
From: Dale @ 2019-07-07  1:15 UTC (permalink / raw
  To: gentoo-user

Wol's lists wrote:
> On 05/07/2019 15:30, Robin Atwood wrote:
>> Thanks Vladimir, that sounds promising. Can you recommend any GPT
>> programs (this is new to me)? However the dd utility failed when I
>> tried to copy my old HD to the new one.
>
> Recommend any gpt programs? fdisk :-) ?
>
> Yes I know it was said it doesn't work, but ime it's been upgraded to
> cope. That said, I always use gdisk now, which is almost the same but
> explicitly handles gpt.
>
> Cheers,
> Wol
>
>


I've used cgdisk myself.  Mostly because I started out using cfdisk for
smaller drives and then when large drives came along, cgdisk was
available.  Both work the same way so no learning curve. 

Just another option to consider I guess.

Dale

:-)  :-) 


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-07  1:12                 ` Dale
@ 2019-07-07 12:19                   ` Wols Lists
  2019-07-07 12:38                     ` Dale
  2019-07-09  1:34                     ` Adam Carter
  0 siblings, 2 replies; 25+ messages in thread
From: Wols Lists @ 2019-07-07 12:19 UTC (permalink / raw
  To: gentoo-user

On 07/07/19 02:12, Dale wrote:
> Wol's lists wrote:
>> On 06/07/2019 15:56, Dale wrote:
>>> Robin Atwood wrote:
>>>> On Sat, 6 Jul 2019 09:11:22 +1000
>>>> Adam Carter <adamcarter3@gmail.com> wrote:
>>>>
>>>>>> OK panic over! I had shelled into the wrong system! The mystery is
>>>>>> what I was trying to copy to, the machine only has one HD.
>>>>>>
>>>>> lsblk is nice
>>>>>
>>>>> $ lsblk
>>>>> NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
>>>>> sda           8:0    0 931.5G  0 disk
>>>>> └─sda1        8:1    0 931.5G  0 part /var
>>>>> nvme0n1     259:0    0   477G  0 disk
>>>>> ├─nvme0n1p1 259:1    0     1G  0 part
>>>>> └─nvme0n1p2 259:2    0   476G  0 part /
>>>> lsblk *is* nice, thanks!
>>>>
>>>> Robin
>>>
>>>
>>> FYI, it also works when using LVM too.
>>>
>>>
>>> root@fireball / # lsblk
>>> NAME              MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
>>> sda                 8:0    1 149.1G  0 disk
>>> ├─sda1              8:1    1 384.3M  0 part /boot
>>> ├─sda2              8:2    1     1K  0 part
>>> ├─sda5              8:5    1   957M  0 part
>>> ├─sda6              8:6    1  23.3G  0 part /
>>> └─sda7              8:7    1 124.5G  0 part
>>>    ├─OS-usr        254:0    0    35G  0 lvm  /usr
>>>    ├─OS-var        254:1    0    32G  0 lvm  /var
>>>    └─OS-swap       254:2    0    12G  0 lvm  [SWAP]
>>> sdb                 8:16   1   2.7T  0 disk
>>> └─sdb1              8:17   1   2.7T  0 part
>>>    └─Home2-Home2   254:3    0   8.2T  0 lvm  /home
>>> sdc                 8:32   1   5.5T  0 disk
>>> └─sdc1              8:33   1   5.5T  0 part
>>>    └─Home2-Home2   254:3    0   8.2T  0 lvm  /home
>>> sdd                 8:48   1 698.7G  0 disk
>>> └─sdd1              8:49   1 698.7G  0 part
>>>    └─backup-backup 254:4    0 698.6G  0 lvm  /backup
>>> sr0                11:0    1     3G  0 rom
>>> root@fireball / #
>>>
>> What about lsdrv (as per the raid wiki)?
>>
>> https://raid.wiki.kernel.org/index.php/Asking_for_help
>>
>> That handles pretty much everything.
>>
>> Cheers,
>> Wol
>>
>>
> 
> 
> I don't have RAID so no idea. 
> 
> Dale
> 
> :-)  :-) 
> 
lsdrv looks like lsblk, it's just that it handles afaik pretty much
everything - starts with the disk, then lists any partitions, any lvm's,
any raids, etc etc.

Cheers,
Wol


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-07 12:19                   ` Wols Lists
@ 2019-07-07 12:38                     ` Dale
  2019-07-09  1:34                     ` Adam Carter
  1 sibling, 0 replies; 25+ messages in thread
From: Dale @ 2019-07-07 12:38 UTC (permalink / raw
  To: gentoo-user

Wols Lists wrote:
> On 07/07/19 02:12, Dale wrote:
>> Wol's lists wrote:
>>>
>>> What about lsdrv (as per the raid wiki)?
>>>
>>> https://raid.wiki.kernel.org/index.php/Asking_for_help
>>>
>>> That handles pretty much everything.
>>>
>>> Cheers,
>>> Wol
>>>
>>>
>>
>> I don't have RAID so no idea. 
>>
>> Dale
>>
>> :-)  :-) 
>>
> lsdrv looks like lsblk, it's just that it handles afaik pretty much
> everything - starts with the disk, then lists any partitions, any lvm's,
> any raids, etc etc.
>
> Cheers,
> Wol
>
>

So if one has RAID software installed, there is a even better tool
available.  Nifty.  lol 

Dale

:-)  :-) 


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-07 12:19                   ` Wols Lists
  2019-07-07 12:38                     ` Dale
@ 2019-07-09  1:34                     ` Adam Carter
  2019-07-09 21:45                       ` Wols Lists
  1 sibling, 1 reply; 25+ messages in thread
From: Adam Carter @ 2019-07-09  1:34 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 280 bytes --]

>
> lsdrv looks like lsblk, it's just that it handles afaik pretty much
> everything - starts with the disk, then lists any partitions, any lvm's,
> any raids, etc etc.
>

What does lsdrv have that lsblk is missing?

lsblk is part of util-linux so its everywhere, which is handy.

[-- Attachment #2: Type: text/html, Size: 534 bytes --]

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-09  1:34                     ` Adam Carter
@ 2019-07-09 21:45                       ` Wols Lists
  0 siblings, 0 replies; 25+ messages in thread
From: Wols Lists @ 2019-07-09 21:45 UTC (permalink / raw
  To: gentoo-user

On 09/07/19 02:34, Adam Carter wrote:
>     lsdrv looks like lsblk, it's just that it handles afaik pretty much
>     everything - starts with the disk, then lists any partitions, any lvm's,
>     any raids, etc etc.
> 
> 
> What does lsdrv have that lsblk is missing?

Looking at "man lsblk", lsdrv seems to just print out a bit more info.
It certainly chucks out a lot more info on the raid setup, and I suspect
on the lvm setup too.
> 
> lsblk is part of util-linux so its everywhere, which is handy.

Be nice if lsdrv/lsblk came together to print out detailed info on
everything :-)

Cheers,
Wol


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [gentoo-user] Fdisk reports new HD as 10MiB
  2019-07-05 14:14 ` Vladimir Romanov
  2019-07-05 14:30   ` Robin Atwood
@ 2019-07-09 22:06   ` Mike Gilbert
  1 sibling, 0 replies; 25+ messages in thread
From: Mike Gilbert @ 2019-07-09 22:06 UTC (permalink / raw
  To: gentoo-user

On Fri, Jul 5, 2019 at 10:14 AM Vladimir Romanov <blueboar2@gmail.com> wrote:
>
> Fdisk can not work with drives larger than 2TB. Your drive may be slightly (10 mb) larger than that, so the result. For such disks you need not Fdisk, but GPT programs.

Correction: modern fdisk provided by util-linux supports
creating/modifying GPT disks, and emits a warning that MBR cannot be
used for disks over 2 TB. Just enter a "g" to switch to GPT mode.

That looks something like this:

% truncate -s 3T foo.img
% fdisk foo.img

Welcome to fdisk (util-linux 2.34).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
The size of this disk is 3 TiB (3298534883328 bytes). DOS partition
table format cannot be used on drives for volumes larger than
2199023255040 bytes for 512-byte sectors. Use GUID partition table
format (GPT).

Created a new DOS disklabel with disk identifier 0x9a0d6a8c.

Command (m for help): g
Created a new GPT disklabel (GUID: 0B1A00C7-7E53-9644-ACD1-F9A4B67A34AA).


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2019-07-09 22:06 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-05 14:12 [gentoo-user] Fdisk reports new HD as 10MiB Robin Atwood
2019-07-05 14:14 ` Vladimir Romanov
2019-07-05 14:30   ` Robin Atwood
2019-07-05 14:31     ` Vladimir Romanov
2019-07-05 14:36       ` Robin Atwood
2019-07-05 14:40         ` Vladimir Romanov
2019-07-05 15:42           ` Grant Taylor
2019-07-05 14:34     ` Mick
2019-07-05 14:44       ` Robin Atwood
2019-07-05 14:47         ` Mick
2019-07-05 15:33           ` Robin Atwood
2019-07-05 23:11         ` Adam Carter
2019-07-06 14:30           ` Robin Atwood
2019-07-06 14:56             ` Dale
2019-07-06 22:19               ` Wol's lists
2019-07-07  1:12                 ` Dale
2019-07-07 12:19                   ` Wols Lists
2019-07-07 12:38                     ` Dale
2019-07-09  1:34                     ` Adam Carter
2019-07-09 21:45                       ` Wols Lists
2019-07-06  1:14         ` Paul Colquhoun
2019-07-06 14:28           ` Robin Atwood
2019-07-06 22:23     ` Wol's lists
2019-07-07  1:15       ` Dale
2019-07-09 22:06   ` Mike Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox