/l3/users/eb/2009/linux3/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 |
|
#cd /tmp/
|
#tar xvfz e1000e-0.5.18.3.tar.gz
e1000e-0.5.18.3/ e1000e-0.5.18.3/SUMS e1000e-0.5.18.3/src/ e1000e-0.5.18.3/src/e1000_manage.h e1000e-0.5.18.3/src/e1000_defines.h e1000e-0.5.18.3/src/kcompat.h e1000e-0.5.18.3/src/e1000_ich8lan.h e1000e-0.5.18.3/src/Makefile e1000e-0.5.18.3/src/e1000_80003es2lan.c e1000e-0.5.18.3/src/e1000_phy.h ... e1000e-0.5.18.3/src/e1000_manage.c e1000e-0.5.18.3/src/e1000_ich8lan.c e1000e-0.5.18.3/src/e1000.h e1000e-0.5.18.3/src/ethtool.c e1000e-0.5.18.3/src/kcompat_ethtool.c e1000e-0.5.18.3/e1000e.spec e1000e-0.5.18.3/COPYING e1000e-0.5.18.3/README e1000e-0.5.18.3/pci.updates e1000e-0.5.18.3/e1000e.7 |
#ls -l
total 224 drwxr-xr-x 3 root root 4096 2009-03-05 20:43 e1000e-0.5.18.3 -rw-r--r-- 1 root root 206603 2009-05-29 18:20 e1000e-0.5.18.3.tar.gz drwx------ 2 user user 4096 2009-05-29 17:49 keyring-lMkfHJ drwx------ 2 user user 4096 2009-05-29 17:55 orbit-user drwx------ 2 user user 4096 2009-05-29 17:49 ssh-yvyzgW2616 |
#cd e1000e-0.5.18.3/
|
#ls -l
total 80 -rw-r--r-- 1 root root 18671 2009-03-05 20:43 COPYING -rwxr-Sr-t 1 root root 8145 2009-03-05 20:43 e1000e.7 -rw-r--r-- 1 root root 11534 2009-03-05 20:43 e1000e.spec -rw-r--r-- 1 root root 3482 2009-03-05 20:43 pci.updates -rwxr-Sr-t 1 root root 28003 2009-03-05 20:43 README drwxr-xr-x 2 root root 4096 2009-03-05 20:43 src -rw-r--r-- 1 root root 826 2009-03-05 20:43 SUMS |
#cat README
executing command: ethtool -E eth0 magic 0x109a8086 offset 0x1e value 0xdf Change made. You *MUST* reboot your machine before changes take effect! The script can be downloaded at http://e1000.sourceforge.net/files/fixeep-82573-dspd.sh Dropped Receive Packets on Half-duplex 10/100 Networks ------------------------------------------------------ If you have an Intel PCI Express adapter running at 10mbps or 100mbps, half- duplex, you may observe occasional dropped receive packets. There are no workarounds for this problem in this network configuration. The network must be updated to operate in full-duplex, and/or 1000mbps only. ... this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. The full GNU General Public License is included in this distribution in the file called "COPYING". Trademarks ========== Intel, Itanium, and Pentium are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries. * Other names and brands may be claimed as the property of others. |
#less README
|
#cd src/
|
#make
Makefile:70: *** Linux kernel source not found in any of these locations: Makefile:71: Makefile:72: *** Install the appropriate kernel development package, e.g. Makefile:73: *** kernel-devel, for building kernel modules and try again. Stop. |
#uname -a
Linux linux4 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 GNU/Linux |
#apt-cache search 2.6.29.
aufs-modules-2.6.29-2-486 - Stackable unification filesystem for Linux 2.6.29 on x86 aufs-modules-2.6.29-2-686 - Stackable unification filesystem for Linux 2.6.29 on PPro/Celeron/PII/PIII/P4 aufs-modules-2.6.29-2-686-bigmem - Stackable unification filesystem for Linux 2.6.29 on PPro/Celeron/PII/PIII/P4 aufs-modules-2.6.29-2-amd64 - Stackable unification filesystem for Linux 2.6.29 on AMD64 batman-adv-modules-2.6.29-2-486 - B.A.T.M.A.N. on Layer 2 for Linux 2.6.29 on x86 batman-adv-modules-2.6.29-2-686 - B.A.T.M.A.N. on Layer 2 for Linux 2.6.29 on PPro/Celeron/PII/PIII/P4 batman-adv-modules-2.6.29-2-686-bigmem - B.A.T.M.A.N. on Layer 2 for Linux 2.6.29 on PPro/Celeron/PII/PIII/P4 batman-adv-modules-2.6.29-2-amd64 - B.A.T.M.A.N. on Layer 2 for Linux 2.6.29 on AMD64 batmand-gateway-modules-2.6.29-2-486 - B.A.T.M.A.N. kernelland gateway for Linux 2.6.29 on x86 batmand-gateway-modules-2.6.29-2-686 - B.A.T.M.A.N. kernelland gateway for Linux 2.6.29 on PPro/Celeron/PII/PIII/P4 ... tp-smapi-modules-2.6.29-2-686 - ThinkPad hardware/firmware access for Linux 2.6.29 on PPro/Celeron/PII/PIII/P4 tp-smapi-modules-2.6.29-2-686-bigmem - ThinkPad hardware/firmware access for Linux 2.6.29 on PPro/Celeron/PII/PIII/P4 tp-smapi-modules-2.6.29-2-amd64 - ThinkPad hardware/firmware access for Linux 2.6.29 on AMD64 virtualbox-ose-guest-modules-2.6.29-2-486 - PC virtualization solution for Linux 2.6.29 on x86 virtualbox-ose-guest-modules-2.6.29-2-686 - PC virtualization solution for Linux 2.6.29 on PPro/Celeron/PII/PIII/P4 virtualbox-ose-guest-modules-2.6.29-2-686-bigmem - PC virtualization solution for Linux 2.6.29 on PPro/Celeron/PII/PIII/P4 virtualbox-ose-modules-2.6.29-2-486 - PC virtualization solution for Linux 2.6.29 on x86 virtualbox-ose-modules-2.6.29-2-686 - PC virtualization solution for Linux 2.6.29 on PPro/Celeron/PII/PIII/P4 virtualbox-ose-modules-2.6.29-2-686-bigmem - PC virtualization solution for Linux 2.6.29 on PPro/Celeron/PII/PIII/P4 virtualbox-ose-modules-2.6.29-2-amd64 - PC virtualization solution for Linux 2.6.29 on AMD64 |
#apt-cache search 2.6.29 | grep eade
linux-headers-2.6.29-2-486 - Header files for Linux 2.6.29-2-486 linux-headers-2.6.29-2-686 - Header files for Linux 2.6.29-2-686 linux-headers-2.6.29-2-686-bigmem - Header files for Linux 2.6.29-2-686-bigmem linux-headers-2.6.29-2-all - All header files for Linux 2.6.29 linux-headers-2.6.29-2-all-i386 - All header files for Linux 2.6.29 linux-headers-2.6.29-2-amd64 - Header files for Linux 2.6.29-2-amd64 linux-headers-2.6.29-2-common - Common header files for Linux 2.6.29-2 |
#apt-get install inux-headers-2.6.29-2-686 - Header files for Linux 2.6.29-2-686
Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package inux-headers-2.6.29-2-686 |
#linux-headers-2.6.29-2-686-bigmem - Header files for Linux 2.6.29-2-686-bigmem
bash: linux-headers-2.6.29-2-686-bigmem: command not found |
#linux-headers-2.6.29-2-all - All header files for Linux 2.6.29
bash: linux-headers-2.6.29-2-all: command not found |
#apt-get install gcc
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. Suggested packages: gcc-multilib manpages-dev autoconf automake1.9 libtool flex bison gdb gcc-doc The following NEW packages will be installed: gcc 0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded. Need to get 5002B of archives. After this operation, 65.5kB of additional disk space will be used. Get:1 http://127.0.0.1 sid/main gcc 4:4.3.3-8 [5002B] Fetched 5002B in 0s (60.6kB/s) Selecting previously deselected package gcc. (Reading database ... 53672 files and directories currently installed.) Unpacking gcc (from .../gcc_4%3a4.3.3-8_i386.deb) ... Processing triggers for man-db ... Setting up gcc (4:4.3.3-8) ... |
#apt-get install build-essential
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following extra packages will be installed: dpkg-dev g++ g++-4.3 libstdc++6-4.3-dev patch Suggested packages: debian-keyring debian-maintainers g++-multilib g++-4.3-multilib gcc-4.3-doc libstdc++6-4.3-dbg ... Selecting previously deselected package build-essential. Unpacking build-essential (from .../build-essential_11.4_i386.deb) ... Processing triggers for man-db ... Setting up patch (2.5.9-5) ... Setting up dpkg-dev (1.15.2) ... Setting up libstdc++6-4.3-dev (4.3.3-10) ... Setting up g++-4.3 (4.3.3-10) ... Setting up g++ (4:4.3.3-8) ... update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode. Setting up build-essential (11.4) ... |
#make install
make -C /lib/modules/2.6.29-2-686/build SUBDIRS=/tmp/e1000e-0.5.18.3/src modules make[1]: Entering directory `/usr/src/linux-headers-2.6.29-2-686' CC [M] /tmp/e1000e-0.5.18.3/src/netdev.o CC [M] /tmp/e1000e-0.5.18.3/src/ethtool.o CC [M] /tmp/e1000e-0.5.18.3/src/param.o CC [M] /tmp/e1000e-0.5.18.3/src/e1000_82571.o CC [M] /tmp/e1000e-0.5.18.3/src/e1000_ich8lan.o CC [M] /tmp/e1000e-0.5.18.3/src/e1000_80003es2lan.o CC [M] /tmp/e1000e-0.5.18.3/src/e1000_mac.o CC [M] /tmp/e1000e-0.5.18.3/src/e1000_nvm.o ... # remove all old versions of the driver find /lib/modules/2.6.29-2-686 -name e1000e.ko -exec rm -f {} \; || true find /lib/modules/2.6.29-2-686 -name e1000e.ko.gz -exec rm -f {} \; || true install -D -m 644 e1000e.ko /lib/modules/2.6.29-2-686/kernel/drivers/net/e1000e/e1000e.ko /sbin/depmod -a || true install -D -m 644 e1000e.7.gz /usr/share/man/man7/e1000e.7.gz man -c -P'cat > /dev/null' e1000e || true man: cannot write to /var/cache/man/cat7/e1000e.7.gz in catman mode e1000e. |
$su - root
Password: l3-agent is already running: pid=4117; pidfile=/root/.lilalo/l3-agent.pid |
#cd /tmp/e1000e-0.5.18.3/
|
#less README
|
#ls -l /lib/modules/2.6.29-2-686/kernel/drivers/net/e1000e*
total 148 -rw-r--r-- 1 root root 146064 2009-05-29 18:29 e1000e.ko |
#modprobe e1000e
|
#rmmod e1000e ; modprobe e1000e
|
#insmod /lib/modules/2.6.29-2-686/kernel/drivers/net/e1000e/e1000e.ko
insmod: error inserting '/lib/modules/2.6.29-2-686/kernel/drivers/net/e1000e/e1000e.ko': -1 File exists |
#ls /etc/udev/rules.d/
70-persistent-cd.rules 70-persistent-net.rules |
#ls /etc/udev/rules.d/70-persistent-net.rules
/etc/udev/rules.d/70-persistent-net.rules |
#exit
exit |
#vi /root/.bashrc
|
$su - root
Password: l3-agent is already running: pid=3795; pidfile=/root/.lilalo/l3-agent.pid |
#dmesg | sda
bash: sda: command not found |
#dmesg | grep sda
[ 4.105120] sd 0:0:0:0: [sda] 625142448 512-byte hardware sectors: (320 GB/298 GiB) [ 4.105236] sd 0:0:0:0: [sda] Write Protect is off [ 4.105292] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 4.105373] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 4.105608] sd 0:0:0:0: [sda] 625142448 512-byte hardware sectors: (320 GB/298 GiB) [ 4.105724] sd 0:0:0:0: [sda] Write Protect is off [ 4.105779] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 4.105860] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 4.105936] sda: sda1 [ 4.116702] sd 0:0:0:0: [sda] Attached SCSI disk [ 8.411452] EXT3 FS on sda1, internal journal |
#ls -l /dev/tty1
crw------- 1 root root 4, 1 2009-05-30 09:24 /dev/tty1 |
#mknod --help
Usage: mknod [OPTION]... NAME TYPE [MAJOR MINOR] Create the special file NAME of the given TYPE. Mandatory arguments to long options are mandatory for short options too. -m, --mode=MODE set file permission bits to MODE, not a=rw - umask -Z, --context=CTX set the SELinux security context of NAME to CTX --help display this help and exit --version output version information and exit Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and they must be omitted when TYPE is p. If MAJOR or MINOR begins with 0x or 0X, it is interpreted as hexadecimal; otherwise, if it begins with 0, as octal; otherwise, as decimal. TYPE may be: b create a block (buffered) special file c, u create a character (unbuffered) special file p create a FIFO NOTE: your shell may have its own version of mknod, which usually supersedes the version described here. Please refer to your shell's documentation for details about the options it supports. Report mknod bugs to bug-coreutils@gnu.org GNU coreutils home page: <http://www.gnu.org/software/coreutils/> General help using GNU software: <http://www.gnu.org/gethelp/> Report mknod translation bugs to <http://translationproject.org/team/> |
#mknod c 4 1
mknod: missing operand after `1' Try `mknod --help' for more information. |
#mknod /tmp/tty1 c 4 1
|
#echo TEST > /dev/tty1
|
#echo TEST > /tmp/tty1
|
#rm /tmp/tty1
|
#kportx --help
bash: kportx: command not found |
#apt-file search kpartx
|
#apt-file
1 .bashrc .l3rc .profile screen.png .sendxmpprc .swp .vim/ .bash_history find .lilalo/ purge .screenrc show t1.txt .viminfo .bash_profile .gqview/ list screen.dot search .ssh/ update |
#apt-file --help
apt-file version 2.2.2 (c) 2002 Sebastien J. Gross <sjg@debian.org> apt-file [options] action [pattern] Configuration options: --sources-list -s <file> sources.list location --cache -c <dir> Cache directory --architecture -a <arch> Use specific architecture --cdrom-mount -d <cdrom> Use specific cdrom mountpoint --non-interactive -N Skip schemes requiring user input (useful in cron jobs) ... --regexp -x pattern is a regular expression --verbose -v run in verbose mode --dummy -y run in dummy mode (no action) --help -h Show this help. --version -V Show version number Action: update Fetch Contents files from apt-sources. search|find <pattern> Search files in packages list|show <pattern> List files in packages purge Remove cache files |
#apt-file update
Downloading complete file http://127.0.0.1:9999/debian/dists/sid/Contents-i386.gz |
#apt-file
1 .bashrc .l3rc .profile screen.png .sendxmpprc .swp .vim/ .bash_history find .lilalo/ purge .screenrc show t1.txt .viminfo .bash_profile .gqview/ list screen.dot search .ssh/ update |
#apt-get
autoclean build-dep clean dselect-upgrade purge source upgrade autoremove check dist-upgrade install remove update |
#. /etc/bash_completion
|
#. /etc/bash_completion
|
#exit
exit |
#apt-get
autoclean build-dep clean dselect-upgrade purge source upgrade autoremove check dist-upgrade install remove update |
#apt-file search kpartx
kpartx: /etc/udev/rules.d/z60_kpartx.rules kpartx: /lib/udev/kpartx_id kpartx: /sbin/kpartx kpartx: /usr/share/doc/kpartx/NEWS.Debian.gz kpartx: /usr/share/doc/kpartx/changelog.Debian.gz kpartx: /usr/share/doc/kpartx/changelog.gz kpartx: /usr/share/doc/kpartx/copyright kpartx: /usr/share/man/man8/kpartx.8.gz |
#apt-get
autoclean build-dep clean dselect-upgrade purge source upgrade autoremove check dist-upgrade install remove update |
#apt-get install kpartx
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following extra packages will be installed: dmsetup The following NEW packages will be installed: dmsetup kpartx ... Get:2 http://127.0.0.1 sid/main kpartx 0.4.8-15 [25.3kB] Fetched 67.1kB in 0s (355kB/s) Selecting previously deselected package dmsetup. (Reading database ... 54588 files and directories currently installed.) Unpacking dmsetup (from .../dmsetup_2%3a1.02.30-3_i386.deb) ... Selecting previously deselected package kpartx. Unpacking kpartx (from .../kpartx_0.4.8-15_i386.deb) ... Processing triggers for man-db ... Setting up dmsetup (2:1.02.30-3) ... Setting up kpartx (0.4.8-15) ... |
#cat /etc/fstab
# UNCONFIGURED FSTAB FOR BASE SYSTEM |
#ls -l /dev/sb*
ls: cannot access /dev/sb*: No such file or directory |
#ls -l /dev/sd*
brw-rw---- 1 root disk 8, 0 2009-05-30 09:24 /dev/sda brw-rw---- 1 root disk 8, 1 2009-05-30 09:24 /dev/sda1 brw-rw---- 1 root disk 8, 16 2009-05-30 09:24 /dev/sdb brw-rw---- 1 root disk 8, 17 2009-05-30 09:24 /dev/sdb1 |
#df -h
Filesystem Size Used Avail Use% Mounted on tmpfs 1006M 0 1006M 0% /lib/init/rw udev 10M 108K 9.9M 2% /dev tmpfs 1006M 4.0K 1006M 1% /dev/shm rootfs 294G 1.7G 277G 1% / |
#fdisk -l /dev/sda
Disk /dev/sda: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x12c36e6e Device Boot Start End Blocks Id System /dev/sda1 * 1 38913 312568641 83 Linux |
#fdisk -l /dev/sdb
Disk /dev/sdb: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xce5cf3c1 Device Boot Start End Blocks Id System /dev/sdb1 * 1 38913 312568641 7 HPFS/NTFS |
#mount /dev/sdb1 /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/sdb1 on /mnt type ntfs (rw) |
#ls /mnt
admin's_folder boot.ini Documents and Settings IO.SYS NTDETECT.COM Program Files System Volume Information Anketa CONFIG.SYS IDE MSDOS.SYS ntldr RECYCLER WINDOWS AUTOEXEC.BAT CUICA.tmp Inetpub MSOCache pagefile.sys RHDSetup.log |
#ls /mnt/Documents\ and\ Settings/
admin All Users Default User LocalService NetworkService |
#ls /mnt/Documents\ and\ Settings/All\ Users/
Application Data Desktop Documents DRM Favorites Start Menu Templates |
#touch /mnt/test.txt
touch: cannot touch `/mnt/test.txt': Read-only file system |
#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) |
#ls -l /
total 72 drwxr-xr-x 2 root root 4096 2009-05-25 03:02 bin drwxr-xr-x 3 root root 4096 2009-05-25 03:04 boot drwxr-xr-x 14 root root 3560 2009-05-30 09:24 dev drwxr-xr-x 86 root root 4096 2009-05-30 10:14 etc drwxr-xr-x 3 root root 4096 2009-05-25 01:07 home lrwxrwxrwx 1 root root 28 2002-01-01 00:39 initrd.img -> boot/initrd.img-2.6.29-2-686 drwxr-xr-x 13 root root 12288 2009-05-29 18:24 lib drwx------ 2 root root 4096 2009-05-24 21:51 lost+found drwxr-xr-x 2 root root 4096 2009-05-24 13:15 media ... dr-xr-xr-x 114 root root 0 2009-05-30 09:24 proc drwxr-xr-x 6 root root 4096 2009-05-30 10:04 root drwxr-xr-x 2 root root 4096 2009-05-30 10:06 sbin drwxr-xr-x 2 root root 4096 2009-02-21 16:55 selinux drwxr-xr-x 2 root root 4096 2009-05-24 13:15 srv drwxr-xr-x 12 root root 0 2009-05-30 09:24 sys drwxrwxrwt 7 root root 4096 2009-05-30 10:04 tmp drwxr-xr-x 11 root root 4096 2009-05-24 13:22 usr drwxr-xr-x 13 root root 4096 2009-05-24 13:15 var lrwxrwxrwx 1 root root 25 2002-01-01 00:39 vmlinuz -> boot/vmlinuz-2.6.29-2-686 |
#file -s /dev/sdb1
/dev/sdb1: x86 boot sector, code offset 0x52, OEM-ID "NTFS ", sectors/cluster 8, reserved sectors 0, Media descriptor 0xf8, heads 255, hidden sectors 63, dos < 4.0 BootSector (0x80) |
#file -s /dev/sda1
/dev/sda1: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, 1st sector stage2 0xa1c803f, code offset 0x48 |
#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 |
#file -sv /dev/sda1
file-5.03 magic file from /etc/magic:/usr/share/misc/magic |
#file -s /dev/sda1
/dev/sda1: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, 1st sector stage2 0xa1c803f, code offset 0x48 |
#cat /proc/filesystems
nodev sysfs nodev rootfs nodev bdev nodev proc nodev cgroup nodev cpuset nodev debugfs nodev securityfs nodev sockfs nodev pipefs nodev anon_inodefs nodev tmpfs nodev inotifyfs nodev devpts nodev ramfs nodev hugetlbfs nodev mqueue nodev usbfs ext3 ntfs |
#ls -l /lib/modules/2.6.29-2-686/
build/ modules.alias modules.dep modules.symbols source/ kernel/ modules.alias.bin modules.dep.bin modules.symbols.bin |
#ls -l /lib/modules/2.6.29-2-686/kernel/
arch/ crypto/ drivers/ fs/ lib/ net/ sound/ |
#ls -l /lib/modules/2.6.29-2-686/kernel/fs/
9p/ binfmt_misc.ko exportfs/ hfsplus/ minix/ qnx4/ udf/ adfs/ btrfs/ ext2/ hpfs/ ncpfs/ quota_tree.ko ufs/ affs/ cifs/ ext3/ isofs/ nfs/ quota_v1.ko xfs/ afs/ coda/ ext4/ jbd/ nfs_common/ quota_v2.ko autofs/ configfs/ fat/ jbd2/ nfsd/ reiserfs/ autofs4/ cramfs/ freevxfs/ jffs2/ nls/ romfs/ befs/ dlm/ fuse/ jfs/ ntfs/ squashfs/ bfs/ ecryptfs/ gfs2/ lockd/ ocfs2/ sysv/ binfmt_aout.ko efs/ hfs/ mbcache.ko omfs/ ubifs/ |
#modprobe /lib/modules/2.6.29-2-686/kernel/fs/fuse/fuse.ko
FATAL: Module /lib/modules/2.6.29_2_686/kernel/fs/fuse/fuse.ko not found. |
#mount -t ntfs /dev/sdb1 /mnt
|
#umount /mnt
|
#man mount
|
#Pattern not found (press RETURN)
|
#umount /mnt
|
#apt-cache search ntfs
autopsy - graphical interface to SleuthKit disk-manager - simple graphical filesystem configurator libntfs-3g-dev - ntfs-3g filesystem in userspace (FUSE) library headers libntfs-3g54 - ntfs-3g filesystem in userspace (FUSE) library libntfs-dev - library that provides common NTFS access functions (development files) libntfs-gnomevfs - NTFS GNOME virtual filesystem module libntfs10 - library that provides common NTFS access functions libparted1.8-10 - The GNU Parted disk partitioning shared library libparted1.8-dbg - The GNU Parted disk partitioning library debug development files libparted1.8-dev - The GNU Parted disk partitioning library development files ... ntfs-3g - read-write NTFS driver for FUSE ntfsdoc - documentation about NTFS partitions format ntfsprogs - tools for doing neat things in NTFS partitions from Linux parted - The GNU Parted disk partition resizing program partimage - backup partitions into a compressed image file partimage-doc - Partition Image User Documentation partitionmanager - A partition management utility scalpel - A Frugal, High Performance File Carver scrounge-ntfs - Data recovery program for NTFS filesystems testdisk - Partition scanner and disk recovery tool |
#apt-get install ntfs-3g
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libntfs-3g54 The following NEW packages will be installed: libntfs-3g54 ntfs-3g ... (Reading database ... 54606 files and directories currently installed.) Unpacking libntfs-3g54 (from .../libntfs-3g54_1%3a2009.4.4-1_i386.deb) ... Selecting previously deselected package ntfs-3g. Unpacking ntfs-3g (from .../ntfs-3g_1%3a2009.4.4-1_i386.deb) ... Processing triggers for man-db ... Processing triggers for hal ... Regenerating hal fdi cache ... Restarting Hardware abstraction layer: hald. Setting up libntfs-3g54 (1:2009.4.4-1) ... Setting up ntfs-3g (1:2009.4.4-1) ... |
#ls /mnt
admin's_folder boot.ini Documents and Settings IO.SYS NTDETECT.COM Program Files System Volume Information Anketa CONFIG.SYS IDE MSDOS.SYS ntldr RECYCLER WINDOWS AUTOEXEC.BAT CUICA.tmp Inetpub MSOCache pagefile.sys RHDSetup.log |
#umount /mnt
|
#mount -t ntfs-3g -o iocharset=utf8,rw /dev/sdb1 /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/sdb1 on /mnt type fuseblk (rw,allow_other,blksize=4096) |
#cat /proc/filesystems
nodev sysfs nodev rootfs nodev bdev nodev proc nodev cgroup nodev cpuset nodev debugfs nodev securityfs nodev sockfs nodev pipefs ... nodev devpts nodev ramfs nodev hugetlbfs nodev mqueue nodev usbfs ext3 ntfs nodev fuse fuseblk nodev fusectl |
#touch /mnt/тест
|
#дÑÑlsmod | head
Module Size Used by fuse 48352 2 nls_utf8 1472 0 ntfs 177164 0 nls_base 6508 2 nls_utf8,ntfs ipv6 232468 12 snd_intel8x0 25900 0 snd_ac97_codec 91260 1 snd_intel8x0 snd_pcsp 8476 0 ac97_bus 1444 1 snd_ac97_codec |
#ps aux | grep ntfs
root 8118 0.0 0.0 4628 980 ? Ss 10:36 0:00 /sbin/mount.ntfs-3g /dev/sdb1 /mnt -o rw,iocharset=utf8 root 8331 0.0 0.0 3952 744 pts/9 S+ 10:39 0:00 grep ntfs |
#umount /mnt
|
#apt-cache search fuse | grep mai
gmailfs - Use your GMail account as a filesystem |
# UNCONFIGURED FSTAB FOR BASE SYSTEM
nodev sysfs nodev rootfs nodev bdev nodev proc nodev cgroup nodev cpuset nodev debugfs nodev securityfs nodev sockfs nodev pipefs nodev anon_inodefs nodev tmpfs nodev inotifyfs nodev devpts nodev ramfs nodev hugetlbfs nodev mqueue nodev usbfs ext3 ntfs nodev fuse fuseblk nodev fusectl
executing command: ethtool -E eth0 magic 0x109a8086 offset 0x1e value 0xdf Change made. You *MUST* reboot your machine before changes take effect! The script can be downloaded at http://e1000.sourceforge.net/files/fixeep-82573-dspd.sh Dropped Receive Packets on Half-duplex 10/100 Networks ------------------------------------------------------ If you have an Intel PCI Express adapter running at 10mbps or 100mbps, half- duplex, you may observe occasional dropped receive packets. There are no workarounds for this problem in this network configuration. The network must be updated to operate in full-duplex, and/or 1000mbps only. Driver Compilation ------------------ When trying to compile the driver by running make install, the following error may occur: "Linux kernel source not configured - missing version.h" To solve this issue, create the version.h file by going to the Linux source tree and entering: # make include/linux/version.h. Performance Degradation with Jumbo Frames ----------------------------------------- Degradation in throughput performance may be observed in some Jumbo frames environments. If this is observed, increasing the application's socket buffer size and/or increasing the /proc/sys/net/ipv4/tcp_*mem entry values may help. See the specific application manual and /usr/src/linux*/Documentation/networking/ip-sysctl.txt for more details. Jumbo Frames on Foundry BigIron 8000 switch ------------------------------------------- There is a known issue using Jumbo frames when connected to a Foundry BigIron 8000 switch. This is a 3rd party limitation. If you experience loss of packets, lower the MTU size. Allocating Rx Buffers when Using Jumbo Frames --------------------------------------------- Allocating Rx buffers when using Jumbo Frames on 2.6.x kernels may fail if the available memory is heavily fragmented. This issue may be seen with PCI-X adapters or with packet split disabled. This can be reduced or eliminated by changing the amount of available memory for receive buffer allocation, by increasing /proc/sys/vm/min_free_kbytes. Multiple Interfaces on Same Ethernet Broadcast Network ------------------------------------------------------ Due to the default ARP behavior on Linux, it is not possible to have one system on two IP networks in the same Ethernet broadcast domain (non-partitioned switch) behave as expected. All Ethernet interfaces will respond to IP traffic for any IP address assigned to the system. This results in unbalanced receive traffic. If you have multiple interfaces in a server, either turn on ARP filtering by entering: echo 1 > /proc/sys/net/ipv4/conf/all/arp_filter (this only works if your kernel's version is higher than 2.4.5), NOTE: This setting is not saved across reboots. The configuration change can be made permanent by adding the line: net.ipv4.conf.all.arp_filter = 1 to the file /etc/sysctl.conf or, install the interfaces in separate broadcast domains (either in different switches or in a switch partitioned to VLANs). Disable rx flow control with ethtool ------------------------------------ In order to disable receive flow control using ethtool, you must turn off auto-negotiation on the same command line. For example: ethtool -A eth? autoneg off rx off Unplugging network cable while ethtool -p is running ---------------------------------------------------- In kernel versions 2.5.50 and later (including 2.6 kernel), unplugging the network cable while ethtool -p is running will cause the system to become unresponsive to keyboard commands, except for control-alt-delete. Restarting the system appears to be the only remedy. MSI-X Issues with Kernels between 2.6.19 - 2.6.21 (inclusive) ------------------------------------------------------------- Kernel panics and instability may be observed on any MSI-X hardware if you use irqbalance with kernels between 2.6.19 and 2.6.21. If such problems are encountered, you may disable the irqbalance daemon or upgrade to a newer kernel. Rx Page Allocation Errors ------------------------- Page allocation failure. order:0 errors may occur under stress with kernels 2.6.25 and above. This is cause by the way the Linux kernel reports this stressed condition. Support ======= For general information, go to the Intel support website at: http://support.intel.com or the Intel Wired Networking project hosted by Sourceforge at: http://sourceforge.net/projects/e1000 If an issue is identified with the released source code on the supported kernel with a supported adapter, email the specific information related to the issue to e1000-devel@lists.sf.net License ======= Intel Gigabit Linux driver. Copyright(c) 1999 - 2008 Intel Corporation. This program is free software; you can redistribute it and/or modify it under the terms and conditions of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. The full GNU General Public License is included in this distribution in the file called "COPYING". Trademarks ========== Intel, Itanium, and Pentium are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries. * Other names and brands may be claimed as the property of others.
Время первой команды журнала | 18:18:08 2009- 5-29 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:39:48 2009- 5-30 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 7.92 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.96 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.39 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.21 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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