Tag Archive for 'Linux'

Page 3 of 13

Remove (obliterate) trees from subversion repository

If you need to wipe all traces for some objects in your svn repository, you can do something like this:

# svnadmin dump REPOS_PATH | svndumpfilter \
<include|exclude> $string | \
svnadmin load REPOS_PATH_NEW
# mv REPOS_PATH REPOS_PATH_backup && REPOS_PATH_NEW \
REPOS_PATH

Backup and restore a Windows partition

Today I discovered ‘ntfsclone’ which is included in debian in the ‘ntfsprogs’ package.

For example if you wonna try to backup your ‘/dev/hda3′ to a remote host:

foobar:~ # ntfsclone –save-image –output – /edv/hda3 | \
ssh $remotehost ‘( cat > xp.img )’

remotehost:~ # cat xp.img | ssh $foobar \
‘(ntfsclone –restore-image –overwrite /dev/hda3 – )’

Maybe you you also will have a look into ‘ntfsresize’! ;-)

LVM and Quota with Vserver on Debian

This article is based on the excellent article on 5dollarwhitebox.org.

At first install nessesary packages:

# aptitude -t sarge-backports install lvm2\
util-vserver coreutils linux-image-2.6-vserver-686

Continue reading ‘LVM and Quota with Vserver on Debian’

Enable serial console on Debian ‘sarge’ GNU/Linux

At first, you need to enable serial ports in your BIOS and wire them up to the case front (if they aren’t allready).

Make sure you have the following in your /boot/grub/menu.lst:

serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
terminal --timeout=10 serial console
# kopt=root= ro console=tty0 console=ttyS0,115200n8

Check that “ttyS0″ is in /etc/securetty, remove /etc/ioctl.save, if its there.
Last change goes to /etc/inittab, add there:

T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100

Now you can use a terminal program like minicom with 115200 baud, 8n1 and no flow control set.

Have fun and much luck on recovering your machine!


Too Cool for Internet Explorer