Advertisement
Guest User

Untitled

a guest
May 26th, 2019
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.16 KB | None | 0 0
  1. Zad C.1
  2. # fdisk -l
  3.  
  4. Disk /dev/sda: 199.9 GB, 199911145472 bytes
  5. 255 heads, 63 sectors/track, 24304 cylinders
  6. Units = cylinders of 16065 * 512 = 8225280 bytes
  7. # mkdir dysk_a
  8. # mount /dev/sda ./dysk_a/
  9. # touch ./dysk_a/plik.txt
  10. # umount dysk_a/
  11. # ls -l ./dysk_a/
  12. total 0
  13. # mount /dev/sda ./dysk_a/
  14. # ls -l ./dysk_a/
  15. total 652080
  16. -rw-r--r-- 1 root root 28 2019-05-23 00:20 fsckme.err
  17. drwx------ 2 root root 16384 2019-05-22 16:18 lost+found
  18. -rwx------ 1 root root 130174976 2019-05-22 16:18 lupu-500.sfs
  19. -rw-r--r-- 1 root root 536870912 2019-05-22 16:18 lupusave-adasd.2fs
  20. -rw-r--r-- 1 root root 0 2019-05-22 16:26 plik.txt
  21.  
  22. Zad C.3
  23. # dd if=/dev/sda of=mojdysk.img bs=1K count=300
  24. 300+0 records in
  25. 300+0 records out
  26. 307200 bytes (307 kB) copied, 0.00261476 s, 117 MB/s
  27. # mkfs -t ext2 mojdysk.img
  28. mke2fs 1.41.11 (14-Mar-2010)
  29. mojdysk.img is not a block special device.
  30. Proceed anyway? (y,n) y
  31. Filesystem label=
  32. OS type: Linux
  33. Block size=1024 (log=0)
  34. Fragment size=1024 (log=0)
  35. Stride=0 blocks, Stripe width=0 blocks
  36. 40 inodes, 300 blocks
  37. 15 blocks (5.00%) reserved for the super user
  38. First data block=1
  39. Maximum filesystem blocks=524288
  40. 1 block group
  41. 8192 blocks per group, 8192 fragments per group
  42. 40 inodes per group
  43.  
  44. Writing inode tables: done
  45. Writing superblocks and filesystem accounting information: done
  46.  
  47. This filesystem will be automatically checked every 31 mounts or
  48. 180 days, whichever comes first. Use tune2fs -c or -i to override.
  49. # mkdir mojdysk
  50. # mount -o loop,rw mojdysk.img mojdysk
  51. # ls -l mojdysk
  52. total 12
  53. drwx------ 2 root root 12288 2019-05-22 16:32 lost+found
  54. # umount mojdysk
  55. # ls -l mojdysk
  56. total 0
  57.  
  58. Zad C4
  59. # fsck.ext2 /dev/sda
  60. e2fsck 1.41.11 (14-Mar-2010)
  61. /dev/sda is mounted.
  62.  
  63. WARNING!!! The filesystem is mounted. If you continue you ***WILL***
  64. cause ***SEVERE*** filesystem damage.
  65.  
  66. Do you really want to continue (y/n)? yes
  67.  
  68. Superblock last mount time is in the future.
  69. (by less than a day, probably due to the hardware clock being incorrectly set) Fix<y>? yes
  70.  
  71. /dev/sda was not cleanly unmounted, check forced.
  72. Pass 1: Checking inodes, blocks, and sizes
  73.  
  74. Pass 2: Checking directory structure
  75. Pass 3: Checking directory connectivity
  76. Pass 4: Checking reference counts
  77. Pass 5: Checking group summary information
  78.  
  79. /dev/sda: ***** FILE SYSTEM WAS MODIFIED *****
  80. /dev/sda: 15/12206080 files (6.7% non-contiguous), 944257/48806432 blocks
  81.  
  82. Zad C5
  83. mount -t cifs //files.wmi.amu.edu.pl/students ./dysk \
  84. -o rw,username=s426228,domain=LABS,iocharset=iso8859-2,prefixpath=s426228/kat
  85. Password:
  86. mount error 110 = Connection timed out
  87. Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
  88.  
  89. Zad C12
  90. #Special base config file used in Puppy Linux.
  91.  
  92. # **********************************************************************
  93. # Module section -- this section is used to specify
  94. # which dynamically loadable modules to load.
  95. # **********************************************************************
  96. #
  97. Section "Module"
  98.  
  99. # This loads the DBE extension module.
  100.  
  101. Load "dbe" # Double buffer extension
  102.  
  103. # This loads the miscellaneous extensions module, and disables
  104. # initialisation of the XFree86-DGA extension within that module.
  105. SubSection "extmod"
  106. Option "omit xfree86-dga" # don't initialise the DGA extension
  107. EndSubSection
  108.  
  109. # This loads the font modules
  110. # Load "type1"
  111. Load "freetype"
  112.  
  113. # This loads xtrap extension, used by xrandr
  114. # Load "xtrap"
  115.  
  116. # This loads the GLX module (if present). xorg 7.4/5 need explicit disable to disable...
  117. Load "glx" #LOADGLX
  118.  
  119. # This loads dri module (if present). 7.4 loads it by default, have to disable...
  120. # Load "dri" #LOADDRI
  121. Load "dri"
  122.  
  123. EndSection
  124.  
  125. # **********************************************************************
  126. # Files section. This allows default font paths to be set
  127. # **********************************************************************
  128.  
  129. Section "Files"
  130.  
  131. # Multiple FontPath entries are allowed (which are concatenated together),
  132. # as well as specifying multiple comma-separated entries in one FontPath
  133. # command (or a combination of both methods)
  134.  
  135. FontPath "/usr/share/X11/fonts/misc/"
  136. FontPath "/usr/share/X11/fonts/Type1/"
  137. FontPath "/usr/share/X11/fonts/TTF/"
  138.  
  139. EndSection
  140.  
  141. # **********************************************************************
  142. # Server flags section.
  143. # **********************************************************************
  144.  
  145. Section "ServerFlags"
  146.  
  147. # Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
  148. # (where n is 1 through 12). This allows clients to receive these key
  149. # events.
  150.  
  151. # Option "DontVTSwitch"
  152.  
  153. # Enables mode switching with xrandr
  154. # There is a report that this can cause Xorg not to work on some
  155. # video hardware, so default is commented-out...
  156. # but i want to use it in xorgwizard so leave on...
  157.  
  158. Option "RandR" "on"
  159.  
  160. # With this, Xorg won't talk to HAL to add evdev devices and you'll be back
  161. # with the old Xorg behavior (pre-7.4)...
  162.  
  163. Option "AutoAddDevices" "false"
  164.  
  165. # For no-Hal, kirk also suggests this...
  166.  
  167. # Option "AllowMouseOpenFail" "true"
  168.  
  169. # Xorg 7.4, Ubuntu Jaunty, CTRL-ALT-BACKSPACE is disabled by default...
  170.  
  171. Option "DontZap" "false"
  172.  
  173. EndSection
  174.  
  175. #everything past here is auto-generated by Puppy's Xorg Wizard...
  176.  
  177.  
  178. Section "ServerLayout"
  179. Identifier "X.org Configured"
  180. Screen 0 "Screen0" 0 0
  181. InputDevice "Mouse0" "CorePointer"
  182. InputDevice "Keyboard0" "CoreKeyboard"
  183. EndSection
  184.  
  185. Section "InputDevice"
  186. Identifier "Keyboard0"
  187. Driver "kbd"
  188. Option "XkbRules" "xorg"
  189. Option "XkbModel" "pc102"
  190. Option "XkbLayout" "us" #xkeymap0
  191. EndSection
  192.  
  193. Section "InputDevice"
  194. Identifier "Mouse0"
  195. Driver "mouse"
  196. Option "Protocol" "IMPS/2" #mouse0protocol
  197. Option "Device" "/dev/mouse"
  198. #Option "Emulate3Buttons"
  199. #Option "Emulate3Timeout" "50"
  200. Option "ZAxisMapping" "4 5" #scrollwheel
  201. EndSection
  202.  
  203. Section "Monitor"
  204. Identifier "Monitor0"
  205. VendorName "Monitor Vendor"
  206. ModelName "Monitor Model"
  207. HorizSync 31.5-90
  208. VertRefresh 60
  209. #UseModes "Modes0" #monitor0usemodes
  210. Option "PreferredMode" "1360x768"
  211. EndSection
  212.  
  213. Section "Modes"
  214. Identifier "Modes0"
  215. #modes0modeline0
  216. EndSection
  217.  
  218. Section "Device"
  219. ### Available Driver options are:-
  220. ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
  221. ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
  222. ### [arg]: arg optional
  223. #Option "ShadowFB" # [<bool>]
  224. #Option "DefaultRefresh" # [<bool>]
  225. #Option "ModeSetClearScreen" # [<bool>]
  226. Identifier "Card0"
  227. Driver "vesa" #card0driver
  228. VendorName "InnoTek Systemberatung GmbH"
  229. BoardName "VirtualBox Graphics Adapter"
  230. BusID "PCI:0:2:0"
  231. EndSection
  232.  
  233. Section "Screen"
  234. Identifier "Screen0"
  235. Device "Card0"
  236. Monitor "Monitor0"
  237. DefaultDepth 16
  238. #Option "metamodes" "1360x768_60 +0+0" #METAMODES_0
  239. Subsection "Display"
  240. Depth 16
  241. Modes "1360x768"
  242. EndSubsection
  243. EndSection
  244.  
  245. #PuppyHardwareProfile=VirtualBox_VESA_BIOS
  246.  
  247. Zad C13
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement