1
Instalace, aktualizace a spouštění / Re:SERVER 16.04 ARM verze
« kdy: 25 Listopad 2018, 09:54:39 »
Zpět na stromy - v 1h ráno jsem zjistil, že u ARM distribuce co jsem stáhnul je M-BOOT
To už nedávám :-(
To už nedávám :-(
Tato sekce Vám umožňuje zobrazit všechny příspěvky tohoto uživatele. Prosím uvědomte si, že můžete vidět příspěvky pouze z oblastí Vám přístupných.
sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev &&
sudo mount --bind /dev/pts /mnt/dev/pts &&
sudo mount --bind /proc /mnt/proc &&
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
(tím se chrootnu na to SSD /sda1) - to asi chápugrub-install /dev/"SSID SDkarty"
tím nainstaluji GRUB na SDkartu ale OS bude na SSD, jelikož jsem chrootnut tam ?Udělej si zálohu. Pak se nebudeš muset bát že o něco přijdeš. V případě potíží zálohu obnovíš a máš "další pokus".
convmv -r -f cp1252 -t UTF-8 /home/pavel
projede všechny podadresáře a POUZE VYPÍŠE jaké změny udělá (CP z jaké do jaké si upravíš)convmv --notest -r -f cp1252 -t UTF-8 /home/pavel
a během chvilky máš hotovo :-)rw, sync jsem myslel v /etc/exports (konfigurák nfs serveru)
"Stale NFS file handle" nastane někdy při činnosti nebo jen při uspání PC nebo NAS?
pavel@pavel1tu-desktop:~$ nfsstat -m
/media/nas_music from 192.168.123.4:/volume1/music
Flags: rw,sync,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.123.4,mountvers=3,mountproto=tcp,addr=192.168.123.4
/media/nas_video from 192.168.123.4:/volume1/video
Flags: rw,sync,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.123.4,mountvers=3,mountproto=tcp,addr=192.168.123.4
/media/nas_backup from 192.168.123.4:/volume1/backup
Flags: rw,sync,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.123.4,mountvers=3,mountproto=tcp,addr=192.168.123.4
co si pod tím mám představit?to co popisuji v bodě 2, prostě to vyhodí hlášku co jsem popsal
Neuspává se síť? Pokud je puštěn ping na NAS tak disky také zmizí?
Co mi funguje:to by mne zajímalo, Synology mi po update na 3.1 nabídlo automatickou zálohu PC, kde je rsyn (ale asi je potřeba server, zatím scháním info)
v exports na serveru používám rw,sync
#!/bin/bash
function pause()
{
read -s -n 1 -p "$*"
echo
}
echo " *** Zapni NAS, pripoj disky - FOTO, NAS_ZALOHA ***"
pause "- Press any key to continue -"
#! *************** ZALOHA /MEDIA/FOTO ---> NAS ******************
echo " *** PROBIHA ZALOHA /MEDIA/FOTO ---> NAS ***"
rdiff-backup -b --exclude /media/foto/00_video --print-statistics /media/foto /media/nas_backup/foto
#! rdiff-backup zavolání programu RDIFF-BACKUP
#! -b proveď zálohu
#! --exclude vynech následující adresář
#! --print-statistics Vypsat na konci statistiku
#! /media/foto co zálohuji
#! media/nas_backup/foto kam zálohuji
#!
#! *************** ZALOHA /HOME/PAVEL ---> NAS ******************
echo " *** PROBIHA ZALOHA /MEDIA/FOTO ---> NAS ***"
rdiff-backup -b --exclude /home/pavel/Plocha --exclude /home/pavel/Stažené --print-statistics /home/pavel /media/nas_backup/pavel
#!
#! *************** KONEC ZALOHY - CEKEJ NA STISK KLAVESY ******************
echo " *** ZALOHOVANI UKONCENO ***"
pause "Press any key to continue"
funguje to, zatím jsem obnovoval ze zálohy jednou a dopadlo to :-)v fstab klienta můžete zkusit:
192.168.123.4:/volume1/music /media/nas_music nfs _netdev,rsize=8192,wsize=8192,timeo=14,intr
_netdev je parametr pro mounter ne pro nfs (nemountuj dokud není síť), rsize a wsize jen velikost bloků (ladění výkonu), timeout na 1,4s (dvojnásobek defaultu, pomaleji se mi probouzí síťovka) a intr abych mohl přerušit volání třeba když neodpovídá.
# NAS Disky
#
192.168.123.4:/volume1/video /media/nas_video nfs sync,rw,exec 0 0
192.168.123.4:/volume1/music /media/nas_music nfs sync,rw,exec 0 0
192.168.123.4:/volume1/backup /media/nas_backup nfs sync,rw,exec 0 0
Nelze otevřít umístění "file:///media/nas_music"3) pomůže umount a následný mount
Chyba při prohledávání souboru "/media/nas_music" s fstat(): Stale NFS file handle
taky jsem to kdysi řešil a svůj postup jsem si poznamenal - http://jan.pejsa.info/clanek-jak-vytvorit-dvd-s-vlastnim-menudík, otestuji
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1152x864@75"
EndSubSection
EndSection
Section "Monitor"
identifier "Default Monitor"
vendorname "Belinea"
modelname "Belinea 107035"
HorizSync 30.0-95.0
VertRefresh 50.0-180.0
modeline "640x480@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
modeline "640x480@72" 31.5 640 664 704 832 480 489 491 520 -vsync -hsync
modeline "640x480@75" 31.5 640 656 720 840 480 481 484 500 -vsync -hsync
modeline "640x480@85" 36.0 640 696 752 832 480 481 484 509 -vsync -hsync
modeline "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
modeline "800x600@72" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
modeline "800x600@75" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
modeline "800x600@85" 56.3 800 832 896 1048 600 601 604 631 +hsync +vsync
modeline "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
modeline "832x624@75" 57.284 832 864 928 1152 624 625 628 667 -vsync -hsync
modeline "1024x768@85" 94.5 1024 1072 1168 1376 768 769 772 808 +hsync +vsync
modeline "1024x768@75" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
modeline "1024x768@70" 75.0 1024 1048 1184 1328 768 771 777 806 -vsync -hsync
modeline "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
modeline "1024x768@43" 44.9 1024 1032 1208 1264 768 768 776 817 +hsync interlace +vsync
modeline "1152x864@75" 108.0 1152 1216 1344 1600 864 865 868 900 +hsync +vsync
modeline "1280x1024@75" 135.0 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync
modeline "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
modeline "1280x960@85" 148.5 1280 1344 1504 1728 960 961 964 1011 +hsync +vsync
modeline "1280x1024@85" 157.5 1280 1344 1504 1728 1024 1025 1028 1072 +hsync +vsync
modeline "1280x1024@60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
modeline "1280x960@75" 129.86 1280 1368 1504 1728 960 961 964 1002 -hsync +vsync
modeline "1400x1050@60" 122.61 1400 1488 1640 1880 1050 1051 1054 1087 -hsync +vsync
modeline "1400x1050@75" 155.85 1400 1496 1648 1896 1050 1051 1054 1096 -hsync +vsync
modeline "1600x1200@65" 175.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
modeline "1600x1200@60" 162.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
modeline "1600x1200@75" 202.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
modeline "1600x1200@70" 189.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
modeline "1792x1344@60" 204.8 1792 1920 2120 2448 1344 1345 1348 1394 -hsync +vsync
modeline "1856x1392@60" 218.3 1856 1952 2176 2528 1392 1393 1396 1439 -hsync +vsync
modeline "1920x1440@60" 234.0 1920 2048 2256 2600 1440 1441 1444 1500 -hsync +vsync
modeline "2048x1536@60" 266.95 2048 2200 2424 2800 1536 1537 1540 1589 -hsync +vsync
gamma 1.0
EndSection
Zálohuj menu.lst.
Pak v originále souboru změň ve všech položkách s Ubuntu 9.10 řádek
root (hd0,0)
na
uuid 5cde9903-8907-4afd-938d-9ce648803788
Taky doporučuji změnit label/Název oddílu sdc1 z / na něco alfanumerického (třeba přes GParted/Editor diskových oddílů).
============================= Boot Info Summary: ==============================
=> No boot loader is installed in the MBR of /dev/sda
=> No boot loader is installed in the MBR of /dev/sdb
=> Grub0.97 is installed in the MBR of /dev/sdc and looks on the same drive
in partition #1 for /boot/grub/stage2 and /boot/grub/menu.lst.
sda1: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
sda6: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
sdb1: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sdb5: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sdb6: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
sdc1: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/menu.lst /etc/fstab
sdc2: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM
sdc3: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sdc5: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdc6: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
sdc7: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
sdc8: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x000b3bac
Partition Boot Start End Size Id System
/dev/sda1 63 976,768,064 976,768,002 5 Extended
/dev/sda5 126 566,516,159 566,516,034 83 Linux
/dev/sda6 566,516,223 976,768,064 410,251,842 83 Linux
Drive: sdb ___________________ _____________________________________________________
Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x0000db67
Partition Boot Start End Size Id System
/dev/sdb1 63 625,137,344 625,137,282 5 Extended
/dev/sdb5 126 307,564,424 307,564,299 7 HPFS/NTFS
/dev/sdb6 307,564,488 625,137,344 317,572,857 83 Linux
Drive: sdc ___________________ _____________________________________________________
Disk /dev/sdc: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00051df9
Partition Boot Start End Size Id System
/dev/sdc1 * 63 39,070,079 39,070,017 83 Linux
/dev/sdc2 * 39,070,080 78,140,159 39,070,080 7 HPFS/NTFS
/dev/sdc3 78,140,160 625,137,344 546,997,185 5 Extended
/dev/sdc5 78,140,223 84,003,884 5,863,662 82 Linux swap / Solaris
/dev/sdc6 84,003,948 201,198,059 117,194,112 83 Linux
/dev/sdc7 201,198,123 413,175,734 211,977,612 83 Linux
/dev/sdc8 413,175,798 625,137,344 211,961,547 83 Linux
blkid -c /dev/null: ____________________________________________________________
/dev/loop0: TYPE="squashfs"
/dev/sda5: LABEL="video2" UUID="bffd22e7-1687-4b8a-9fc9-68f0aeb5cd05" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda6: LABEL="zaloha" UUID="ba551125-1042-4f90-995d-c83b6a32a5b3" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb5: UUID="3D792E545B7FC397" LABEL="WIN_D" TYPE="ntfs"
/dev/sdb6: LABEL="video" UUID="993d69b5-baa1-4db5-8e14-f9948d36da02" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdc1: LABEL="/" UUID="5cde9903-8907-4afd-938d-9ce648803788" TYPE="ext3"
/dev/sdc2: UUID="BC0C4FD30C4F877C" LABEL="WIN" TYPE="ntfs"
/dev/sdc5: UUID="6c1e2553-ab8a-4256-8e28-31e859f2b4b4" TYPE="swap"
/dev/sdc6: LABEL="home" UUID="7e49318c-e96d-4c49-a9b4-b4ddae84960c" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdc7: LABEL="foto" UUID="b619edc8-2bcc-4f55-9204-cebbc503fc64" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdc8: LABEL="ftp" UUID="0a55f988-5534-4859-ac80-2ea54dc4123d" SEC_TYPE="ext2" TYPE="ext3"
=============================== "mount" output: ===============================
aufs on / type aufs (rw)
none on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
/dev/sr1 on /cdrom type iso9660 (rw)
/dev/loop0 on /rofs type squashfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/ubuntu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=ubuntu)
/dev/sdc1 on /media/_ type ext3 (rw,nosuid,nodev,uhelper=devkit)
=========================== sdc1/boot/grub/menu.lst: ===========================
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 1
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=5cde9903-8907-4afd-938d-9ce648803788 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 9.10, kernel 2.6.31-15-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.31-15-generic root=UUID=5cde9903-8907-4afd-938d-9ce648803788 ro quiet splash
initrd /boot/initrd.img-2.6.31-15-generic
quiet
title Ubuntu 9.10, kernel 2.6.31-15-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.31-15-generic root=UUID=5cde9903-8907-4afd-938d-9ce648803788 ro single
initrd /boot/initrd.img-2.6.31-15-generic
title Ubuntu 9.10, kernel 2.6.28-16-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.28-16-generic root=UUID=5cde9903-8907-4afd-938d-9ce648803788 ro quiet splash
initrd /boot/initrd.img-2.6.28-16-generic
quiet
title Ubuntu 9.10, kernel 2.6.28-16-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.28-16-generic root=UUID=5cde9903-8907-4afd-938d-9ce648803788 ro single
initrd /boot/initrd.img-2.6.28-16-generic
title Ubuntu 9.10, kernel 2.6.27-14-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.27-14-generic root=UUID=5cde9903-8907-4afd-938d-9ce648803788 ro quiet splash
initrd /boot/initrd.img-2.6.27-14-generic
quiet
title Ubuntu 9.10, kernel 2.6.27-14-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.27-14-generic root=UUID=5cde9903-8907-4afd-938d-9ce648803788 ro single
initrd /boot/initrd.img-2.6.27-14-generic
title Ubuntu 9.10, kernel 2.6.24-23-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=5cde9903-8907-4afd-938d-9ce648803788 ro quiet splash
initrd /boot/initrd.img-2.6.24-23-generic
quiet
title Ubuntu 9.10, kernel 2.6.24-23-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=5cde9903-8907-4afd-938d-9ce648803788 ro single
initrd /boot/initrd.img-2.6.24-23-generic
title Ubuntu 9.10, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Test HW:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Test HDD
root (hd0,1)
savedefault
makeactive
chainloader +1
=============================== sdc1/etc/fstab: ===============================
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdc1
UUID=5cde9903-8907-4afd-938d-9ce648803788 / ext3 relatime,errors=remount-ro 0 1
# /dev/sdc5
UUID=6c1e2553-ab8a-4256-8e28-31e859f2b4b4 none swap sw 0 0
# /dev/sdc6
UUID=7e49318c-e96d-4c49-a9b4-b4ddae84960c /home ext3 relatime 0 2
# /dev/sdc7
UUID=b619edc8-2bcc-4f55-9204-cebbc503fc64 /media/foto ext3 relatime 0 2
# /dev/sdc8
UUID=0a55f988-5534-4859-ac80-2ea54dc4123d /media/ftp ext3 relatime 0 2
# /dev/sda6
UUID=ba551125-1042-4f90-995d-c83b6a32a5b3 /media/zaloha ext3 relatime 0 2
# /dev/sdb6
UUID=993d69b5-baa1-4db5-8e14-f9948d36da02 /media/video ext3 relatime 0 2
# /dev/sdb5
UUID=3D792E545B7FC397 /media/win_d ntfs defaults,umask=007,gid=46 0 0
# /dev/sdc2
UUID=BC0C4FD30C4F877C /media/windows ntfs defaults,umask=007,gid=46 0 0
# /dev/sda5
UUID=bffd22e7-1687-4b8a-9fc9-68f0aeb5cd05 /media/video2 ext3 relatime 0 2
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/scd1 /media/cdrom1 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
devpts /dev/pts devpts (rw,noexec,nosuid,gid=5,mode=620)
=================== sdc1: Location of files loaded by Grub: ===================
.0GB: boot/grub/menu.lst
.0GB: boot/grub/stage2
.0GB: boot/initrd.img-2.6.24-23-generic
.0GB: boot/initrd.img-2.6.24-23-generic.bak
.0GB: boot/initrd.img-2.6.27-14-generic
.0GB: boot/initrd.img-2.6.28-16-generic
.0GB: boot/initrd.img-2.6.31-15-generic
.0GB: boot/vmlinuz-2.6.24-23-generic
.0GB: boot/vmlinuz-2.6.27-14-generic
.0GB: boot/vmlinuz-2.6.28-16-generic
.0GB: boot/vmlinuz-2.6.31-15-generic
.0GB: initrd.img
.0GB: initrd.img.old
.0GB: vmlinuz
.0GB: vmlinuz.old
================================ sdc2/boot.ini: ================================
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
vetsina rozumnych programu podporuje prepinac pro zachovani prav:
# cp --help | grep \\-p\
-p same as --preserve=mode,ownership,timestamps
# tar --help | grep \\-p,
-p, --preserve-permissions, --same-permissions
--preserve-numerical-ids
If set, rdiff-backup will preserve uids/gids instead of trying
to preserve unames and gnames. See the USERS AND GROUPS section
for more information.
... je rozdělená na 40 GB a 80. Původně jsem chtěl na ten díl s 80GB nainstalovat plnou instalaci Ubuntu bez použití wubi. Ale problém byl v tom, že ten disk je naformátovaný v NTFS a když se spustí dialog instalace Ubuntu, tak vidí ten disk jako jeden a tím by ho taky naformátoval...
#!/bin/bash
function pause()
{
read -s -n 1 -p “$*”
echo
}
rdiff-backup -b –exclude /home/pavel/přebrat –print-statistics /home/pavel /media/zaloha/home/pavel
pause “Press any key to continue”