WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   XFS Filesystem neu anlegen (http://www.wcm.at/forum/showthread.php?t=114600)

jorge 06.11.2003 10:01

XFS Filesystem neu anlegen
 
Hallo,

wollte zu testzwecken auf einer eingenen Partition das xfs filesystem anlegen:

- kernel neu kompiliert
- altes filesysten "ungemountet"
dann:

Code:

[root@reu03filsrv root]# mkfs -V -t xfs /dev/hda5
mkfs Version 2.11y (Feb 24 2003)
mkfs.xfs /dev/hda5
mkfs.xfs: /dev/hda5 appears to contain an existing filesystem (ext3).
mkfs.xfs: Use the -f option to force overwrite.

...allerdings scheint es die Option -f gar nicht zu geben,
jedenfalls nicht in der man page und wenn ich sie verwende kommen auch nur fehler:

Code:

[root@reu03filsrv root]# mkfs -V -f -t xfs /dev/hda5
mkfs Version 2.11y (Feb 24 2003)
mkfs.ext2 -f -t xfs /dev/hda5
mke2fs 1.32 (09-Nov-2002)
mkfs.ext2: bad fragment size - -t

weiss wer Rat???

gruss
jorge

markisonline 07.11.2003 01:14

Ich nehme es mal an, dass du die Unterstützung von XFS im Kernel nicht als Modul genommen und die XFS 1.3.x hast (ab 2.4.20(!?)).

Das richtige Syntax für das "forcing" ist:
Code:

mkfs -t xfs -f /dev/<devfile>

jorge 07.11.2003 22:02

Zitat:

Ich nehme es mal an, dass du die Unterstützung von XFS im Kernel nicht als Modul genommen und die XFS 1.3.x hast (ab 2.4.20(!?)).
kernel version: 2.4.22 - keine module --> monolithisch (damit ich auch noch was gscheits gesagt habe ;) )

bei mir gings mit:

Code:

mkfs.xfs -f /dev/hda5
gruss
j.


Alle Zeitangaben in WEZ +2. Es ist jetzt 20:31 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag