Linux Maintenance

From wikidb
Jump to: navigation, search

Prepare Backup Disk

May need to unmount disk

 sudo umount /media/9016-4EF8/
sudo parted -l
sudo parted /dev/sdb
  • help
make partition table
  • mklabel gpt
  • print
make units sectors
  • unit s
these are powers of 2 values
  • mkpart primary 1M:B -1M:B

or

  • mkpart primary 1M -1M
  • print
  • quit
ls /dev/sdb*
sudo mkfs.ext4 /dev/sdb1
sudo tune2fs -r 0 /dev/sdb1

Sie Limit for External USB drives

there are several versions of the API. The oldest supports 21-bit block addresses (and a 1GB limit), a later version supports 32-bit LBAs (imposing the 2TB limit many cases have today), and the latest has a 64-bit LBA which will impose an 8ZB limit (that's 8 giga-terabytes!).

Backup

rsync -ax / /media/cd181ea6-154d-4070-ab22-bd4f5f5aa635/tabor120520
rsync -ax -exclude /home/eepp/scr/linux-source-2.6.32 …
rsync -ax pi@10.0.0.161: pi

add --delete on future syncs

See also Running on Mac

Update

Check version Update to 12.04 wouldn't boot

 date
 Mon Dec 30 15:27:20 PST 2013
 lsb_release -a
 No LSB modules are available.
 Distributor ID:	Ubuntu
 Description:	Ubuntu 10.04.4 LTS
 Release:	10.04
 Codename:	lucid
 cat /proc/version
 Linux version 2.6.32-41-generic (buildd@vernadsky) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1) ) #89-Ubuntu SMP Fri Apr 27 22:22:09 UTC 2012

Resources