Журнал лабораторных работ

Содержание

Журнал

Суббота (05/30/09)

/dev/pts/3
16:52:46
#mount /dev/sdb
mount: /dev/sdb already mounted or /data busy
mount: according to mtab, /dev/sdb is already mounted on /data
16:52:58
#mount /dev/sdb /mnt

16:53:06
#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!
16:53:15
#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)
16:53:20
#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?
16:53:31
#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?
16:53:34
#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)
16:53:36
#lvscan

16:53:54
#vgscan
  Reading all physical volumes.  This may take a while...
16:54:04
#mount /dev/sdb1
mount: can't find /dev/sdb1 in /etc/fstab or /etc/mtab
16:54:50
#mount /dev/sdb
mount: /dev/sdb already mounted or /data busy
mount: according to mtab, /dev/sdb is already mounted on /data
16:54:52
#mount /dev/sdb /mnt
mount: /dev/sdb already mounted or /mnt busy
mount: according to mtab, /dev/sdb is already mounted on /mnt
16:54:56
#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
16:55:22
#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.
16:56:03
#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
16:56:11
#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.
16:57:40
#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
16:57:42
#pvcreate /dev/sdb[1,5]
  Device /dev/sdb[1,5] not found (or ignored by filtering).
16:58:34
#mount /deb/sdb /mnt
mount: you must specify the filesystem type
16:58:49
#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!
16:59:02
#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
16:59:06
#mount.ext3fs /deb/sdb /mnt
bash: mount.ext3fs: команда не найдена
16:59:44
#umount /dev/sdb

16:59:53
#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)
16:59:55
#umount /dev/sdb

17:00:03
#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)
17:00:05
#umount /dev/sdb
umount: /dev/sdb: not mounted
17:02:54
#umount /dev/sdb
umount: /dev/sdb: not mounted
17:03:04
#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)
17:03:08
#umount /dev/sdb /mnt
umount: /dev/sdb: not mounted
umount: /mnt: not mounted
17:03:19
#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)
17:03:21
#umount /dev/sdb
umount: /dev/sdb: not mounted
17:03:29
#umount /dev/sdb[12] /mnt
umount: /dev/sdb[12]: not found
umount: /mnt: not mounted
17:03:40
#umount /dev/sdb
umount: /dev/sdb: not mounted
17:03:45
#mount /dev/sdb /mnt

17:04:59
#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)
17:05:14
#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)
17:05:24
#pvcreate /dev/dsb[12]
  Device /dev/dsb[12] not found (or ignored by filtering).
17:05:59
#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)
17:06:05
#umount /mnt

17:07:23
#pvcreate /dev/dsb[12]
  Device /dev/dsb[12] not found (or ignored by filtering).
17:14:56
#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)
17:15:02
#pvcreate /dev/dsb[12]
  Device /dev/dsb[12] not found (or ignored by filtering).
17:15:09
#pvcreate /dev/dsb[1,4]
  Device /dev/dsb[1,4] not found (or ignored by filtering).
17:15:17
#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
17:15:25
#pvcreate /dev/dsb[1,5]
  Device /dev/dsb[1,5] not found (or ignored by filtering).
17:15:39
#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)
17:15:50
#mount /dev/sdb

17:15:57
#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
17:16:03
#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)
17:16:08
#umount
Usage: umount [-hV]
       umount -a [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts]
       umount [-f] [-r] [-n] [-v] special | node...
17:16:13
#umount /dev/sdb

17:16:21
#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
17:16:23
#pvcreate /dev/dsb[1,5]
  Device /dev/dsb[1,5] not found (or ignored by filtering).
17:16:29
#umount /dev/sdb
umount: /dev/sdb: not mounted
17:16:59
#mount /dev/sdb /mnt

17:17:13
#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)
17:17:17
#pvcreate /dev/dsb[1,5]
  Device /dev/dsb[1,5] not found (or ignored by filtering).
17:17:22
#umount /mnt

17:17:31
#pvcreate /dev/dsb1
  Device /dev/dsb1 not found (or ignored by filtering).
17:17:39
#pvcreate /dev/dsb5
  Device /dev/dsb5 not found (or ignored by filtering).
17:17:41
#pvcreate /dev/sdb1
  Physical volume "/dev/sdb1" successfully created
17:17:53
#pvcreate /dev/sdb5
  Physical volume "/dev/sdb5" successfully created
17:17:58
#vgcreate TURBO /dev/sdb[1,5]
  Volume group "TURBO" successfully created
17:18:47
#vls
bash: vls: команда не найдена
17:19:12