Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-09 Thread Mike Gilbert
On Fri, Jul 5, 2019 at 10:14 AM Vladimir Romanov 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

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-09 Thread Wols Lists
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",

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-08 Thread Adam Carter
> > 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.

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-07 Thread Dale
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.

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-07 Thread Wols Lists
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 wrote: >> OK panic over! I had shelled into the wrong system! The mystery is >> what I was trying to copy to, the

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-06 Thread Dale
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

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-06 Thread Dale
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 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

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-06 Thread Wol's lists
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,

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-06 Thread Wol's lists
On 06/07/2019 15:56, Dale wrote: Robin Atwood wrote: On Sat, 6 Jul 2019 09:11:22 +1000 Adam Carter 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 NAMEMAJ:MIN RM SIZE RO

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-06 Thread Dale
Robin Atwood wrote: > On Sat, 6 Jul 2019 09:11:22 +1000 > Adam Carter 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 >> NAMEMAJ:MIN RM SIZE RO TYPE

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-06 Thread Robin Atwood
On Sat, 6 Jul 2019 09:11:22 +1000 Adam Carter 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 > NAMEMAJ:MIN RM SIZE RO TYPE MOUNTPOINT > sda

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-06 Thread Robin Atwood
On Sat, 06 Jul 2019 11:14:38 +1000 Paul Colquhoun 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

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Paul Colquhoun
On Saturday, July 6, 2019 12:44:46 A.M. AEST Robin Atwood wrote: > On Fri, 05 Jul 2019 15:34:18 +0100 > > Mick 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

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Adam Carter
> > 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 NAMEMAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:00 931.5G 0 disk └─sda18:10 931.5G 0 part /var nvme0n1

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Grant Taylor
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

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Robin Atwood
On Fri, 05 Jul 2019 15:47:04 +0100 Mick 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

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Mick
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 signature.asc

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Robin Atwood
On Fri, 05 Jul 2019 15:34:18 +0100 Mick 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. > >

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Vladimir Romanov
May be your motherboard or BIOS just too old, and it doesn't support such hard disks? пт, 5 июл. 2019 г., 19:36 Robin Atwood : > On Fri, 5 Jul 2019 19:31:39 +0500 > Vladimir Romanov wrote: > > > Well, dd should work well in any case. May be your drive is broken > > really? > > > > пт, 5 июл.

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Robin Atwood
On Fri, 5 Jul 2019 19:31:39 +0500 Vladimir Romanov wrote: > Well, dd should work well in any case. May be your drive is broken > really? > > пт, 5 июл. 2019 г., 19:30 Robin Atwood : > > > On Fri, 5 Jul 2019 19:14:35 +0500 > > Vladimir Romanov wrote: > > > > > Fdisk can not work with drives

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Mick
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 >

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Vladimir Romanov
Well, dd should work well in any case. May be your drive is broken really? пт, 5 июл. 2019 г., 19:30 Robin Atwood : > On Fri, 5 Jul 2019 19:14:35 +0500 > Vladimir Romanov wrote: > > > Fdisk can not work with drives larger than 2TB. Your drive may be > > slightly (10 mb) larger than that, so the

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Robin Atwood
On Fri, 5 Jul 2019 19:14:35 +0500 Vladimir Romanov 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 : > > > I just

Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Vladimir Romanov
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 : > I just bought a new "2TB" Western Digital hard drive. Imagine my > surprise when

[gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Robin Atwood
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