Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Betriebssysteme (https://www.delphipraxis.net/27-betriebssysteme/)
-   -   Linux Info wie Festplatte formatiert (https://www.delphipraxis.net/168734-linux-info-wie-festplatte-formatiert.html)

ATS3788 7. Jun 2012 14:34

Betriebssystem: Linux

Linux Info wie Festplatte formatiert
 
Hallo
Ich habe Zentyal Server aufgesetzt
und ein wenig rumprobiert.

Also Windows ist eine Geschichte aber Linux
Bei jder Distribution ist etwas, etwas anders.
Ich schweife ab.

Wie kann ich bestimmen wie eine Festplatte
formatiert ist, alst ext3 , ext4 oder Fat oder NTFS.

Martin Michael

Leider gibt es kein grafisches Tool fuer Zentyal,
das einem die erleichtert.

DeddyH 7. Jun 2012 14:40

AW: Linux Info wie Festplatte formatiert
 
Ich bin gerade nicht sicher, aber IIRC zeigt
Code:
fdisk -l
auch das Dateisystem der Partitionen an.

Dalai 7. Jun 2012 14:59

AW: Linux Info wie Festplatte formatiert
 
Code:
fdisk -l <device>
zeigt rudimentär an, welches Dateisystem in den jeweiligen Partitionen steckt. Sehr übersichtlich ist
Code:
blkid
. Bei eingehängten (gemounteten) Datenträgern reicht auch ein
Code:
mount
MfG Dalai

implementation 7. Jun 2012 15:04

AW: Linux Info wie Festplatte formatiert
 
Universaltool ist neben fdisk natürlich auch
Code:
parted
Parameter -l sollte das sein, was du suchst.

franktron 7. Jun 2012 15:14

AW: Linux Info wie Festplatte formatiert
 
Also das Format wird mit mkfs erstellt.

z.b. mkfs.ext oder mkfs.ntfs

Valle 7. Jun 2012 17:19

AW: Linux Info wie Festplatte formatiert
 
Diese Tools zeigen aber nur an, welches Dateisystem man bei der Partitionierung angegeben hat. Dafür gibt es in der Partitionstabelle ein extra Feld. Was dann aber tatsächlich drin ist, ist nochmal eine andere Geschichte.

Eine etwas unsaubere, aber meist funktionierende Methode: Man kopiert ein paar Bytes aus der Partition in eine Datei und lässt sie mit "file" analysieren.

Code:
dd if=/dev/sda of=sda.raw bs=512 count=1
dd if=/dev/sda1 of=sda1.raw bs=512 count=1
dd if=/dev/sda2 of=sda2.raw bs=512 count=1
dd if=/dev/sda3 of=sda3.raw bs=512 count=1
file sda*
Ergibt bei mir:

Code:
sda1.raw: x86 boot sector, code offset 0x52, OEM-ID "NTFS   ", sectors/cluster 8, reserved sectors 0, Media descriptor 0xf8, heads 255, hidden sectors 4096, dos < 4.0 BootSector (0x80)
sda2.raw: Linux rev 1.0 ext2 filesystem data (mounted or unclean), UUID=f5d0bbd7-58f1-44d1-ba79-1fec046eab0c
sda3.raw: LUKS encrypted file, ver 1 [aes, cbc-essiv:sha256, sha1] UUID: 3a85cb21-1a00-4d41-9829-cf5d89d
sda.raw: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200; partition 1: ID=0x7, starthead 65, startsector 4096, 154300229 sectors; partition 2: ID=0x83, active, starthead 254, startsector 154304325, 1943865 sectors; partition 3: ID=0x83, starthead 254, startsector 156248190, 78188355 sectors, code offset 0x63, OEM-ID "     &#1084;", Bytes/sector 190, sectors/cluster 124, reserved sectors 191, FATs 6, root entries 185, sectors 64514 (volumes <=32 MB) , Media descriptor 0xf3, sectors/FAT 20644, heads 6, hidden sectors 309755, sectors 2147991229 (volumes > 32 MB) , physical drive 0x7e, dos < 4.0 BootSector (0x0)
Sollten doch genug Informationen sein. :-)

Liebe Grüße,
Valentin

ATS3788 11. Jun 2012 15:58

AW: Linux Info wie Festplatte formatiert
 
Ok Danke

Ich habe es mit GParted geamacht

http://gparted.sourceforge.net/livecd.php


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:11 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz