/l3/users/08-04-2013/NT-Ladm/debian7.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
#ssh root@192.168.13.253
root@192.168.13.253's password: Permission denied, please try again. root@192.168.13.253's password: Linux fobos 3.1.0-rc9+ #1 SMP Mon Jun 18 15:44:37 EEST 2012 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Hllo my friend!!!! ... FreeBSD.docx linux.docx LPI_102-111.pdf LPI_201-213.pdf fobos:~# mount -o loop /home/iso/CentOS-6.0-i386-LiveDVD.iso /mnt mount: could not find any free loop device fobos:~# umount /mnt fobos:~# exit logout Connection to 192.168.13.253 closed. |
#dd if=/dev/zero of=file.img bs=1024 count=10240
10240+0 записей считано 10240+0 записей написано скопировано 10485760 байт (10 MB), 0,0286337 c, 366 MB/c |
#exit
no exit |
#mkfs.ntfs file.img
file.img is not a block device. Refusing to make a filesystem here! |
#mkfs.ext4 file.img
mke2fs 1.41.12 (17-May-2010) file.img is not a block special device. Proceed anyway? (y,n) y Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) Stride=0 blocks, Stripe width=0 blocks 24856 inodes, 99324 blocks 4966 blocks (5.00%) reserved for the super user ... 13 block groups 8192 blocks per group, 8192 fragments per group 1912 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729 Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 36 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. |
#mount -o loop file.img /mnt
|
#mount
/dev/xvda1 on / type ext3 (rw,errors=remount-ro) 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) 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) /root/file.img on /mnt type ext4 (rw) |
#cp
cp: пропущен операнд, задающий файл Попробуйте `cp --help' для получения более подробного описания. |
#cp file.img /mnt
cp: запись «/mnt/file.img»: На устройстве кончилось место |
#df -h
Файловая система Разм Исп Дост Исп% смонтирована на /dev/xvda1 15G 1,2G 13G 9% / tmpfs 251M 0 251M 0% /lib/init/rw udev 247M 112K 246M 1% /dev tmpfs 251M 0 251M 0% /dev/shm /dev/loop0 94M 94M 0 100% /mnt |
#rm /mnt/file.img
|
#cp -p /etc/ /mnt
cp: пропускается каталог «/etc/» |
#cp -rp /etc/ /mnt
|
#ls
123 fail6 file file2 folder4 may pass_invert vilen aprel fail7 file123 file.img link new_fail passwd chapaev fail8 file124 folder3 mart new_link script |
#mount
/dev/xvda1 on / type ext3 (rw,errors=remount-ro) 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) 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) /root/file.img on /mnt type ext4 (rw) |
#mount /dev/xvdb1 /mnt
|
#mount
/dev/xvda1 on / type ext3 (rw,errors=remount-ro) 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) 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) /root/file.img on /mnt type ext4 (rw) fusectl on /sys/fs/fuse/connections type fusectl (rw) /dev/xvdb1 on /mnt type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096) |
#ls /mnt
|
#umount /mnt
|
#ls /mnt
etc lost+found |
#umount /mnt
|
#mount
/dev/xvda1 on / type ext3 (rw,errors=remount-ro) 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) 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) fusectl on /sys/fs/fuse/connections type fusectl (rw) |
#umount -a
umount: /dev: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) umount: /: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) |
#mount
/dev/xvda1 on / type ext3 (rw,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type tmpfs (rw,mode=0755) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) |
#mount -a
|
#mount
/dev/xvda1 on / type ext3 (rw,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type tmpfs (rw,mode=0755) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) |
#vim /etc/fstab
--- /tmp/l3-saved-1420.23890.13798 2013-04-11 13:41:02.000000000 +0300 +++ /etc/fstab 2013-04-11 13:44:07.000000000 +0300 @@ -11,3 +11,4 @@ # swap was on /dev/sda5 during installation UUID=2ebf7767-94d0-47d1-aed5-eb1c21e893ab none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 +/dev/xvdb1 /mnt ntfs defaults 0 0 |
#mount -a
|
#mount
/dev/xvda1 on / type ext3 (rw,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type tmpfs (rw,mode=0755) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) /dev/xvdb1 on /mnt type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096) |
#vim /etc/fstab
--- /tmp/l3-saved-1420.14691.16868 2013-04-11 13:44:26.000000000 +0300 +++ /etc/fstab 2013-04-11 13:46:34.000000000 +0300 @@ -6,8 +6,7 @@ # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 -# / was on /dev/sda1 during installation -UUID=a90cb5a5-0996-4736-82b2-56502a111d61 / ext3 errors=remount-ro 0 1 +/dev/xvda1 / ext3 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation UUID=2ebf7767-94d0-47d1-aed5-eb1c21e893ab none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 |
#apt-get install dos
dos2unix dose-builddebcheck dosfstools-dbg dosage dose-distcheck dossizola dosbox dose-extra dossizola-data doscan dosemu doschk dosfstools |
#apt-get install dosfstools ntfsprogs ^C
|
#^C
|
#ps
PID TTY TIME CMD 1420 pts/5 00:00:00 l3script 2162 pts/5 00:00:00 ps |
#ps a
PID TTY STAT TIME COMMAND 1197 tty1 Ss+ 0:00 /sbin/getty 38400 tty1 1198 tty2 Ss+ 0:00 /sbin/getty 38400 tty2 1199 tty3 Ss+ 0:00 /sbin/getty 38400 tty3 1200 tty4 Ss+ 0:00 /sbin/getty 38400 tty4 1201 tty5 Ss+ 0:00 /sbin/getty 38400 tty5 1202 tty6 Ss+ 0:00 /sbin/getty 38400 tty6 1207 pts/0 Ss 0:00 -bash 1233 pts/1 Ss 0:00 -bash 1295 pts/3 Ss 0:00 -bash ... 1471 pts/7 Ss 0:00 -bash 1502 pts/7 S+ 0:00 script -f -c l3script -q /root/.lilalo//4514103961934 1543 pts/7 S+ 0:00 script -f -c l3script -q /root/.lilalo//4514103961934 1544 pts/8 Ss 0:00 l3script 1648 pts/8 S+ 0:00 screen -x 1744 pts/6 Ss 0:00 -bash 1814 pts/6 S+ 0:00 screen -x 2095 pts/9 Ss 0:00 -bash 2112 pts/9 S+ 0:00 screen -x 2170 pts/5 R+ 0:00 ps a |