From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 23819138334 for ; Sun, 7 Jul 2019 12:19:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9DC5EE0866; Sun, 7 Jul 2019 12:19:25 +0000 (UTC) Received: from smtp.hosts.co.uk (smtp.hosts.co.uk [85.233.160.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 02210E085A for ; Sun, 7 Jul 2019 12:19:24 +0000 (UTC) Received: from [81.155.195.121] (helo=[192.168.1.118]) by smtp.hosts.co.uk with esmtpa (Exim) (envelope-from ) id 1hk68Z-0003FZ-3w for gentoo-user@lists.gentoo.org; Sun, 07 Jul 2019 13:19:23 +0100 Subject: Re: [gentoo-user] Fdisk reports new HD as 10MiB To: gentoo-user@lists.gentoo.org References: <20190705211207.7766dd87@binro.org> <20190705213006.69b64281@binro.org> <3852212.NqFQpVu6ds@localhost> <20190705214418.7cabedb2@binro.org> <20190706213016.6e157d1e@binro.org> <2ef3ecf3-05b9-bb34-5c74-dc050c28c008@gmail.com> <018027ac-d4fe-9268-25bb-dd3349f805c5@youngman.org.uk> From: Wols Lists Message-ID: <5D21E34A.5000000@youngman.org.uk> Date: Sun, 7 Jul 2019 13:19:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 9692eb39-7740-45be-ab54-c4ba473acb83 X-Archives-Hash: b327ae065f31bdbf554a2c30c542c71d 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 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