Serveurs Privés Virtuels (VPS) - Ajout d'un disque supplémentaire - Linux
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

Ajout d'un disque supplémentaire - Linux

Von
GabrielP
Erstellungsdatum 2020-12-08 10:35:35 (edited on 2024-09-04 12:14:10) in Serveurs Privés Virtuels (VPS)

Bonjour, je viens d'acheter un disque supplémentaire chez OVH. J'utilise Debian/Yunohost.
Le mail d'accompagnement me propose ces lignes de commande pour l'ajouter au système existant :

> Vous pouvez monter votre disque additionnel sous Linux avec les commandes suivantes :

>
> mkdir -p /mnt/vdb
> mkfs.ext4 /dev/vdb
> mount /dev/vdb /mnt/vdb

Pour mkdir -p /mnt/vdb, pas de problème, mais mkfs.ext4 /dev/vdb me renvoie :
> mkfs.ext4 /dev/vdb
> mke2fs 1.44.5 (15-Dec-2018)
> The file /dev/vdb does not exist and no size was specified.

Comment résoudre ce problème ?


2 Antworten ( Latest reply on 2020-12-08 14:18:45 Von
GabrielP
)

Bonjour,

J'ai fait la même chose hier. La doc n'est pas à jour, il faut taper autre chose que "sdb", je regarde ce que j'ai fait et je reviens.

PS : voila ce que j'ai tapé, il faut mettre "s" à la place de "v" :
$ mkdir -p /mnt/sdb
$ mkfs.ext4 /dev/sdb
$ mount /dev/sdb /mnt/sdb

Super, merci !