分类: LINUX
2006-01-19 22:59:53
[root@FC4 /root]# mount /dev/sda6 on / type ext3 (rw) none on /proc type proc (rw) none on /dev/pts type devpts (rw,gid=5,mode=620) usbdevfs on /proc/bus/usb type usbdevfs (rw) /dev/sda1 on /boot type ext3 (rw) /dev/sda7 on /home type ext3 (rw) none on /dev/shm type tmpfs (rw) /dev/sda3 on /usr type ext3 (rw) /dev/sda2 on /var type ext3 (rw) [root@FC4 /root]# [root@FC4 /root]# fdisk /dev/sda The number of cylinders for this disk is set to 4425. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): p Disk /dev/sda: 36.4 GB, 36401479680 bytes 255 heads, 63 sectors/track, 4425 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 3200 25599577+ 83 Linux /dev/sda3 3201 3722 4192965 83 Linux /dev/sda4 3723 4425 5646847+ f Win95 Ext'd (LBA) /dev/sda5 3723 3853 1052226 82 Linux swap /dev/sda6 3854 3984 1052226 83 Linux /dev/sda7 3985 4425 3542301 83 Linux Command (m for help): q [root@FC4 /root]# more /etc/fstab LABEL=/ / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 LABEL=/home /home ext3 defaults 1 2 none /proc proc defaults 0 0 none /dev/shm tmpfs defaults 0 0 LABEL=/usr /usr ext3 defaults 1 2 LABEL=/var /var ext3 defaults 1 2 /dev/sda5 swap swap defaults 0 0 /dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0 /dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0 [root@FC4 /root] |
[root@FC4 /root]# cat <<__ELM__ > /exclude ./proc/* ./sys/* ./dev/pts/* ./dev/shm/* ./proc/sys/fs/binfmt_misc/* ./var/log/BACKUP* ./tmp/* __ELM__ [root@FC4 /root]# |
[root@FC4 /root]# cd / [root@FC4 /]# tar -X ./exclude -czvf ./var/log/BACKUP_FC4_20060119.tar.gz ./ |