Filesystem Check

FreeBSD, Gentoo, openSUSE, CentOS, Ubuntu, Debian
r00ty
Posts: 747
Joined: 2003-03-17 15:32
 

Filesystem Check

Post by r00ty »

Hallo !
Ich hab meinen 1und1 Server zwangsweise zweimal geresettet und wollte jetzt mal nen Filesystemcheck machen, der ja bei den Servern nicht automatisch beim booten läuft, allerdings bräuchte ich dazu a weng Hilfe.
Ich muss den Rechner im Rescue hochziehen, das ist mir klar. Und dann ?
klappt irgendwie ned so wirklich

/fdisk -l

Code: Select all

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          66      530113+  83  Linux
/dev/sda2              67         321     2048287+  82  Linux swap / Solaris
/dev/sda4             322        9729    75569760    5  Extended
/dev/sda5             322         959     5124703+  83  Linux
/dev/sda6             960        1597     5124703+  83  Linux
/dev/sda7            1598        9729    65320258+  83  Linux
/etc/fstab

Code: Select all

LABEL=/         /       ext3    defaults        0       1
/dev/sda2       none    swap    sw
LABEL=usr       /usr    xfs     defaults        0       2
LABEL=var       /var    xfs     defaults,usrquota        0       2
LABEL=home      /home   xfs     defaults,usrquota        0       2
proc            /proc   proc    defaults        0       0
devpts          /dev/pts        devpts  mode=0620,gid=5 0 0
tmpfs           /tmp    tmpfs   defaults        0       0
wenn ich mit fdisk /dev/sda7 bekomm ich immer ne dumme Fehlermeldung und mit p nicht wirklich den Paritionstyp:

Code: Select all

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.


The number of cylinders for this disk is set to 8131.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Aber der Server läuft !?!.

Muss ich da was unternehmen ? und wie checke ich das Filesystem ? fsck.xfs /dev/sda7 (z.B. ?) was muss ich mit .ext3 checken ?
nn4l
Posts: 172
Joined: 2002-06-19 07:06
 

Re: Filesystem Check

Post by nn4l »

Du solltest

fdisk /dev/sda

und

e2fsck /dev/sda1
e2fsck /dev/sda5
....

verwenden.