Archives

All posts for the month February, 2014

$ sudo echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6

But if you want it perm set

$ sudo vi /etc/sysctl.conf

append…

net.ipv6.conf.all.disable_ipv6 = 1

Seems even after doing this on my Fedora box, that didn’t work either…it was still sending DNS aaaa traffic out.   Added this and rebooted..and this seems like it fixed it

$ sudo touch /etc/modprobe.d/disable-ipv6

$ sudo echo “options ipv6 disable=1” >> /etc/modprobe.d/disable-ipv6

Another possible way,

$ sudo vi /etc/default/grub

GRUB_CMDLINE_LINUX=”ipv6.disable=1 rd.lvm.lv=fedora/swap rd.md=0…..

$ sudo reload

$ sudo grub2-mkconfig-o /boot/grub2/grub.cfg

$ sudo reboot

And even yet another possible way…

$ sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
$ sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1

ddrescue and dd_rescue are different.   Biggest difference is with dd_rescue you can pipe the output over SSH to another host.   This is why I prefer using dd_rescue more… However when a disk is having issues, it’s best to use ddrescue as it will make every possible attempt to retrieve the data off that damaged disk…

dd_rescue /dev/sda1 – | bzip2 > /some/path/filename.bz2

dd_rescue /dev/sda1 – | ssh root@somehost ” cat – > /some/path/filename.img”

Haven’t done this in a while, but got to fix my mothers computer this evening and needed to reset her login password to Windows.

1).  Download System Rescue CD or Partition Magic

2). Burn & Boot computer off that CD. Leave everything defaulted, just hit enter when prompted.

3).  At prompt, you will need to find out what partition Windows is installed on.  Default is probably /dev/sda1, however this one wasn’t .  Use fdisk -l to find the valid disk device names, chances are if it’s not the sda1, it will be sda2

4).  % ntfs-3g /dev/sda2 /mnt/windows

5). cd /mnt/windows/Windows/System32/config

6). chntpw -l SAM  ( this will list all the valid users on Windows)

7).  chntpw -u Administrator SAM

select 1 for “Clear (blank) user password  <enter>

type y to write changes to disk and that’s it.

8).  Might not be necessary, but it’s not going to hurt and not doing it just may hurt the disk..

% cd ; umount /mnt/windows

Remove CD and reboot.  Windows should no longer prompt you for password… 

9).  Good idea to re-add your password in Windows.