Всем привет. Было:
root@pve2:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 3.7T 0 disk
`-sda1 8:1 0 3.7T 0 part
Задача разбить sda на две части. На диске данные, перенести которые не представляется возможным, объемом около 1.5 Т.
Что делал:
root@pve2:/# resize2fs /dev/sda1 -s 2000G
resize2fs 1.43.4 (31-Jan-2017)
The filesystem is already 32-bit.
Потом:
root@pve2:/# fdisk /dev/sda
Welcome to fdisk (util-linux 2.29.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): i
Selected partition 1
Device: /dev/sda1
Start: 65535
End: 7814037134
Sectors: 7813971600
Size: 3.7T
Type: Linux filesystem
Type-UUID: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
UUID: 722CB96E-2E26-4180-9D4E-2B6D41E058BA
Command (m for help): d
Selected partition 1
Partition 1 has been deleted.
Command (m for help): n
Partition number (1-128, default 1):
First sector (65535-7814037134, default 65536):
Last sector, +sectors or +size{K,M,G,T,P} (65536-7814037134, default 7814037134): +2000G
Created a new partition 1 of type 'Linux filesystem' and of size 2 TiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
В итоге:
root@pve2:/# mount /dev/sda1 /4tb
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
Погуглил, почитал, ничего не получается.
На любые попытки проверить файловую систему получаю:
root@pve2:/# e2fsck /dev/sda1
e2fsck 1.43.4 (31-Jan-2017)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sda1
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
Может я что-то не понимаю или не правильно делаю?