(gelöst) fdisk -l Ausgabe

Warum Debian und/oder eine seiner Spielarten? Was muss ich vorher wissen? Wo geht es nach der Installation weiter?
Antworten
Sarem_Avuton
Beiträge: 546
Registriert: 16.12.2004 09:58:27
Wohnort: Leipzig

(gelöst) fdisk -l Ausgabe

Beitrag von Sarem_Avuton » 16.09.2008 10:45:54

Hallo,

ich finde zu dem Thema nichts im Forum.System Debian Etch!
Wenn ich LVM benutze und

Code: Alles auswählen

fdisk -l
eingebe dann zeigt er immer auch /dev/dm-N an. Kann ich das unterbinden so das er auch nur die physischen dev's anzeigt?

Grüß Jörg

PS. hier mal so eine Ausgabe, da verliert man schon mal den Überblick

Code: Alles auswählen

debian-xen:~# fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         850     6827593+  83  Linux
/dev/sda2             851       38913   305741047+   5  Extended
/dev/sda5           38671       38913     1951866   82  Linux swap / Solaris
/dev/sda6             852       38670   303781086   8e  Linux LVM

Partition table entries are not in disk order

Disk /dev/dm-0: 5242 MB, 5242880000 bytes
255 heads, 63 sectors/track, 637 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-2 doesn't contain a valid partition table

Disk /dev/dm-3: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-3 doesn't contain a valid partition table

Disk /dev/dm-4: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-4 doesn't contain a valid partition table

Disk /dev/dm-5: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-5 doesn't contain a valid partition table

Disk /dev/dm-6: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-6 doesn't contain a valid partition table

Disk /dev/dm-7: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-7 doesn't contain a valid partition table

Disk /dev/dm-8: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-8 doesn't contain a valid partition table

Disk /dev/dm-9: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-9 doesn't contain a valid partition table

Disk /dev/dm-10: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-10 doesn't contain a valid partition table

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1      121601   976760001   83  Linux
Zuletzt geändert von Sarem_Avuton am 16.09.2008 12:05:12, insgesamt 1-mal geändert.

cosmac
Beiträge: 4579
Registriert: 28.03.2005 22:24:30

Re: fdisk -l Ausgabe (Disk /dev/dm-0 doesn't contain a valid...)

Beitrag von cosmac » 16.09.2008 11:28:51

hi,

Code: Alles auswählen

fdisk -l /dev/sd?
sollte sda, sdb usw. listen, aber sonst keine.
Beware of programmers who carry screwdrivers.

Sarem_Avuton
Beiträge: 546
Registriert: 16.12.2004 09:58:27
Wohnort: Leipzig

Re: fdisk -l Ausgabe (Disk /dev/dm-0 doesn't contain a valid...)

Beitrag von Sarem_Avuton » 16.09.2008 11:34:19

Hallo cosmac,

danke für den Hack. Ist das aber nun eine Buggieanzeige oder ist das so gewollt?

Grüße

Benutzeravatar
habakug
Moderator
Beiträge: 4314
Registriert: 23.10.2004 13:08:41
Lizenz eigener Beiträge: MIT Lizenz

Re: fdisk -l Ausgabe (Disk /dev/dm-0 doesn't contain a valid...)

Beitrag von habakug » 16.09.2008 11:50:30

Hallo!

Fdisk bedient sich aus "/proc/partitions":
man fdisk hat geschrieben:-l List the partition tables for the specified devices and then
exit. If no devices are given, those mentioned in /proc/parti‐
tions (if that exists) are used.
Du kannst mit

Code: Alles auswählen

cat /proc/partitions
selbst nachsehen was da ist.

Gruß, habakug
( # = root | $ = user | !! = mod ) (Vor der PN) (Debianforum-Wiki) (NoPaste)

cosmac
Beiträge: 4579
Registriert: 28.03.2005 22:24:30

Re: fdisk -l Ausgabe (Disk /dev/dm-0 doesn't contain a valid...)

Beitrag von cosmac » 16.09.2008 11:53:40

ich mein', das muss so sein. Einerseits soll "fdisk -l" ohne Device alle auflisten. Andererseits soll ein Problem mit einem Device auch gemeldet werden (es könnte ja auch defekt sein). Drittens gibt es nun mal Devices ohne Partitionstabelle, das ist auch bei USB-Sticks beliebt. Nun ja, das Ergebnis siehst du...

Man könnte in diesem speziellen Fall die Ausgabe unterdrücken, aber sowas "macht man nicht" (jedenfalls nicht bei einem Kommandozeilen-Werkzeug).
Beware of programmers who carry screwdrivers.

Sarem_Avuton
Beiträge: 546
Registriert: 16.12.2004 09:58:27
Wohnort: Leipzig

Re: fdisk -l Ausgabe (Disk /dev/dm-0 doesn't contain a valid...)

Beitrag von Sarem_Avuton » 16.09.2008 12:04:36

Ich danke Euch beiden.

Grüße Jörg

Antworten