Gentoo Archives: gentoo-user

From: Wols Lists <antlists@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Fdisk reports new HD as 10MiB
Date: Sun, 07 Jul 2019 12:19:32
Message-Id: 5D21E34A.5000000@youngman.org.uk
In Reply to: Re: [gentoo-user] Fdisk reports new HD as 10MiB by Dale
1 On 07/07/19 02:12, Dale wrote:
2 > Wol's lists wrote:
3 >> On 06/07/2019 15:56, Dale wrote:
4 >>> Robin Atwood wrote:
5 >>>> On Sat, 6 Jul 2019 09:11:22 +1000
6 >>>> Adam Carter <adamcarter3@×××××.com> wrote:
7 >>>>
8 >>>>>> OK panic over! I had shelled into the wrong system! The mystery is
9 >>>>>> what I was trying to copy to, the machine only has one HD.
10 >>>>>>
11 >>>>> lsblk is nice
12 >>>>>
13 >>>>> $ lsblk
14 >>>>> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
15 >>>>> sda 8:0 0 931.5G 0 disk
16 >>>>> └─sda1 8:1 0 931.5G 0 part /var
17 >>>>> nvme0n1 259:0 0 477G 0 disk
18 >>>>> ├─nvme0n1p1 259:1 0 1G 0 part
19 >>>>> └─nvme0n1p2 259:2 0 476G 0 part /
20 >>>> lsblk *is* nice, thanks!
21 >>>>
22 >>>> Robin
23 >>>
24 >>>
25 >>> FYI, it also works when using LVM too.
26 >>>
27 >>>
28 >>> root@fireball / # lsblk
29 >>> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
30 >>> sda 8:0 1 149.1G 0 disk
31 >>> ├─sda1 8:1 1 384.3M 0 part /boot
32 >>> ├─sda2 8:2 1 1K 0 part
33 >>> ├─sda5 8:5 1 957M 0 part
34 >>> ├─sda6 8:6 1 23.3G 0 part /
35 >>> └─sda7 8:7 1 124.5G 0 part
36 >>> ├─OS-usr 254:0 0 35G 0 lvm /usr
37 >>> ├─OS-var 254:1 0 32G 0 lvm /var
38 >>> └─OS-swap 254:2 0 12G 0 lvm [SWAP]
39 >>> sdb 8:16 1 2.7T 0 disk
40 >>> └─sdb1 8:17 1 2.7T 0 part
41 >>> └─Home2-Home2 254:3 0 8.2T 0 lvm /home
42 >>> sdc 8:32 1 5.5T 0 disk
43 >>> └─sdc1 8:33 1 5.5T 0 part
44 >>> └─Home2-Home2 254:3 0 8.2T 0 lvm /home
45 >>> sdd 8:48 1 698.7G 0 disk
46 >>> └─sdd1 8:49 1 698.7G 0 part
47 >>> └─backup-backup 254:4 0 698.6G 0 lvm /backup
48 >>> sr0 11:0 1 3G 0 rom
49 >>> root@fireball / #
50 >>>
51 >> What about lsdrv (as per the raid wiki)?
52 >>
53 >> https://raid.wiki.kernel.org/index.php/Asking_for_help
54 >>
55 >> That handles pretty much everything.
56 >>
57 >> Cheers,
58 >> Wol
59 >>
60 >>
61 >
62 >
63 > I don't have RAID so no idea.
64 >
65 > Dale
66 >
67 > :-) :-)
68 >
69 lsdrv looks like lsblk, it's just that it handles afaik pretty much
70 everything - starts with the disk, then lists any partitions, any lvm's,
71 any raids, etc etc.
72
73 Cheers,
74 Wol

Replies

Subject Author
Re: [gentoo-user] Fdisk reports new HD as 10MiB Dale <rdalek1967@×××××.com>
Re: [gentoo-user] Fdisk reports new HD as 10MiB Adam Carter <adamcarter3@×××××.com>