Смоленск 1.6 ssh

SkvITy

New member
Сообщения
68
#28
Usage:
fdisk [options] <disk> change partition table
fdisk [options] -l [<disk>] list partition table(s)

Display or manipulate a disk partition table.

Options:
-b, --sector-size <size> physical and logical sector size
-B, --protect-boot don't erase bootbits when creating a new label
-c, --compatibility[=<mode>] mode is 'dos' or 'nondos' (default)
-L, --color[=<when>] colorize output (auto, always or never)
colors are enabled by default
-l, --list display partitions and exit
-o, --output <list> output columns
-t, --type <type> recognize specified partition table type only
-u, --units[=<unit>] display units: 'cylinders' or 'sectors' (default)
-s, --getsz display device size in 512-byte sectors [DEPRECATED]
--bytes print SIZE in bytes rather than in human readable format
-w, --wipe <mode> wipe signatures (auto, always or never)
-W, --wipe-partitions <mode> wipe signatures from new partitions (auto, always or never)

-C, --cylinders <number> specify the number of cylinders
-H, --heads <number> specify the number of heads
-S, --sectors <number> specify the number of sectors per track

-h, --help display this help and exit
-V, --version output version information and exit

Available columns (for -o):
gpt: Device Start End Sectors Size Type Type-UUID Attrs Name UUID
dos: Device Start End Sectors Cylinders Size Type Id Attrs Boot End-C/H/S
Start-C/H/S
bsd: Slice Start End Sectors Cylinders Size Type Bsize Cpg Fsize
sgi: Device Start End Sectors Cylinders Size Type Id Attrs
sun: Device Start End Sectors Cylinders Size Type Id Flags

For more details see fdisk(8).
 

SkvITy

