Wednesday, February 15, 2012

Repairing Win 7 when Repair Computer option missing or not working


1. Firstly we need to check the boot loader to see what drives/partitions are known about.

          bcdedit /enum all

2. Remove any 'unknown' entries.

          bcedit delete {ID Number}

3. Run the reagent command and see if we can enable it.

          reagentc /enable

4. If the previous command fails then we need to re-add the repair partition information.

4a. First mount the Repair partition with 'diskpart' utility.

          diskpart
          list disk
          select disk 0
          list volume
          select volume 1
          assign letter=R
          exit

4b.     reagentc /setreimage /path R:\recovery\winre /target c:\windows

4c.     reagentc /enable

5. Re-run the 'bcdedit /enum all' command and make sure the repair partition info is now correct.

6. Reboot hitting the f8 key to bring up the Advanced Boot Options page.

7. Hit Repair Computer and hopefully we are back in business.

All the available switches for reagentc can be found at the following technet page.


Wednesday, September 7, 2011

Extending LVM2 partition in Centos 6


A quick how to on extending an LVM2 volume on Centos 6.


The following commands need to be run as a super user, i.e su - or sudo


First you will need to add the new partition to your LVM Group, this is assuming you have alreday created the disk with fdisk or similar and created a file system on the new drive to be added:


Initialise the partition for use in an LVM Group:
Inspiron-1545:~#pvcreate /dev/sdb1


Then add the new PV partition to to your LVM Group:
Inspiron-1545:~#vgextend VolGroup00 /dev/sdb1


You can check that there is now free PE's available to grow your partition:
Inspiron-1545:~#lvm vgdisplay


Check volume name:
Inspiron-1545:~#df /


Extend the partition you want to add the extra space too:
Inspiron-1545:~#lvextend -L +100G /dev/VolGroup00/LogVol00


Lastly extend the filesystem on the partition:
Inspiron-1545:~#resize2fs /dev/VolGroup00/LogVol00


Run df -h / to make sure that the extra space has been added as expected.


Original article can be found here.

Tuesday, August 16, 2011

Disabling and removing RSS feeds in Outlook 2007

To remove and disable RSS feeds in Outlook 2007.

Basically you need to follow a 3 step process.

Step 1: Disable Outlook’s RSS Sync:

1. Open Outlook 2007
2. Click the Tools menu
3. Click Options
4. Select the Other tab
5. Click the Advanced Options button
6. Uncheck Sync RSS feeds to the Common Feed List
7. Click OK X 2

Step 2: Mass Remove Feed Subscriptions from Outlook:

1. Click Tools menu and then Options again.
2. Select the poorly named Mail Setup tab
3. Click the Data Files button
4. Click the RSS Feeds tab
5. Click the first feed and scroll down to the bottom of the feed list
6. Hold the SHIFT key and click the last feed. All feeds should now be selected.
7. Click the Remove button
8. Confirm you want them all deleted.

Step 3: Now we’ll need to delete the old feed content as well…       

 9. Expand the RSS Feed folder under Personal Folders
10. Select each feed and press Delete. (You’ll have to confirm the delete for each one)
11. Repeat until all are gone.

Thanks to Hack Vista for the article!
Full article can be found here

Wednesday, August 3, 2011

Crazy Day

Full on day today getting my head around CA's and self signed certificates on OSX 10.6 to enable secure Open Directory communication and authentication to external websites.

Will be posting a how to soon.

Tuesday, February 1, 2011

Testing Email Using Telnet

Ever needed to test sending email through your mailserver from the terminal?

This may help.

telnet host 25
HELO mail.example.com
MAIL FROM: joe@example.com
RCPT TO: bob@example1.com
DATA
From: joe@example.com
To: bob@example1.com
Subject: Test Message

Hello World
.
QUIT