-
Rescue gentoo with software raid-1
Chroot to Gentoo env livecd ~ # modprobe raid1 livecd ~ # mdadm –detail –scan ARRAY /dev/md/3_0 metadata=0.90 UUID=5af462ee:8e535294:cb201669:f728008a ARRAY /dev/md/2_0 metadata=0.90 UUID=09338879:65611484:cb201669:f728008a ARRAY /dev/md/1_0 metadata=0.90 UUID=2fc18a05:fd33a57f:cb201669:f728008a livecd ~ # mdadm –detail –scan > /etc/mdadm.conf livecd ~ # ls /dev/md md/ md125 md126 md127 mdev.seq livecd ~ # ls /dev/md md/ md125 md126 md127 mdev.seq […]
-
Gentoo install min on USB stick
Download minimal CD ISO from gentoo.org dmesg | tail parted /dev/sdX dd if=gentoo_image.img of=/dev/sdX bs=4M Longer method Taken from gentoo-en.vfose.ru Install syslinux emerge syslinux Find the USB drive fdisk -l Clear disk partition table and boot sector dd if=/dev/zero of=/dev/sdf count=1024 Create a partition table with 512-byte sectors and a primary partition of type 83 […]
-
Unbricking WRT54G
A quick guide how to ‘fix’ bricked WRT54G. I managed to brick it by installing OpenWRT firmware (attitude adjustment v12.09). Unfortunately this router doesn’t have enough memory to handle v12.09. My attempts to upload a new firmware trough ssh bricked the router. To unbrick it I first did 30 30 30 reset. Powered router hold […]
-
Net watchdog for OpenWrt
Lately, my cable connection gets disconnected too often. To automate reconnection, I installed a simple watchdog script that pings outside address and if there is no response it restarts router network. It’s not most efficient, since only WAN needs to be restarted, but it does the job. Here is a simple watchdog script. #!/bin/sh n=0 […]
-
Replacing failed disk in software RAID
mark the drive as failed first mdadm /dev/mdX -f /dev/sdYX Power down and physically replace faulty drive. Make sure the partitions are properly aligned, as in http://www.ibm.com/developerworks/linux/library/l-4kb-sector-disks/#tools Boot and partition new drive, and if you want to partition the new drive similar as others, you can do it with.. sfdisk -d /dev/sdX | sfdisk /dev/sdY mdadm […]
-
Windows 7 boot fix
Win7 unable to boot. After BIOS, computer restarts. Seems like boot sector error. Linux utils unable to find anything wrong. Boot win7 installation disk and select REPAIR, go to command prompt and run following instructions. bootrec.exe /fixboot bootrec.exe /fixmbr
-
Quick winXP/Vista/7/8 recovery
To a friend in trouble. In short winXP doesn’t behave nice. Most likely virus. Backup and full reinstall needed. Here is my advice how to back it up using linux live distro. 1. install linux live cd to CD or better usb key 2. boot old computer using linux from step 1 — DONT install […]
-
Large HD reminder
Prepare hard drive with parted. It is recommended to ask parted to use optimal partition alignment: parted -a optimal /dev/sdX (parted) help (parted) print (parted) mklabel gpt (parted) mkpart primary ext4 0% 100% (parted) name 1 storage_01 (parted) print (parted) quit create filesystem mkfs.ext4 /dev/sdX1 To remove hot-plugged SATA disk, first unmount then suspend disk […]
-
Kubuntu on ASUS Zenbook Prime UX31A-DH5
After a few problems I can confirm ASUS Zenbook Prime UX31A-DH5 working with Kubuntu 13.10. Here are the steps I did: Get kubuntu from http://www.kubuntu.org/getkubuntu/download At the time of writing, version 13.10 was the most recent. It should work with BIOS Secure Boot option. Copy iso image to usb device dmesg [67675.270470] sdf: sdf1 sdf2 […]
-
Grub2 on gentoo
Grub2 is finally declared as stable in gentoo portage. While optional, migration from grub:0 to grub2 is straightforward. Installation of grub2 is done in four steps. First inspect your existing grub.conf file and make sure naming is correct. Grub2 has strict naming requirements and wants kernel images to be named as kernel-${version} or vmlinuz-${version} and […]