/l3/users/eb/2009/linux10/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 |
|
#mount /dev/sdb
![]() mount: /dev/sdb already mounted or /data busy mount: according to mtab, /dev/sdb is already mounted on /data |
#mount /dev/sdb /mnt
|
#mkfs.ext3 /dev/sdb
![]() mke2fs 1.41.5 (23-Apr-2009) /dev/sdb is entire device, not just one partition! Proceed anyway? (y,n) y /dev/sdb is mounted; will not make a filesystem here! |
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) rootfs on / type rootfs (rw) /dev/sdb on /data type ext3 (rw) /dev/sdb on /mnt type ext3 (rw) |
#mkfs.ext3 /dev/sdb1
![]() mke2fs 1.41.5 (23-Apr-2009) Could not stat /dev/sdb1 --- Нет такого файла или каталога The device apparently does not exist; did you specify it correctly? |
#mkfs.ext3 /dev/sdb2
![]() mke2fs 1.41.5 (23-Apr-2009) Could not stat /dev/sdb2 --- Нет такого файла или каталога The device apparently does not exist; did you specify it correctly? |
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) rootfs on / type rootfs (rw) /dev/sdb on /data type ext3 (rw) /dev/sdb on /mnt type ext3 (rw) |
#lvscan
|
#vgscan
Reading all physical volumes. This may take a while... |
#mount /dev/sdb1
![]() mount: can't find /dev/sdb1 in /etc/fstab or /etc/mtab |
#mount /dev/sdb
![]() mount: /dev/sdb already mounted or /data busy mount: according to mtab, /dev/sdb is already mounted on /data |
#mount /dev/sdb /mnt
![]() mount: /dev/sdb already mounted or /mnt busy mount: according to mtab, /dev/sdb is already mounted on /mnt |
#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 Disk /dev/sdb: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Disk /dev/sdb doesn't contain a valid partition table |
#fdisk /dev/sdb
![]() Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0x074f31b1. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. 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) ... Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x074f31b1 Device Boot Start End Blocks Id System 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 0: Победа. The kernel still uses the old table. The new table will be used at the next reboot. Syncing disks. |
#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 Disk /dev/sdb: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x074f31b1 Device Boot Start End Blocks Id System |
#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 ... /dev/sdb1 1 3648 29302528+ 83 Linux /dev/sdb4 3649 7296 29302560 5 Extended /dev/sdb5 3649 5473 14659281 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 0: Победа. The kernel still uses the old table. The new table will be used at the next reboot. Syncing disks. |
#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 Disk /dev/sdb: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x074f31b1 Device Boot Start End Blocks Id System /dev/sdb1 1 3648 29302528+ 83 Linux /dev/sdb4 3649 7296 29302560 5 Extended /dev/sdb5 3649 5473 14659281 83 Linux |
#pvcreate /dev/sdb[1,5]
![]() Device /dev/sdb[1,5] not found (or ignored by filtering). |
#mount /deb/sdb /mnt
![]() mount: you must specify the filesystem type |
#mkfs.ext3 /dev/sdb
![]() mke2fs 1.41.5 (23-Apr-2009) /dev/sdb is entire device, not just one partition! Proceed anyway? (y,n) y /dev/sdb is mounted; will not make a filesystem here! |
#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 Disk /dev/sdb: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x074f31b1 Device Boot Start End Blocks Id System /dev/sdb1 1 3648 29302528+ 83 Linux /dev/sdb4 3649 7296 29302560 5 Extended /dev/sdb5 3649 5473 14659281 83 Linux |
#mount.ext3fs /deb/sdb /mnt
bash: mount.ext3fs: команда не найдена |
#umount /dev/sdb
|
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) rootfs on / type rootfs (rw) /dev/sdb on /data type ext3 (rw) |
#umount /dev/sdb
|
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) rootfs on / type rootfs (rw) |
#umount /dev/sdb
umount: /dev/sdb: not mounted |
#umount /dev/sdb
![]() umount: /dev/sdb: not mounted |
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) rootfs on / type rootfs (rw) |
#umount /dev/sdb /mnt
![]() umount: /dev/sdb: not mounted umount: /mnt: not mounted |
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) rootfs on / type rootfs (rw) |
#umount /dev/sdb
![]() umount: /dev/sdb: not mounted |
#umount /dev/sdb[12] /mnt
![]() umount: /dev/sdb[12]: not found umount: /mnt: not mounted |
#umount /dev/sdb
![]() umount: /dev/sdb: not mounted |
#mount /dev/sdb /mnt
|
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) rootfs on / type rootfs (rw) /dev/sdb on /mnt type ext3 (rw) |
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) rootfs on / type rootfs (rw) /dev/sdb on /mnt type ext3 (rw) |
#pvcreate /dev/dsb[12]
![]() Device /dev/dsb[12] not found (or ignored by filtering). |
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) rootfs on / type rootfs (rw) /dev/sdb on /mnt type ext3 (rw) |
#umount /mnt
|
#pvcreate /dev/dsb[12]
Device /dev/dsb[12] not found (or ignored by filtering). |
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) rootfs on / type rootfs (rw) |
#pvcreate /dev/dsb[12]
![]() Device /dev/dsb[12] not found (or ignored by filtering). |
#pvcreate /dev/dsb[1,4]
![]() Device /dev/dsb[1,4] not found (or ignored by filtering). |
#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 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 |
#pvcreate /dev/dsb[1,5]
![]() Device /dev/dsb[1,5] not found (or ignored by filtering). |
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) rootfs on / type rootfs (rw) |
#mount /dev/sdb
|
#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 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 |
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) rootfs on / type rootfs (rw) /dev/sdb on /data type ext3 (rw) |
#umount
![]() Usage: umount [-hV] umount -a [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts] umount [-f] [-r] [-n] [-v] special | node... |
#umount /dev/sdb
|
#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 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 |
#pvcreate /dev/dsb[1,5]
![]() Device /dev/dsb[1,5] not found (or ignored by filtering). |
#umount /dev/sdb
![]() umount: /dev/sdb: not mounted |
#mount /dev/sdb /mnt
|
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) rootfs on / type rootfs (rw) /dev/sdb on /mnt type ext3 (rw) |
#pvcreate /dev/dsb[1,5]
![]() Device /dev/dsb[1,5] not found (or ignored by filtering). |
#umount /mnt
|
#pvcreate /dev/dsb1
![]() Device /dev/dsb1 not found (or ignored by filtering). |
#pvcreate /dev/dsb5
![]() Device /dev/dsb5 not found (or ignored by filtering). |
#pvcreate /dev/sdb1
Physical volume "/dev/sdb1" successfully created |
#pvcreate /dev/sdb5
Physical volume "/dev/sdb5" successfully created |
#vgcreate TURBO /dev/sdb[1,5]
Volume group "TURBO" successfully created |
#vls
![]() bash: vls: команда не найдена |
|