Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Zad C.1
- # fdisk -l
- Disk /dev/sda: 199.9 GB, 199911145472 bytes
- 255 heads, 63 sectors/track, 24304 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- # mkdir dysk_a
- # mount /dev/sda ./dysk_a/
- # touch ./dysk_a/plik.txt
- # umount dysk_a/
- # ls -l ./dysk_a/
- total 0
- # mount /dev/sda ./dysk_a/
- # ls -l ./dysk_a/
- total 652080
- -rw-r--r-- 1 root root 28 2019-05-23 00:20 fsckme.err
- drwx------ 2 root root 16384 2019-05-22 16:18 lost+found
- -rwx------ 1 root root 130174976 2019-05-22 16:18 lupu-500.sfs
- -rw-r--r-- 1 root root 536870912 2019-05-22 16:18 lupusave-adasd.2fs
- -rw-r--r-- 1 root root 0 2019-05-22 16:26 plik.txt
- Zad C.3
- # dd if=/dev/sda of=mojdysk.img bs=1K count=300
- 300+0 records in
- 300+0 records out
- 307200 bytes (307 kB) copied, 0.00261476 s, 117 MB/s
- # mkfs -t ext2 mojdysk.img
- mke2fs 1.41.11 (14-Mar-2010)
- mojdysk.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
- 40 inodes, 300 blocks
- 15 blocks (5.00%) reserved for the super user
- First data block=1
- Maximum filesystem blocks=524288
- 1 block group
- 8192 blocks per group, 8192 fragments per group
- 40 inodes per group
- Writing inode tables: done
- Writing superblocks and filesystem accounting information: done
- This filesystem will be automatically checked every 31 mounts or
- 180 days, whichever comes first. Use tune2fs -c or -i to override.
- # mkdir mojdysk
- # mount -o loop,rw mojdysk.img mojdysk
- # ls -l mojdysk
- total 12
- drwx------ 2 root root 12288 2019-05-22 16:32 lost+found
- # umount mojdysk
- # ls -l mojdysk
- total 0
- Zad C4
- # fsck.ext2 /dev/sda
- e2fsck 1.41.11 (14-Mar-2010)
- /dev/sda is mounted.
- WARNING!!! The filesystem is mounted. If you continue you ***WILL***
- cause ***SEVERE*** filesystem damage.
- Do you really want to continue (y/n)? yes
- Superblock last mount time is in the future.
- (by less than a day, probably due to the hardware clock being incorrectly set) Fix<y>? yes
- /dev/sda was not cleanly unmounted, check forced.
- Pass 1: Checking inodes, blocks, and sizes
- Pass 2: Checking directory structure
- Pass 3: Checking directory connectivity
- Pass 4: Checking reference counts
- Pass 5: Checking group summary information
- /dev/sda: ***** FILE SYSTEM WAS MODIFIED *****
- /dev/sda: 15/12206080 files (6.7% non-contiguous), 944257/48806432 blocks
- Zad C5
- mount -t cifs //files.wmi.amu.edu.pl/students ./dysk \
- -o rw,username=s426228,domain=LABS,iocharset=iso8859-2,prefixpath=s426228/kat
- Password:
- mount error 110 = Connection timed out
- Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
- Zad C12
- #Special base config file used in Puppy Linux.
- # **********************************************************************
- # Module section -- this section is used to specify
- # which dynamically loadable modules to load.
- # **********************************************************************
- #
- Section "Module"
- # This loads the DBE extension module.
- Load "dbe" # Double buffer extension
- # This loads the miscellaneous extensions module, and disables
- # initialisation of the XFree86-DGA extension within that module.
- SubSection "extmod"
- Option "omit xfree86-dga" # don't initialise the DGA extension
- EndSubSection
- # This loads the font modules
- # Load "type1"
- Load "freetype"
- # This loads xtrap extension, used by xrandr
- # Load "xtrap"
- # This loads the GLX module (if present). xorg 7.4/5 need explicit disable to disable...
- Load "glx" #LOADGLX
- # This loads dri module (if present). 7.4 loads it by default, have to disable...
- # Load "dri" #LOADDRI
- Load "dri"
- EndSection
- # **********************************************************************
- # Files section. This allows default font paths to be set
- # **********************************************************************
- Section "Files"
- # Multiple FontPath entries are allowed (which are concatenated together),
- # as well as specifying multiple comma-separated entries in one FontPath
- # command (or a combination of both methods)
- FontPath "/usr/share/X11/fonts/misc/"
- FontPath "/usr/share/X11/fonts/Type1/"
- FontPath "/usr/share/X11/fonts/TTF/"
- EndSection
- # **********************************************************************
- # Server flags section.
- # **********************************************************************
- Section "ServerFlags"
- # Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
- # (where n is 1 through 12). This allows clients to receive these key
- # events.
- # Option "DontVTSwitch"
- # Enables mode switching with xrandr
- # There is a report that this can cause Xorg not to work on some
- # video hardware, so default is commented-out...
- # but i want to use it in xorgwizard so leave on...
- Option "RandR" "on"
- # With this, Xorg won't talk to HAL to add evdev devices and you'll be back
- # with the old Xorg behavior (pre-7.4)...
- Option "AutoAddDevices" "false"
- # For no-Hal, kirk also suggests this...
- # Option "AllowMouseOpenFail" "true"
- # Xorg 7.4, Ubuntu Jaunty, CTRL-ALT-BACKSPACE is disabled by default...
- Option "DontZap" "false"
- EndSection
- #everything past here is auto-generated by Puppy's Xorg Wizard...
- Section "ServerLayout"
- Identifier "X.org Configured"
- Screen 0 "Screen0" 0 0
- InputDevice "Mouse0" "CorePointer"
- InputDevice "Keyboard0" "CoreKeyboard"
- EndSection
- Section "InputDevice"
- Identifier "Keyboard0"
- Driver "kbd"
- Option "XkbRules" "xorg"
- Option "XkbModel" "pc102"
- Option "XkbLayout" "us" #xkeymap0
- EndSection
- Section "InputDevice"
- Identifier "Mouse0"
- Driver "mouse"
- Option "Protocol" "IMPS/2" #mouse0protocol
- Option "Device" "/dev/mouse"
- #Option "Emulate3Buttons"
- #Option "Emulate3Timeout" "50"
- Option "ZAxisMapping" "4 5" #scrollwheel
- EndSection
- Section "Monitor"
- Identifier "Monitor0"
- VendorName "Monitor Vendor"
- ModelName "Monitor Model"
- HorizSync 31.5-90
- VertRefresh 60
- #UseModes "Modes0" #monitor0usemodes
- Option "PreferredMode" "1360x768"
- EndSection
- Section "Modes"
- Identifier "Modes0"
- #modes0modeline0
- EndSection
- Section "Device"
- ### Available Driver options are:-
- ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
- ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
- ### [arg]: arg optional
- #Option "ShadowFB" # [<bool>]
- #Option "DefaultRefresh" # [<bool>]
- #Option "ModeSetClearScreen" # [<bool>]
- Identifier "Card0"
- Driver "vesa" #card0driver
- VendorName "InnoTek Systemberatung GmbH"
- BoardName "VirtualBox Graphics Adapter"
- BusID "PCI:0:2:0"
- EndSection
- Section "Screen"
- Identifier "Screen0"
- Device "Card0"
- Monitor "Monitor0"
- DefaultDepth 16
- #Option "metamodes" "1360x768_60 +0+0" #METAMODES_0
- Subsection "Display"
- Depth 16
- Modes "1360x768"
- EndSubsection
- EndSection
- #PuppyHardwareProfile=VirtualBox_VESA_BIOS
- Zad C13
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement