/l3/users/eb/2009/linux10/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 |
|
#lvremove
![]() Please enter one or more logical volume paths Run `lvremove --help' for more information. |
#lvremove /dev/sdb
![]() Volume group "sdb" not found |
#lvremove TURBO /dev/sdb
![]() Do you really want to remove active logical volume "vol1"? [y/n]: y Logical volume "vol1" successfully removed Do you really want to remove active logical volume "vol2"? [y/n]: y Logical volume "vol2" successfully removed Volume group "sdb" not found |
#vgremove TURBO /dev/sdb
![]() Volume group "TURBO" successfully removed Volume group "sdb" not found |
#fdisk /dev/sda
![]() The number of cylinders for this disk is set to 9729. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): 1 1: unknown command Command action a toggle a bootable flag ... /dev/sda1 1 2432 19535008+ 83 Linux /dev/sda4 2433 6080 29302560 5 Extended /dev/sda5 2433 6080 29302528+ 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: Устройство или ресурс занято. The kernel still uses the old table. The new table will be used at the next reboot. Syncing disks. |
#fdisk -lu
Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors Units = sectors of 1 * 512 = 512 bytes Disk identifier: 0x960cc0f0 Device Boot Start End Blocks Id System /dev/sda1 63 39070079 19535008+ 83 Linux /dev/sda4 39070080 97675199 29302560 5 Extended /dev/sda5 39070143 97675199 29302528+ 83 Linux Disk /dev/sdb: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors Units = sectors of 1 * 512 = 512 bytes Disk identifier: 0x35ea4cae Device Boot Start End Blocks Id System /dev/sdb1 63 19551104 9775521 83 Linux /dev/sdb4 19551105 39102209 9775552+ 5 Extended /dev/sdb5 19551168 29334689 4891761 83 Linux /dev/sdb6 29334753 31310684 987966 83 Linux |
#fdisk -lu /dev/sda
Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors Units = sectors of 1 * 512 = 512 bytes Disk identifier: 0x960cc0f0 Device Boot Start End Blocks Id System /dev/sda1 63 39070079 19535008+ 83 Linux /dev/sda4 39070080 97675199 29302560 5 Extended /dev/sda5 39070143 97675199 29302528+ 83 Linux |
#fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x960cc0f0 Device Boot Start End Blocks Id System /dev/sda1 1 2432 19535008+ 83 Linux /dev/sda4 2433 6080 29302560 5 Extended /dev/sda5 2433 6080 29302528+ 83 Linux Disk /dev/sdb: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x35ea4cae Device Boot Start End Blocks Id System /dev/sdb1 1 1217 9775521 83 Linux /dev/sdb4 1218 2434 9775552+ 5 Extended /dev/sdb5 1218 1826 4891761 83 Linux /dev/sdb6 1827 1949 987966 83 Linux |
#df -k
Файловая система 1K-блоков Исп Доступно Исп% смонтирована на tmpfs 1618848 0 1618848 0% /lib/init/rw udev 10240 120 10120 2% /dev tmpfs 1618848 4 1618844 1% /dev/shm rootfs 19228276 2112944 16138584 12% / |
#df -h
Файловая система Разм Исп Дост Исп% смонтирована на tmpfs 1,6G 0 1,6G 0% /lib/init/rw udev 10M 120K 9,9M 2% /dev tmpfs 1,6G 4,0K 1,6G 1% /dev/shm rootfs 19G 2,1G 16G 12% / |
#fdisk -lu /dev/sda
Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors Units = sectors of 1 * 512 = 512 bytes Disk identifier: 0x960cc0f0 Device Boot Start End Blocks Id System /dev/sda1 63 39070079 19535008+ 83 Linux /dev/sda4 39070080 97675199 29302560 5 Extended /dev/sda5 39070143 97675199 29302528+ 83 Linux |
#fdisk -lu
Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors Units = sectors of 1 * 512 = 512 bytes Disk identifier: 0x960cc0f0 Device Boot Start End Blocks Id System /dev/sda1 63 39070079 19535008+ 83 Linux /dev/sda4 39070080 97675199 29302560 5 Extended /dev/sda5 39070143 97675199 29302528+ 83 Linux Disk /dev/sdb: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors Units = sectors of 1 * 512 = 512 bytes Disk identifier: 0x35ea4cae Device Boot Start End Blocks Id System /dev/sdb1 63 19551104 9775521 83 Linux /dev/sdb4 19551105 39102209 9775552+ 5 Extended /dev/sdb5 19551168 29334689 4891761 83 Linux /dev/sdb6 29334753 31310684 987966 83 Linux |
#fdisk -lu
/dev/sdb The number of cylinders for this disk is set to 38913. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): 1 1: unknown command Command action ... Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x35ea4cae Device Boot Start End Blocks Id System /dev/sdb1 1 1217 9775521 83 Linux /dev/sdb4 1218 4865 29302560 5 Extended /dev/sdb5 1218 4865 29302528+ 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. |
#fdisk -lu
Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors Units = sectors of 1 * 512 = 512 bytes Disk identifier: 0x960cc0f0 Device Boot Start End Blocks Id System /dev/sda1 63 39070079 19535008+ 83 Linux /dev/sda4 39070080 97675199 29302560 5 Extended /dev/sda5 39070143 97675199 29302528+ 83 Linux Disk /dev/sdb: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors Units = sectors of 1 * 512 = 512 bytes Disk identifier: 0x35ea4cae Device Boot Start End Blocks Id System /dev/sdb1 63 19551104 9775521 83 Linux /dev/sdb4 19551105 78156224 29302560 5 Extended /dev/sdb5 19551168 78156224 29302528+ 83 Linux |
#fdisk /dev/sdb
The number of cylinders for this disk is set to 38913. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): 1 1: unknown command Command action a toggle a bootable flag ... Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x35ea4cae Device Boot Start End Blocks Id System /dev/sdb1 1 4864 39070048+ 83 Linux /dev/sdb4 4865 8512 29302560 5 Extended /dev/sdb5 4865 8512 29302528+ 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. |
#fdisk -lu
Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors Units = sectors of 1 * 512 = 512 bytes Disk identifier: 0x960cc0f0 Device Boot Start End Blocks Id System /dev/sda1 63 39070079 19535008+ 83 Linux /dev/sda4 39070080 97675199 29302560 5 Extended |