New member
Сообщения
68
#36
Сделайте вывод команд
pdp-ls -Mn /dev/
pdp-id
total 0
crw---------- 1 0 0 0:0:0x0:0x0 agpgart
crw-r--r----- 1 0 0 0:0:0x0:0x0 autofs
drwxr-xr-x--- 2 0 0 0:0:0x0:0x0 block
drwxr-xr-x--- 2 0 0 0:0:0x0:0x0 bsg
crw---------- 1 0 0 0:0:0x0:0x0 btrfs-control
lrwxrwxrwx--- 1 0 0 0:0:0x0:0x0 cdrom -> sr0
lrwxrwxrwx--- 1 0 0 0:0:0x0:0x0 cdrw -> sr0
drwxr-xr-x--- 2 0 0 0:0:0x0:0x0 char
crw---------- 1 0 0 0:0:0x0:0x0 console
lrwxrwxrwx--- 1 0 0 0:0:0x0:0x0 core -> /proc/kcore
crw---------- 1 0 0 0:0:0x0:0x0 cpu_dma_latency
crw---------- 1 0 0 0:0:0x0:0x0 cuse
drwxr-xr-x--- 7 0 0 0:0:0x0:0x0 disk
drwxr-xr-x--- 2 0 0 0:0:0x0:0x0 dri
lrwxrwxrwxm-- 1 0 0 0:0:0x0:0x0 dvd -> sr0
crw---------- 1 0 0 0:0:0x0:0x0 ecryptfs
crw-rw------- 1 0 44 0:0:0x0:0x0 fb0
lrwxrwxrwxm-- 1 0 0 0:63:0x0:0x0 fd -> /proc/self/fd
brw-rw------- 1 0 6 0:0:0x0:0x0 fd0
crw-rw-rw-m-- 1 0 0 0:0:0x0:0x4 full
crw-rw-rw---- 1 0 0 0:0:0x0:0x0 fuse
crw---------- 1 0 0 0:0:0x0:0x0 hpet
drwxr-xr-x--- 2 0 0 0:0:0x0:0x0 hugepages
crw---------- 1 0 0 0:0:0x0:0x0 hwrng
lrwxrwxrwx--- 1 0 0 0:0:0x0:0x0 initctl -> /run/systemd/initctl/fifo
crw-r--r----- 1 0 0 0:0:0x0:0x0 kmsg
drwxr-xr-x--- 2 0 0 0:0:0x0:0x0 lightnvm
lrwxrwxrwx--- 1 0 0 0:0:0x0:0x0 log -> /run/systemd/journal/dev-log
brw-rw------- 1 0 6 0:0:0x0:0x0 loop0
brw-rw------- 1 0 6 0:0:0x0:0x0 loop1
brw-rw------- 1 0 6 0:0:0x0:0x0 loop2
brw-rw------- 1 0 6 0:0:0x0:0x0 loop3
brw-rw------- 1 0 6 0:0:0x0:0x0 loop4
brw-rw------- 1 0 6 0:0:0x0:0x0 loop5
brw-rw------- 1 0 6 0:0:0x0:0x0 loop6
brw-rw------- 1 0 6 0:0:0x0:0x0 loop7
crw-rw------- 1 0 6 0:0:0x0:0x0 loop-control
crw---------- 1 0 0 0:0:0x0:0x0 mcelog
crw-r-------- 1 0 15 0:0:0x0:0x0 mem
crw---------- 1 0 0 0:0:0x0:0x0 memory_bandwidth
drwxrwxrwt--- 2 0 0 0:0:0x0:0x0 mqueue
drwxr-xr-x--- 2 0 0 0:0:0x0:0x0 net
crw---------- 1 0 0 0:0:0x0:0x0 network_latency
crw---------- 1 0 0 0:0:0x0:0x0 network_throughput
crw-rw-rw-m-- 1 0 0 0:0:0x0:0x4 null
crw-r-------- 1 0 15 0:0:0x0:0x0 port
crw---------- 1 0 0 0:0:0x0:0x0 ppp
crw---------- 1 0 0 0:0:0x0:0x0 psaux
crw-rw-rw-m-- 1 0 5 0:0:0x0:0x4 ptmx
drwxr-xr-x--- 2 0 0 0:0:0x0:0x0 pts
crw-rw-rw-m-- 1 0 0 0:0:0x0:0x4 random
crw-rw-r----- 1 0 108 0:0:0x0:0x0 rfkill
lrwxrwxrwx--- 1 0 0 0:0:0x0:0x0 rtc -> rtc0
crw---------- 1 0 0 0:0:0x0:0x0 rtc0
crw-rw------- 1 0 24 0:0:0x0:0x0 sg0
crw-rw------- 1 0 6 0:0:0x0:0x0 sg1
crw-rw------- 1 0 6 0:0:0x0:0x0 sg2
drwxrwxrwt--- 2 0 0 0:0:0x0:0x0 shm
crw---------- 1 0 0 0:0:0x0:0x0 snapshot
drwxr-xr-x--- 2 0 0 0:0:0x0:0x0 snd
brw-rw------- 1 0 24 0:0:0x0:0x0 sr0
lrwxrwxrwxm-- 1 0 0 0:63:0x0:0x0 stderr -> /proc/self/fd/2
lrwxrwxrwxm-- 1 0 0 0:63:0x0:0x0 stdin -> /proc/self/fd/0
lrwxrwxrwxm-- 1 0 0 0:63:0x0:0x0 stdout -> /proc/self/fd/1
crw-rw-rw-m-- 1 0 5 0:0:0x0:0x4 tty
crw--w------- 1 0 5 0:0:0x0:0x0 tty0
crw--w------- 1 0 5 0:0:0x0:0x0 tty1
crw--w------- 1 0 5 0:0:0x0:0x0 tty10
crw--w------- 1 0 5 0:0:0x0:0x0 tty11
crw--w------- 1 0 5 0:0:0x0:0x0 tty12
crw--w------- 1 0 5 0:0:0x0:0x0 tty13
crw--w------- 1 0 5 0:0:0x0:0x0 tty14
crw--w------- 1 0 5 0:0:0x0:0x0 tty15
crw--w------- 1 0 5 0:0:0x0:0x0 tty16
crw--w------- 1 0 5 0:0:0x0:0x0 tty17
crw--w------- 1 0 5 0:0:0x0:0x0 tty18
crw--w------- 1 0 5 0:0:0x0:0x0 tty19
crw--w------- 1 0 5 0:0:0x0:0x0 tty2
crw--w------- 1 0 5 0:0:0x0:0x0 tty20
crw--w------- 1 0 5 0:0:0x0:0x0 tty21
crw--w------- 1 0 5 0:0:0x0:0x0 tty22
crw--w------- 1 0 5 0:0:0x0:0x0 tty23
crw--w------- 1 0 5 0:0:0x0:0x0 tty24
crw--w------- 1 0 5 0:0:0x0:0x0 tty25
crw--w------- 1 0 5 0:0:0x0:0x0 tty26
crw--w------- 1 0 5 0:0:0x0:0x0 tty27
crw--w------- 1 0 5 0:0:0x0:0x0 tty28
crw--w------- 1 0 5 0:0:0x0:0x0 tty29
crw--w------- 1 0 5 0:0:0x0:0x0 tty3
crw--w------- 1 0 5 0:0:0x0:0x0 tty30
crw--w------- 1 0 5 0:0:0x0:0x0 tty31
crw--w------- 1 0 5 0:0:0x0:0x0 tty32
crw--w------- 1 0 5 0:0:0x0:0x0 tty33
crw--w------- 1 0 5 0:0:0x0:0x0 tty34
crw--w------- 1 0 5 0:0:0x0:0x0 tty35
crw--w------- 1 0 5 0:0:0x0:0x0 tty36
crw--w------- 1 0 5 0:0:0x0:0x0 tty37
crw--w------- 1 0 5 0:0:0x0:0x0 tty38
crw--w------- 1 0 5 0:0:0x0:0x0 tty39
crw--w------- 1 0 5 0:0:0x0:0x0 tty4
crw--w------- 1 0 5 0:0:0x0:0x0 tty40
crw--w------- 1 0 5 0:0:0x0:0x0 tty41
crw--w------- 1 0 5 0:0:0x0:0x0 tty42
crw--w------- 1 0 5 0:0:0x0:0x0 tty43
crw--w------- 1 0 5 0:0:0x0:0x0 tty44
crw--w------- 1 0 5 0:0:0x0:0x0 tty45
crw--w------- 1 0 5 0:0:0x0:0x0 tty46
crw--w------- 1 0 5 0:0:0x0:0x0 tty47
crw--w------- 1 0 5 0:0:0x0:0x0 tty48
crw--w------- 1 0 5 0:0:0x0:0x0 tty49
crw--w------- 1 0 5 0:0:0x0:0x0 tty5
crw--w------- 1 0 5 0:0:0x0:0x0 tty50
crw--w------- 1 0 5 0:0:0x0:0x0 tty51
crw--w------- 1 0 5 0:0:0x0:0x0 tty52
crw--w------- 1 0 5 0:0:0x0:0x0 tty53
crw--w------- 1 0 5 0:0:0x0:0x0 tty54
crw--w------- 1 0 5 0:0:0x0:0x0 tty55
crw--w------- 1 0 5 0:0:0x0:0x0 tty56
crw--w------- 1 0 5 0:0:0x0:0x0 tty57
crw--w------- 1 0 5 0:0:0x0:0x0 tty58
crw--w------- 1 0 5 0:0:0x0:0x0 tty59
crw--w------- 1 0 5 0:0:0x0:0x0 tty6
crw--w------- 1 0 5 0:0:0x0:0x0 tty60
crw--w------- 1 0 5 0:0:0x0:0x0 tty61
crw--w------- 1 0 5 0:0:0x0:0x0 tty62
crw--w------- 1 0 5 0:0:0x0:0x0 tty63
crw--w------- 1 0 5 0:0:0x0:0x0 tty7
crw--w------- 1 0 5 0:0:0x0:0x0 tty8
crw--w------- 1 0 5 0:0:0x0:0x0 tty9
crw---------- 1 0 0 0:0:0x0:0x0 ttyprintk
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS0
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS1
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS10
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS11
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS12
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS13
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS14
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS15
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS16
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS17
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS18
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS19
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS2
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS20
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS21
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS22
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS23
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS24
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS25
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS26
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS27
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS28
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS29
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS3
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS30
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS31
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS4
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS5
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS6
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS7
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS8
crw-rw------- 1 0 20 0:0:0x0:0x0 ttyS9
crw---------- 1 0 0 0:0:0x0:0x0 uhid
crw---------- 1 0 0 0:0:0x0:0x0 uinput
crw-rw-rw-m-- 1 0 0 0:0:0x0:0x4 urandom
crw---------- 1 0 0 0:0:0x0:0x0 userio
crw-rw------- 1 0 5 0:0:0x0:0x0 vcs
crw-rw------- 1 0 5 0:0:0x0:0x0 vcs1
crw-rw------- 1 0 5 0:0:0x0:0x0 vcs2
crw-rw------- 1 0 5 0:0:0x0:0x0 vcs3
crw-rw------- 1 0 5 0:0:0x0:0x0 vcs4
crw-rw------- 1 0 5 0:0:0x0:0x0 vcs5
crw-rw------- 1 0 5 0:0:0x0:0x0 vcs6
crw-rw------- 1 0 5 0:0:0x0:0x0 vcsa
crw-rw------- 1 0 5 0:0:0x0:0x0 vcsa1
crw-rw------- 1 0 5 0:0:0x0:0x0 vcsa2
crw-rw------- 1 0 5 0:0:0x0:0x0 vcsa3
crw-rw------- 1 0 5 0:0:0x0:0x0 vcsa4
crw-rw------- 1 0 5 0:0:0x0:0x0 vcsa5
crw-rw------- 1 0 5 0:0:0x0:0x0 vcsa6
drwxr-xr-x--- 2 0 0 0:0:0x0:0x0 vfio
crw---------- 1 0 0 0:0:0x0:0x0 vga_arbiter
crw---------- 1 0 0 0:0:0x0:0x0 vhci
crw---------- 1 0 0 0:0:0x0:0x0 vhost-net
crw---------- 1 0 0 0:0:0x0:0x0 vhost-vsock
crw---------- 1 0 0 0:0:0x0:0x0 vmci
crw-rw-rw-m-- 1 0 0 0:0:0x0:0x4 zero

Level=0(Уровень_0), ILevel=63(63), Categories=0x0(Нет)
Roles=:(No:No)
 

SkvITy

New member
Сообщения
68
#40
Нет, просто выполнить
sudo fdisk -l
Вывод доступных дисков и разделов. Может в системе и нет диска sdb
lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 320G 0 disk
├─sda1 8:1 0 64G 0 part [SWAP]
└─sda2 8:2 0 256G 0 part /
sdb 8:16 0 128G 0 disk
└─sdb1 8:17 0 128G 0 part /mnt/backup
sr0 11:0 1 2.4G 0 rom