Archives

All posts for the day August 29th, 2012

Copy a large folder over a raw tcp connection. The transfer is very quick (no protocol overhead) and you don’t need to mess up with NFS or SMB or FTP or so, simply make the file available on the server, and get it from the client. Here 192.168.1.1 is the server IP address.

Fix/Repair grub

. Suppose linux lies on /dev/sda6 (fdisk -l)
# mount /dev/sda6 /mnt # mount the linux partition on /mnt
# mount –bind /proc /mnt/proc # mount the proc subsystem into /mnt
# mount –bind /dev /mnt/dev # mount the devices into /mnt
# chroot /mnt # change root to the linux partition
# grub-install /dev/sda # reinstall grub with your old settings