/l3/users/eb/2009/linux3/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 |
|
#vgcreate --help
vgcreate: Create a volume group vgcreate [-A|--autobackup {y|n}] [--addtag Tag] [--alloc AllocationPolicy] [-c|--clustered {y|n}] [-d|--debug] [-h|--help] [-l|--maxlogicalvolumes MaxLogicalVolumes] [-M|--metadatatype 1|2] [-p|--maxphysicalvolumes MaxPhysicalVolumes] [-s|--physicalextentsize PhysicalExtentSize[kKmMgGtTpPeE]] [-t|--test] [-v|--verbose] [--version] VolumeGroupName PhysicalVolume [PhysicalVolume...] |
#vgcreate --help
vgcreate: Create a volume group vgcreate [-A|--autobackup {y|n}] [--addtag Tag] [--alloc AllocationPolicy] [-c|--clustered {y|n}] [-d|--debug] [-h|--help] [-l|--maxlogicalvolumes MaxLogicalVolumes] [-M|--metadatatype 1|2] [-p|--maxphysicalvolumes MaxPhysicalVolumes] [-s|--physicalextentsize PhysicalExtentSize[kKmMgGtTpPeE]] [-t|--test] [-v|--verbose] [--version] VolumeGroupName PhysicalVolume [PhysicalVolume...] |
#vgdisplay
--- Volume group --- VG Name VG1 System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 1 VG Access read/write VG Status resizable MAX LV 0 Cur LV 0 Open LV 0 Max PV 0 Cur PV 1 Act PV 1 VG Size 9.31 GB PE Size 4.00 MB Total PE 2384 Alloc PE / Size 0 / 0 Free PE / Size 2384 / 9.31 GB VG UUID Phwjpa-RBzh-WyPH-r8wM-P4OD-tQ4f-6wgmj0 |
#vgdisplay
--- Volume group --- VG Name VG1 System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 1 VG Access read/write VG Status resizable MAX LV 0 Cur LV 0 Open LV 0 Max PV 0 Cur PV 1 Act PV 1 VG Size 9.31 GB PE Size 4.00 MB Total PE 2384 Alloc PE / Size 0 / 0 Free PE / Size 2384 / 9.31 GB VG UUID Phwjpa-RBzh-WyPH-r8wM-P4OD-tQ4f-6wgmj0 |
#lvcreate --help
lvcreate: Create a logical volume lvcreate [-A|--autobackup {y|n}] [--addtag Tag] [--alloc AllocationPolicy] [-C|--contiguous {y|n}] [-d|--debug] [-h|-?|--help] [-i|--stripes Stripes [-I|--stripesize StripeSize]] {-l|--extents LogicalExtentsNumber | ... {-l|--extents LogicalExtentsNumber[%{VG|LV|PVS|FREE}] | -L|--size LogicalVolumeSize[kKmMgGtTpPeE]} [-M|--persistent {y|n}] [--major major] [--minor minor] [-n|--name LogicalVolumeName] [-p|--permission {r|rw}] [-r|--readahead ReadAheadSectors|auto|none] [-t|--test] [-v|--verbose] [--version] OriginalLogicalVolume[Path] [PhysicalVolumePath...] |
#lvcreate --help
lvcreate: Create a logical volume lvcreate [-A|--autobackup {y|n}] [--addtag Tag] [--alloc AllocationPolicy] [-C|--contiguous {y|n}] [-d|--debug] [-h|-?|--help] [-i|--stripes Stripes [-I|--stripesize StripeSize]] {-l|--extents LogicalExtentsNumber | ... {-l|--extents LogicalExtentsNumber[%{VG|LV|PVS|FREE}] | -L|--size LogicalVolumeSize[kKmMgGtTpPeE]} [-M|--persistent {y|n}] [--major major] [--minor minor] [-n|--name LogicalVolumeName] [-p|--permission {r|rw}] [-r|--readahead ReadAheadSectors|auto|none] [-t|--test] [-v|--verbose] [--version] OriginalLogicalVolume[Path] [PhysicalVolumePath...] |
#lvcreate -n vol1 /dev/VG1
Please specify either size or extents (not both) Run `lvcreate --help' for more information. |
#lvcreate -n vol1 /dev/VG1
Please specify either size or extents (not both) Run `lvcreate --help' for more information. |
#lvdisplay
--- Logical volume --- LV Name /dev/VG1/vol1 VG Name VG1 LV UUID 3JCL6p-HRZ6-R0g9-W94J-NUWI-VYZB-Amfoul LV Write Access read/write LV Status available # open 0 LV Size 4.00 GB Current LE 1024 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0 |
#lvdisplay
--- Logical volume --- LV Name /dev/VG1/vol1 VG Name VG1 LV UUID 3JCL6p-HRZ6-R0g9-W94J-NUWI-VYZB-Amfoul LV Write Access read/write LV Status available # open 0 LV Size 4.00 GB Current LE 1024 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0 |
#mkfs.ext3 /dev/VG1/vol1
mke2fs 1.41.5 (23-Apr-2009) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 262144 inodes, 1048576 blocks 52428 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=1073741824 32 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 39 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. |
#mkfs.ext3 /dev/VG1/vol1
mke2fs 1.41.5 (23-Apr-2009) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 262144 inodes, 1048576 blocks 52428 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=1073741824 32 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 39 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. |
#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/mapper/VG1-vol1 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/mapper/VG1-vol1 on /mnt type ext3 (rw) |
#vgdisplay
--- Volume group --- VG Name VG1 System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 2 VG Access read/write VG Status resizable MAX LV 0 Cur LV 1 Open LV 1 Max PV 0 Cur PV 1 Act PV 1 VG Size 9.31 GB PE Size 4.00 MB Total PE 2384 Alloc PE / Size 1024 / 4.00 GB Free PE / Size 1360 / 5.31 GB VG UUID Phwjpa-RBzh-WyPH-r8wM-P4OD-tQ4f-6wgmj0 |
#vgdisplay
--- Volume group --- VG Name VG1 System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 2 VG Access read/write VG Status resizable MAX LV 0 Cur LV 1 Open LV 1 Max PV 0 Cur PV 1 Act PV 1 VG Size 9.31 GB PE Size 4.00 MB Total PE 2384 Alloc PE / Size 1024 / 4.00 GB Free PE / Size 1360 / 5.31 GB VG UUID Phwjpa-RBzh-WyPH-r8wM-P4OD-tQ4f-6wgmj0 |
#pvdisplay
--- Physical volume --- PV Name /dev/md0 VG Name VG1 PV Size 9.31 GB / not usable 2.50 MB Allocatable yes PE Size (KByte) 4096 Total PE 2384 Free PE 1360 Allocated PE 1024 PV UUID E1faHP-vz6x-9vbJ-hxHU-eOnP-zRdE-lTsNNN |
#pvdisplay
--- Physical volume --- PV Name /dev/md0 VG Name VG1 PV Size 9.31 GB / not usable 2.50 MB Allocatable yes PE Size (KByte) 4096 Total PE 2384 Free PE 1360 Allocated PE 1024 PV UUID E1faHP-vz6x-9vbJ-hxHU-eOnP-zRdE-lTsNNN |
#cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md0 : active raid1 sdb1[0] sdb6[1] 9767424 blocks [2/2] [UU] unused devices: <none> |
#cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md0 : active raid1 sdb1[0] sdb6[1] 9767424 blocks [2/2] [UU] unused devices: <none> |
#ÑÑÐ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/mapper/VG1-vol1 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/mapper/VG1-vol1 on /mnt type ext3 (rw) |
#mdadm --help
mdadm is used for building, managing, and monitoring Linux md devices (aka RAID arrays) Usage: mdadm --create device options... Create a new array from unused devices. mdadm --assemble device options... Assemble a previously created array. mdadm --build device options... Create or assemble an array without metadata. mdadm --manage device options... make changes to an existing array. ... Shorthand for --manage. Any parameter that does not start with '-' is treated as a device name or, for --examine-bitmap, a file name. The first such name is often the name of an md device. Subsequent names are often names of component devices. For detailed help on the above major modes use --help after the mode e.g. mdadm --assemble --help For general help on options use mdadm --help-options |
#mdadm --help
mdadm is used for building, managing, and monitoring Linux md devices (aka RAID arrays) Usage: mdadm --create device options... Create a new array from unused devices. mdadm --assemble device options... Assemble a previously created array. mdadm --build device options... Create or assemble an array without metadata. mdadm --manage device options... make changes to an existing array. ... Shorthand for --manage. Any parameter that does not start with '-' is treated as a device name or, for --examine-bitmap, a file name. The first such name is often the name of an md device. Subsequent names are often names of component devices. For detailed help on the above major modes use --help after the mode e.g. mdadm --assemble --help For general help on options use mdadm --help-options |
#mdadm --detail /dev/md0
/dev/md0: Version : 0.90 Creation Time : Sat May 30 19:05:30 2009 Raid Level : raid1 Array Size : 9767424 (9.31 GiB 10.00 GB) Used Dev Size : 9767424 (9.31 GiB 10.00 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 0 Persistence : Superblock is persistent Update Time : Mon Jun 1 10:00:07 2009 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 4c837b29:665f67d3:3800bd94:de07ae80 Events : 0.4 Number Major Minor RaidDevice State 0 8 17 0 active sync /dev/sdb1 1 8 22 1 active sync /dev/sdb6 |
#mdadm --detail /dev/md0
/dev/md0: Version : 0.90 Creation Time : Sat May 30 19:05:30 2009 Raid Level : raid1 Array Size : 9767424 (9.31 GiB 10.00 GB) Used Dev Size : 9767424 (9.31 GiB 10.00 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 0 Persistence : Superblock is persistent Update Time : Mon Jun 1 10:00:07 2009 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 4c837b29:665f67d3:3800bd94:de07ae80 Events : 0.4 Number Major Minor RaidDevice State 0 8 17 0 active sync /dev/sdb1 1 8 22 1 active sync /dev/sdb6 |
#lvdisplay
--- Logical volume --- LV Name /dev/VG1/vol1 VG Name VG1 LV UUID 3JCL6p-HRZ6-R0g9-W94J-NUWI-VYZB-Amfoul LV Write Access read/write LV Status available # open 0 LV Size 4.00 GB Current LE 1024 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0 |
#lvdisplay
--- Logical volume --- LV Name /dev/VG1/vol1 VG Name VG1 LV UUID 3JCL6p-HRZ6-R0g9-W94J-NUWI-VYZB-Amfoul LV Write Access read/write LV Status available # open 0 LV Size 4.00 GB Current LE 1024 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0 |
#pvdisplay
--- Physical volume --- PV Name /dev/md0 VG Name VG1 PV Size 9.31 GB / not usable 2.50 MB Allocatable yes PE Size (KByte) 4096 Total PE 2384 Free PE 1360 Allocated PE 1024 PV UUID E1faHP-vz6x-9vbJ-hxHU-eOnP-zRdE-lTsNNN |
#pvdisplay
--- Physical volume --- PV Name /dev/md0 VG Name VG1 PV Size 9.31 GB / not usable 2.50 MB Allocatable yes PE Size (KByte) 4096 Total PE 2384 Free PE 1360 Allocated PE 1024 PV UUID E1faHP-vz6x-9vbJ-hxHU-eOnP-zRdE-lTsNNN |
#cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md0 : active raid1 sdb1[0] sdb6[1] 9767424 blocks [2/2] [UU] unused devices: <none> |
#cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md0 : active raid1 sdb1[0] sdb6[1] 9767424 blocks [2/2] [UU] unused devices: <none> |
#df -h /mnt
Filesystem Size Used Avail Use% Mounted on rootfs 294G 2.0G 277G 1% / |
#df -h /mnt
Filesystem Size Used Avail Use% Mounted on rootfs 294G 2.0G 277G 1% / |
#ls -l /mnt/
total 205004 -rw-r--r-- 1 root root 209715200 2009-06-01 10:47 hdddisk.img |
#ls -l /mnt/
total 205004 -rw-r--r-- 1 root root 209715200 2009-06-01 10:47 hdddisk.img |
#mdadm --manage --help
Usage: mdadm arraydevice options component devices... This usage is for managing the component devices within an array. The --manage option is not needed and is assumed if the first argument is a device name or a management option. The first device listed will be taken to be an md array device, and subsequent devices are (potential) components of that array. Options that are valid with management mode are: --add -a : hotadd subsequent devices to the array --remove -r : remove subsequent devices, which must not be active --fail -f : mark subsequent devices a faulty --set-faulty : same as --fail --run -R : start a partially built array --stop -S : deactivate array, releasing all resources --readonly -o : mark array as readonly --readwrite -w : mark array as readwrite |
#mdadm --manage --help
Usage: mdadm arraydevice options component devices... This usage is for managing the component devices within an array. The --manage option is not needed and is assumed if the first argument is a device name or a management option. The first device listed will be taken to be an md array device, and subsequent devices are (potential) components of that array. Options that are valid with management mode are: --add -a : hotadd subsequent devices to the array --remove -r : remove subsequent devices, which must not be active --fail -f : mark subsequent devices a faulty --set-faulty : same as --fail --run -R : start a partially built array --stop -S : deactivate array, releasing all resources --readonly -o : mark array as readonly --readwrite -w : mark array as readwrite |
#mdadm --manage /dev/md0 --fail /dev/sdb1
mdadm: set /dev/sdb1 faulty in /dev/md0 |
#mdadm --manage /dev/md0 --fail /dev/sdb1
mdadm: set /dev/sdb1 faulty in /dev/md0 |
#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
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) |
#mkfs.ext3 /dev/md1
mke2fs 1.41.5 (23-Apr-2009) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 612000 inodes, 2443872 blocks 122193 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=2503999488 75 block groups 32768 blocks per group, 32768 fragments per group 8160 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 30 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. |
#mkfs.ext3 /dev/md1
mke2fs 1.41.5 (23-Apr-2009) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 612000 inodes, 2443872 blocks 122193 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=2503999488 75 block groups 32768 blocks per group, 32768 fragments per group 8160 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 30 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. |
#cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md1 : active raid1 sdb2[0] 9775488 blocks [2/1] [U_] md0 : active raid1 sdb1[0] sdb6[1] 9767424 blocks [2/2] [UU] unused devices: <none> |
#cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md1 : active raid1 sdb2[0] 9775488 blocks [2/1] [U_] md0 : active raid1 sdb1[0] sdb6[1] 9767424 blocks [2/2] [UU] unused devices: <none> |
#rsync -av --exclude={\/proc,\/sys,\/dev} /* /mnt/
etc/sgml/xml-core.cat etc/sgml/docbook-xml/ etc/sgml/docbook-xml/4.0/ etc/sgml/docbook-xml/4.0/dbgenent.ent etc/sgml/docbook-xml/4.1.2/ etc/sgml/docbook-xml/4.1.2/dbgenent.mod etc/sgml/docbook-xml/4.2/ etc/sgml/docbook-xml/4.2/dbgenent.mod etc/sgml/docbook-xml/4.3/ etc/sgml/docbook-xml/4.3/dbgenent.mod ... etc/ssl/certs/DST_Root_CA_X3.pem -> /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt etc/ssl/certs/DigiCert_Assured_ID_Root_CA.pem -> /usr/share/ca-certificates/mozilla/DigiCert_Assured_ID_Root_CA.crt etc/ssl/certs/DigiCert_Global_Root_CA.pem -> /usr/share/ca-certificates/mozilla/DigiCert_Global_Root_CA.crt etc/ssl/certs/DigiCert_High_Assurance_EV_Root_CA.pem -> /usr/share/ca-certificates/mozilla/DigiCert_High_Assurance_EV_Root_CA.crt etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_1.pem -> /usr/share/ca-certificates/mozilla/Digital_Signature_Trust_Co._Global_CA_1.crt etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_2.pem -> /usr/share/ca-certificates/mozilla/Digital_Signature_Trust_Co._Global_CA_2.crt etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_3.pem -> /usr/share/ca-certificates/mozilla/Digital_Signature_Trust_Co._Global_CA_3.crt etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_4.pem -> /usr/share/ca-certificates/mozilla/Digital_Signature_Trust_Co._Global_CA_4.crt etc/ssl/certs/Entrust.net_Global_Secure_Personal_CA.pem -> /usr/share/ca-certificates/mozilla/Entrust.net_Global_Secure_Personal_CA.crt etc/ssl/certs/Entrust.net_Global_Secure_Server_CA.pem -> /usr/share/ca-certificates/mozilla/Entrust.net_Global_Secure_Server_CA.crt |
#rsync -av --exclude={\/proc,\/sys,\/dev} /* /mnt/
etc/sgml/xml-core.cat etc/sgml/docbook-xml/ etc/sgml/docbook-xml/4.0/ etc/sgml/docbook-xml/4.0/dbgenent.ent etc/sgml/docbook-xml/4.1.2/ etc/sgml/docbook-xml/4.1.2/dbgenent.mod etc/sgml/docbook-xml/4.2/ etc/sgml/docbook-xml/4.2/dbgenent.mod etc/sgml/docbook-xml/4.3/ etc/sgml/docbook-xml/4.3/dbgenent.mod ... etc/ssl/certs/DST_Root_CA_X3.pem -> /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt etc/ssl/certs/DigiCert_Assured_ID_Root_CA.pem -> /usr/share/ca-certificates/mozilla/DigiCert_Assured_ID_Root_CA.crt etc/ssl/certs/DigiCert_Global_Root_CA.pem -> /usr/share/ca-certificates/mozilla/DigiCert_Global_Root_CA.crt etc/ssl/certs/DigiCert_High_Assurance_EV_Root_CA.pem -> /usr/share/ca-certificates/mozilla/DigiCert_High_Assurance_EV_Root_CA.crt etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_1.pem -> /usr/share/ca-certificates/mozilla/Digital_Signature_Trust_Co._Global_CA_1.crt etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_2.pem -> /usr/share/ca-certificates/mozilla/Digital_Signature_Trust_Co._Global_CA_2.crt etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_3.pem -> /usr/share/ca-certificates/mozilla/Digital_Signature_Trust_Co._Global_CA_3.crt etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_4.pem -> /usr/share/ca-certificates/mozilla/Digital_Signature_Trust_Co._Global_CA_4.crt etc/ssl/certs/Entrust.net_Global_Secure_Personal_CA.pem -> /usr/share/ca-certificates/mozilla/Entrust.net_Global_Secure_Personal_CA.crt etc/ssl/certs/Entrust.net_Global_Secure_Server_CA.pem -> /usr/share/ca-certificates/mozilla/Entrust.net_Global_Secure_Server_CA.crt |
#rm /mnt/*
rm: cannot remove `/mnt/bin': Is a directory rm: cannot remove `/mnt/boot': Is a directory rm: cannot remove `/mnt/etc': Is a directory rm: cannot remove `/mnt/home': Is a directory rm: cannot remove `/mnt/lib': Is a directory rm: cannot remove `/mnt/lost+found': Is a directory rm: cannot remove `/mnt/media': Is a directory rm: cannot remove `/mnt/mnt': Is a directory rm: cannot remove `/mnt/opt': Is a directory rm: cannot remove `/mnt/root': Is a directory rm: cannot remove `/mnt/sbin': Is a directory rm: cannot remove `/mnt/selinux': Is a directory rm: cannot remove `/mnt/srv': Is a directory rm: cannot remove `/mnt/tmp': Is a directory rm: cannot remove `/mnt/usr': Is a directory rm: cannot remove `/mnt/var': Is a directory |
#rm /mnt/*
rm: cannot remove `/mnt/bin': Is a directory rm: cannot remove `/mnt/boot': Is a directory rm: cannot remove `/mnt/etc': Is a directory rm: cannot remove `/mnt/home': Is a directory rm: cannot remove `/mnt/lib': Is a directory rm: cannot remove `/mnt/lost+found': Is a directory rm: cannot remove `/mnt/media': Is a directory rm: cannot remove `/mnt/mnt': Is a directory rm: cannot remove `/mnt/opt': Is a directory rm: cannot remove `/mnt/root': Is a directory rm: cannot remove `/mnt/sbin': Is a directory rm: cannot remove `/mnt/selinux': Is a directory rm: cannot remove `/mnt/srv': Is a directory rm: cannot remove `/mnt/tmp': Is a directory rm: cannot remove `/mnt/usr': Is a directory rm: cannot remove `/mnt/var': Is a directory |
#rsync -av --exclude={\/proc,\/sys,\/dev,\/mnt} /* /mnt/
etc/sgml/xml-core.cat etc/sgml/docbook-xml/ etc/sgml/docbook-xml/4.0/ etc/sgml/docbook-xml/4.0/dbgenent.ent etc/sgml/docbook-xml/4.1.2/ etc/sgml/docbook-xml/4.1.2/dbgenent.mod etc/sgml/docbook-xml/4.2/ etc/sgml/docbook-xml/4.2/dbgenent.mod etc/sgml/docbook-xml/4.3/ etc/sgml/docbook-xml/4.3/dbgenent.mod ... etc/ssl/certs/DST_Root_CA_X3.pem -> /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt etc/ssl/certs/DigiCert_Assured_ID_Root_CA.pem -> /usr/share/ca-certificates/mozilla/DigiCert_Assured_ID_Root_CA.crt etc/ssl/certs/DigiCert_Global_Root_CA.pem -> /usr/share/ca-certificates/mozilla/DigiCert_Global_Root_CA.crt etc/ssl/certs/DigiCert_High_Assurance_EV_Root_CA.pem -> /usr/share/ca-certificates/mozilla/DigiCert_High_Assurance_EV_Root_CA.crt etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_1.pem -> /usr/share/ca-certificates/mozilla/Digital_Signature_Trust_Co._Global_CA_1.crt etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_2.pem -> /usr/share/ca-certificates/mozilla/Digital_Signature_Trust_Co._Global_CA_2.crt etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_3.pem -> /usr/share/ca-certificates/mozilla/Digital_Signature_Trust_Co._Global_CA_3.crt etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_4.pem -> /usr/share/ca-certificates/mozilla/Digital_Signature_Trust_Co._Global_CA_4.crt etc/ssl/certs/Entrust.net_Global_Secure_Personal_CA.pem -> /usr/share/ca-certificates/mozilla/Entrust.net_Global_Secure_Personal_CA.crt etc/ssl/certs/Entrust.net_Global_Secure_Server_CA.pem -> /usr/share/ca-certificates/mozilla/Entrust.net_Global_Secure_Server_CA.crt |
#rsync -av --exclude={\/proc,\/sys,\/dev,\/mnt} /* /mnt/
etc/sgml/xml-core.cat etc/sgml/docbook-xml/ etc/sgml/docbook-xml/4.0/ etc/sgml/docbook-xml/4.0/dbgenent.ent etc/sgml/docbook-xml/4.1.2/ etc/sgml/docbook-xml/4.1.2/dbgenent.mod etc/sgml/docbook-xml/4.2/ etc/sgml/docbook-xml/4.2/dbgenent.mod etc/sgml/docbook-xml/4.3/ etc/sgml/docbook-xml/4.3/dbgenent.mod ... etc/ssl/certs/DST_Root_CA_X3.pem -> /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt etc/ssl/certs/DigiCert_Assured_ID_Root_CA.pem -> /usr/share/ca-certificates/mozilla/DigiCert_Assured_ID_Root_CA.crt etc/ssl/certs/DigiCert_Global_Root_CA.pem -> /usr/share/ca-certificates/mozilla/DigiCert_Global_Root_CA.crt etc/ssl/certs/DigiCert_High_Assurance_EV_Root_CA.pem -> /usr/share/ca-certificates/mozilla/DigiCert_High_Assurance_EV_Root_CA.crt etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_1.pem -> /usr/share/ca-certificates/mozilla/Digital_Signature_Trust_Co._Global_CA_1.crt etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_2.pem -> /usr/share/ca-certificates/mozilla/Digital_Signature_Trust_Co._Global_CA_2.crt etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_3.pem -> /usr/share/ca-certificates/mozilla/Digital_Signature_Trust_Co._Global_CA_3.crt etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_4.pem -> /usr/share/ca-certificates/mozilla/Digital_Signature_Trust_Co._Global_CA_4.crt etc/ssl/certs/Entrust.net_Global_Secure_Personal_CA.pem -> /usr/share/ca-certificates/mozilla/Entrust.net_Global_Secure_Personal_CA.crt etc/ssl/certs/Entrust.net_Global_Secure_Server_CA.pem -> /usr/share/ca-certificates/mozilla/Entrust.net_Global_Secure_Server_CA.crt |
#grub-install --help
Usage: grub-install [OPTION] install_device Install GRUB on your drive. -h, --help print this message and exit -v, --version print the version information and exit --root-directory=DIR install GRUB images under the directory DIR instead of the root directory --grub-shell=FILE use FILE as the grub shell --no-floppy do not probe any floppy drive --force-lba force GRUB to use LBA mode even for a buggy BIOS --recheck probe a device map even if it already exists INSTALL_DEVICE can be a GRUB device name or a system device filename. grub-install copies GRUB images into the DIR/boot directory specfied by --root-directory, and uses the grub shell to install grub into the boot sector. Report bugs to <bug-grub@gnu.org>. |
#grub-install --help
Usage: grub-install [OPTION] install_device Install GRUB on your drive. -h, --help print this message and exit -v, --version print the version information and exit --root-directory=DIR install GRUB images under the directory DIR instead of the root directory --grub-shell=FILE use FILE as the grub shell --no-floppy do not probe any floppy drive --force-lba force GRUB to use LBA mode even for a buggy BIOS --recheck probe a device map even if it already exists INSTALL_DEVICE can be a GRUB device name or a system device filename. grub-install copies GRUB images into the DIR/boot directory specfied by --root-directory, and uses the grub shell to install grub into the boot sector. Report bugs to <bug-grub@gnu.org>. |
#grub-install --no-floppy --root-directory /mnt/boot/grub /dev/md1
Unrecognized option `--root-directory' Usage: grub-install [OPTION] install_device Install GRUB on your drive. -h, --help print this message and exit -v, --version print the version information and exit --root-directory=DIR install GRUB images under the directory DIR instead of the root directory --grub-shell=FILE use FILE as the grub shell --no-floppy do not probe any floppy drive --force-lba force GRUB to use LBA mode even for a buggy BIOS --recheck probe a device map even if it already exists INSTALL_DEVICE can be a GRUB device name or a system device filename. grub-install copies GRUB images into the DIR/boot directory specfied by --root-directory, and uses the grub shell to install grub into the boot sector. Report bugs to <bug-grub@gnu.org>. |
#grub-install --no-floppy --root-directory /mnt/boot/grub /dev/md1
Unrecognized option `--root-directory' Usage: grub-install [OPTION] install_device Install GRUB on your drive. -h, --help print this message and exit -v, --version print the version information and exit --root-directory=DIR install GRUB images under the directory DIR instead of the root directory --grub-shell=FILE use FILE as the grub shell --no-floppy do not probe any floppy drive --force-lba force GRUB to use LBA mode even for a buggy BIOS --recheck probe a device map even if it already exists INSTALL_DEVICE can be a GRUB device name or a system device filename. grub-install copies GRUB images into the DIR/boot directory specfied by --root-directory, and uses the grub shell to install grub into the boot sector. Report bugs to <bug-grub@gnu.org>. |
#grub-install --no-floppy --root-directory=/mnt/boot /dev/md1
The file /mnt/boot/boot/grub/stage2 not read correctly. |
#grub-install --no-floppy --root-directory=/mnt/boot /dev/md1
The file /mnt/boot/boot/grub/stage2 not read correctly. |
#grub-install --no-floppy --root-directory=/mnt /dev/md1
Installation finished. No error reported. This is the contents of the device map /mnt/boot/grub/device.map. Check if this is correct or not. If any of the lines is incorrect, fix it and re-run the script `grub-install'. (hd0) /dev/loop0 (hd1) /dev/sdb (hd2) /dev/sdc |
#grub-install --no-floppy --root-directory=/mnt /dev/md1
Installation finished. No error reported. This is the contents of the device map /mnt/boot/grub/device.map. Check if this is correct or not. If any of the lines is incorrect, fix it and re-run the script `grub-install'. (hd0) /dev/loop0 (hd1) /dev/sdb (hd2) /dev/sdc |
#qemu /dev/md1
Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such file or directory commandline read: qemu commandline read: /dev/md1 ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.7 |~~~~~~~~~~~~~~~~~~~~~~~~~~ (c) 2001-2008 The world wide DirectFB Open Source Community (c) 2000-2004 Convergence (integrated media) GmbH ---------------------------------------------------------------- (*) DirectFB/Core: Single Application Core. (2009-03-09 17:25) (!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed --> No such file or directory (!) DirectFB/FBDev: Error opening framebuffer device! (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable. (!) DirectFB/Core: Could not initialize 'system_core' core! --> Initialization error! Could not initialize SDL - exiting |
#qemu /dev/md1
Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such file or directory commandline read: qemu commandline read: /dev/md1 ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.7 |~~~~~~~~~~~~~~~~~~~~~~~~~~ (c) 2001-2008 The world wide DirectFB Open Source Community (c) 2000-2004 Convergence (integrated media) GmbH ---------------------------------------------------------------- (*) DirectFB/Core: Single Application Core. (2009-03-09 17:25) (!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed --> No such file or directory (!) DirectFB/FBDev: Error opening framebuffer device! (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable. (!) DirectFB/Core: Could not initialize 'system_core' core! --> Initialization error! Could not initialize SDL - exiting |
#qemu /dev/md1
Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such file or directory |
#qemu -hda /dev/md1
Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such file or directory |
#file -s /dev/sda
/dev/sda: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200; partition 1: ID=0x83, active, starthead 1, startsector 63, 625137282 sectors, code offset 0x48, OEM-ID " м", Bytes/sector 190, sectors/cluster 124, reserved sectors 191, FATs 6, root entries 185, sectors 64514 (volumes <=32 MB) , Media descriptor 0xf3, sectors/FAT 20644, head |
#grub-install --no-floppy --root-directory=/mnt /dev/md1
Installation finished. No error reported. This is the contents of the device map /mnt/boot/grub/device.map. Check if this is correct or not. If any of the lines is incorrect, fix it and re-run the script `grub-install'. (hd0) /dev/loop0 (hd1) /dev/sdb (hd2) /dev/sdc |
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md1 : active raid1 sdb2[0] 9775488 blocks [2/1] [U_] md0 : active raid1 sdb1[0] sdb6[1] 9767424 blocks [2/2] [UU] unused devices: <none>
Время первой команды журнала | 09:53:08 2009- 6- 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:26:54 2009- 6- 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 13.86 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.56 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.08 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008