użyłem fdisk /dev/sda utworzyć partycję sda6. Teraz chcę sformatować go za pomocą mkfs.ext4 dowództwo. Używam dystrybucji Linuksa CentOS 6.5. Ale kiedy uruchomię to polecenie, otrzymuję następujący błąd
mkfs.ext4
Could not stat /dev/sda6 --- No such file or directory
The device apparently does not exist; did you specify it correctly?
Jestem nowy w Linuksie i doceniam wszelką pomoc. Próbowałem tego z i bez "sudo" iw obu przypadkach otrzymałem taki sam wynik.
[root@server1 ~]# sudo fdisk /dev/sda
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): n
First cylinder (1530-3264, default 1530): 2042
Last cylinder, +cylinders or +size{K,M,G} (2042-3264, default 3264): +50MB
Command (m for help): p
Disk /dev/sda: 26.8 GB, 26843545600 bytes
255 heads, 63 sectors/track, 3263 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00002158
Device Boot Start End Blocks Id System
/dev/sda1 * 1 511 4096000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 511 1020 4096000 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3 1020 1530 4096000 83 Linux
/dev/sda4 1530 3264 13925376 5 Extended
/dev/sda5 1531 2041 4096000 83 Linux
/dev/sda6 2042 2048 56227+ 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
[root@server1 ~]# mkfs.ext4 /dev/sda6
mke2fs 1.41.12 (17-May-2010)
Could not stat /dev/sda6 --- No such file or directory
The device apparently does not exist; did you specify it correctly?
Po ponownym uruchomieniu - & gt;
Polecenie (m o pomoc): p
Dysk / dev / sda: 26,8 GB, 26843545600 bajtów 255 głowic, 63 sektory / ścieżka, 3263 cylindry Jednostki = cylindry o wartości 16065 * 512 = 8225280 bajtów Rozmiar sektora (logiczny / fizyczny): 512 bajtów / 512 bajtów Rozmiar I / O (minimum / optymalny): 512 bajtów / 512 bajtów Identyfikator dysku: 0x00002158
Device Boot Start End Blocks Id System / dev / sda1 * 1 511 4096000 83 Linux Partycja 1 nie kończy się na granicy cylindra. / dev / sda2 511 1020 4096000 82 Linux swap / Solaris Partycja 2 nie kończy się na granicy cylindra. / dev / sda3 1020 1530 4096000 83 Linux / dev / sda4 1530 3264 13925376 5 Rozszerzony / dev / sda5 1531 2041 4096000 83 Linux / dev / sda6 2042 2048 56227+ 83 Linux
Polecenie (m o pomoc): w Tabela partycji została zmieniona!
Wywołanie funkcji ioctl () w celu ponownego odczytania tabeli partycji.
OSTRZEŻENIE: Ponowne odczytanie tabeli partycji zakończyło się niepowodzeniem z błędem 16: Urządzenie lub zasób zajęty. Jądro nadal używa starej tabeli. Nowa tabela zostanie wykorzystana na kolejny restart lub po uruchomieniu partprobe (8) lub kpartx (8) Synchronizowanie dysków.
[root @ server1 ~] # partx / dev / sda
1: 2048- 8194047 (8192000 sektorów, 4194 MB)
2: 8194048- 16386047 (8192000 sektorów, 4194 MB)
3: 16386048- 24578047 (8192000 sektorów, 4194 MB)
4: 24578048- 52428799 (27850752 sektory, 14259 MB)
5: 24582144- 32774143 (8192000 sektorów, 4194 MB)
6: 32788665- 32901119 (112455 sektorów, 57 MB)
[root @ server1 ~] # mkfs.ext4 / dev / sda6
mke2fs 1.41.12 (17-maj-2010)
/ dev / sda6 jest najwyraźniej w użyciu przez system; nie stworzy tu systemu plików!
[root @ server1 ~] #
WAŻNY Zauważyłem, że fdisk / dev / sda - n - 6 - w, partx, mkfs.ext4 / dev / sda6 pracował nad red hat 6.5 rhel, ale nie działa dla CentOS 6.5. nie wiem dlaczego. Dzięki