linux回收ntfs逻辑盘,linux的LVM逻辑盘卷管理

[root@localhost ~]# fdisk -lDisk /dev/hda: 1073 MB, 1073741824 bytes16 heads, 63 sectors/track, 2080 cylindersUnits = cylinders of 1008 * 512 = 516096 bytesDisk /dev/hda doesn't contain a valid partit...
摘要由CSDN通过智能技术生成

1659264d9c649cc0f3423c6ebbeb7732.png

[root@localhost ~]# fdisk -l

Disk /dev/hda: 1073 MB, 1073741824 bytes

16 heads, 63 sectors/track, 2080 cylinders

Units = cylinders of 1008 * 512 = 516096 bytes

Disk /dev/hda doesn't contain a valid partition table

Disk /dev/sdb: 1073 MB, 1073741824 bytes

255 heads, 63 sectors/track, 130 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 2147 MB, 2147483648 bytes

255 heads, 63 sectors/track, 261 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdc doesn't contain a valid partition table

[root@localhost ~]# fdisk /dev/sdbDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel. Changes will remain in memory only,

until you decide to write them. After that, of course, the previous

content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): n

Command action

e   extended

p   primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-130, default 1):

Using default value 1

Last cylinder or +size or +sizeM or +sizeK (1-130, default 130):

Using default value 130

Command (m for help): p

Disk /dev/sdb: 1073 MB, 1073741824 bytes

255 heads, 63 sectors/track, 130 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System/dev/sdb1               1         130     1044193+  83  Linux

Command (m for help): t

Selected partition 1

Hex code (type L to list codes): 8e

Changed system type of partition 1 to 8e (Linux LVM)

Command (m for help): p

Disk /dev/sdb: 1073 MB, 1073741824 bytes

255 heads, 63 sectors/track, 130 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System/dev/sdb1               1         130     1044193+  8e  Linux LVM

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

Syncing disks.

[root@localhost ~]#fdisk /dev/hda

Command (m for help): n

Command action

e   extended

p   primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-2080, default 1):

Using default value 1

Last cylinder or +size or +sizeM or +sizeK (1-2080, default 2080):

Using default value 2080

Command (m for help): t

Selected partition 1

Hex code (type L to list codes): 8e

Changed system type of partition 1 to 8e (Linux LVM)

Command (m for help): p

Disk /dev/hda: 1073 MB, 1073741824 bytes

16 heads, 63 sectors/track, 2080 cylinders

Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot      Start         End      Blocks   Id  System/dev/hda1               1        2080     1048288+  8e  Linux LVM

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

Syncing disks.

[root@localhost ~]#fdisk /dev/sdc

Command (m for help): n

Command action

e   extended

p   primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-261, default 1):

Using default value 1

Last cylinder or +size or +sizeM or +sizeK (1-261, default 261): +500M

Command (m for help): n

Command action

e   extended

p   primary partition (1-4)

p

Partition number (1-4): 2

First cylinder (63-261, default 63):

Using default value 63

Last cylinder or +size or +sizeM or +sizeK (63-261, default 261): +100M

Command (m for help): n

Command action

e   extended

p   primary partition (1-4)

e

Partition number (1-4): 4

First cylinder (76-261, default 76):

Using default value 76

Last cylinder or +size or +sizeM or +sizeK (76-261, default 261):

Using default value 261

Command (m for help): p

Disk /dev/sdc: 2147 MB, 2147483648 bytes

255 heads, 63 sectors/track, 261 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System/dev/sdc1               1          62      497983+  83  Linux

/dev/sdc2              63          75      104422+  83  Linux

/dev/sdc4              76         261     1494045    5  Extended

Command (m for help): n

Command action

l   logical (5 or over)

p   primary partition (1-4)

l

First cylinder (76-261, default 76):

Using default value 76

Last cylinder or +size or +sizeM or +sizeK (76-261, default 261):+100M

Command (m for help): n

Command action

l   logical (5 or over)

p   primary partition (1-4)

l

First cylinder (89-261, default 89):

Using default value 89

Last cylinder or +size or +sizeM or +sizeK (89-261, default 261):+100M

Command (m for help): n

Command action

l   logical (5 or over)

p   primary partition (1-4)

l

First cylinder (102-261, default 102):

Using default value 102

Last cylinder or +size or +sizeM or +sizeK (102-261, default 261):+100M

Command (m for help): p

Disk /dev/sdc: 2147 MB, 2147483648 bytes

255 heads, 63 sectors/track, 261 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System/dev/sdc1               1          62      497983+  83  Linux

/dev/sdc2              63          75      104422+  83  Linux

/dev/sdc4              76         261     1494045    5  Extended

/dev/sdc5              76          88      104391   83  Linux

/dev/sdc6              89         101      104391   83  Linux

/dev/sdc7             102         114      104391   83  Linux

Command (m for help): t

Partition number (1-7): 1

Hex code (type L to list codes): l

0  Empty           1e  Hidden W95 FAT1 80  Old Minix       be  Solaris boot

1  FAT12           24  NEC DOS         81  Minix / old Lin bf  Solaris

2  XENIX root      39  Plan 9          82  Linux swap / So c1  DRDOS/sec (FAT-

3  XENIX usr       3c  PartitionMagic  83  Linux           c4  DRDOS/sec (FAT-

4  FAT16 <32M      40  Venix 80286     84  OS/2 hidden C:  c6  DRDOS/sec (FAT-

5  Extended        41  PPC PReP Boot   85  Linux extended  c7  Syrinx

6  FAT16           42  SFS             86  NTFS volume set da  Non-FS data

7  HPFS/NTFS       4d  QNX4.x          87  NTFS volume set db  CP/M / CTOS / .

8  AIX             4e  QNX4.x 2nd part 88  Linux plaintext de  Dell Utility

9  AIX bootable    4f  QNX4.x 3rd part 8e  Linux LVM       df  BootIt

a  OS/2 Boot Manag 50  OnTrack DM      93  Amoeba          e1  DOS access

b  W95 FAT32       51  OnTrac

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值