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 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

:-)  :-) 



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 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

:-)  :-) 



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, 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



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 TYPE MOUNTPOINT
sda   8:00 931.5G  0 disk
└─sda18:10 931.5G  0 part /var
nvme0n1 259:00   477G  0 disk
├─nvme0n1p1 259:10 1G  0 part
└─nvme0n1p2 259:20   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



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 MOUNTPOINT
>> sda   8:00 931.5G  0 disk
>> └─sda18:10 931.5G  0 part /var
>> nvme0n1 259:00   477G  0 disk
>> ├─nvme0n1p1 259:10 1G  0 part
>> └─nvme0n1p2 259:20   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

:-)  :-) 



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   8:00 931.5G  0 disk
> └─sda18:10 931.5G  0 part /var
> nvme0n1 259:00   477G  0 disk
> ├─nvme0n1p1 259:10 1G  0 part
> └─nvme0n1p2 259:20   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.




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 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.