Saturday, October 19, 2013

The User Profile Service failed the logon


Error message: The User Profile Service service failed the logon. User profile cannot be loaded.

What it means: The system doesn't allow you to login using your password. You are stuck.

Operating System: Win Vista Home Edition (It seems it happens even in Win 7)

Fix: 
1. Start the machine in safe mode
(click F8 during start, and enter the password -in safe mode there is no issue)

2. Start regedit
(in search just type regedit and enter)

3. Go to the following sub registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

4. And check for the following three issues
a. key name ending with a .bak (if yes then check if there is a similar key name without the .bak and make that the .bak and remove the .bak from the original)
b. refcount is 0 (I checked in all the keys under ProfileList and made refcount 0 for all of them)
c.state is 0 ( even for this I checked in all the keys under ProfileList and made state 0 for all of them).

5. Close the regedit and restart the machine.

Additional Resources:
i. A nice video was posted in youtube which I found was quite helpful for many. Click here for it.
ii. From Microsoft site.

Sunday, April 15, 2012

Sound recording needs for a non profit setup

It is true that simultaneous playback and recording in Windows PC is not possible due to limitation of Windows Operating System.
Recording is possible but a thumping noise will appear every now and then and therefore not advisable for professional applications.
http://support.microsoft.com/kb/823319

Yes it is possible to tweak it but NOISE will always be there - ASK BABA DEV
http://ask.badadev.com/questions/3766/about-simultaneous-sound-playback-and-recording

We can avoid this limitation if we use pro audio interfaces but then we are moving into digital realm that is more sophisticated and complicated for our sound person to handle.
Therefore we have to keep it simple and easy to use.

Therefore, we should also not add another computer in the sound room. There is so much equipment to handle and we need to simplify the connectivity and the process without adding a PC.

I believe we make MP3 CD available for people after almost every program. The current process is to copy MP3 file that is recorded in the PC onto a master CD. Then we duplicate the master CD on a standalone duplicator to give away to the attendees. It is a 3-step process and computer is needed. I believe that the recording process should be completely standalone without any computer.

It seems like there is no problem with the current PC but the sound card is bad. And also we are putting too much load on the CPU by recording simultaneously on the same PC.
To solve the audio problem we are facing right now, I suggest we buy the following two pieces of hardware.

1. We should buy a standalone CD/MP3 recorder ( NO PC REQUIRED ) .
After each program, you can title or name each track on the unit before finalizing the master CD copy that can be readily duplicated.

TASCAM CD-RW900SL $ 299

http://www.sweetwater.com/store/detail/CDRW900SL/ ( Sweetwater gives automatic 2-year warranty on every item )

2. This is a professional extreme-fidelity sound card that will make the sound shine. Very important piece of equipment to replace in our desktop PC that has a bad sound card.

Creative Labs Sound Blaster X-Fi Titanium Fatal1ty Professional Series PCI Express Sound Card $138.50


The next two items are optional, and good to have it if you have to connect a laptop or PC audio to the mixer using USB port.

3. To create a stereo recording using USB output of a PC, we need this Direct Box. The output is XLR that connects to the mixer board.
USB Direct Box to Output Computer Audio to eliminate ground loops and connection with projector - $51

4. This is a sound card for laptops. The connectivity is USB instead of typical 1/8" headphone output of laptop that is prone to get damaged.

Turtle Beach Audio Advantage Amigo II USB Sound Card & Headset Adapter $21.75

Friday, April 13, 2012

ybr cable or HDMI cable?

Today I faced with the question which one to go with....ybr cable or HDMI cable?

People normally get confused with "ybr cable" to be equivalent to "rca cable" ...but today I got a nice education from one of my dear friend Bharat Gohil. RCA cable is purely analog whereas YBR can handle digital which is equivalent to HDMI.

The following link will be of use for further reading :
http://hdmivscomponent.com/

Saturday, August 15, 2009

Some Linux Userful Guides

The TOP 50 linux command line tools

Cheat Sheet - Linux Tools

Linux Shell Scripting Tutorial - A Beginners Hand Book

Some serious training

How to fix master boot record partition table problems

This is not my post but from searchenterpriselinux.techtarget.com.
Since this blog is to have a compilation of all the issues I faced and how I resolved it, I am just copying and pasting the article as is from the above site.

All the credits go to the original author -
Sander van Vugt.

The original link:
http://searchenterpriselinux.techtarget.com/tip/0,289483,sid39_gci1364300_mem1,00.html?track=NL-795&ad=720135&asrc=EM_NLN_8927606
-------------------------------------------------------------------------------------------
In the last part of this series, you have learned how to recover from problems occurring in your Master Boot Record. It has showed you how to get it back once it has been removed. Here we continue with troubleshooting the partition table of the Master Boot Record. Without a partition table, you cannot access any of the information on your computer's hard drive, so if it gets lost, recovering it is critical.

In general, you can encounter two different kinds of problems in regard to partitions. You may have lost the complete partition table, or you may have a problem with the file system on a partition. Here, you'll learn how to recover the partition table. To do this, you need your rescue CD and gpart to find the exact information about the beginning and end of the partitions on your server's hard disk. Once you've found that, use fdisk to recreate the partitions. The following procedure shows how to do this.

1. Start your server from the rescue CD and make sure that you open a console where you have root permissions.

2. Type gpart /dev/sda to scan your hard drive for all partitions. This may take between five seconds and an hour. Once finished, it will show you partition information:

root@Knoppix:~# gpart /dev/sda
Begin scan...
Possible partition(Linux ext2), size(7789mb), offset(0mb)
Possible extended partition at offset(7789mb)
Possible partition(Linux swap), size(400mb), offset(7789mb)
End scan.
Checking partitions...
Partition(Linux ext2 filesystem): primary
Partition(Linux swap or Solaris/x86): primary
Ok.
Guessed primary partition table:
Primary partition(1)
type: 141(0x83)(Linux ext2 filesystem)
size: 7789mb #s(15952480) s(63-15952542)
chs: (0/1/1)-(992/254/61)d (0/1/1)-(992/254/61)r
Primary partition(2)
type: 140(0x82)(Linux swap or Solaris/x86)
size: 400mb #s(819248) s(15952608-16771855)
chs: (993/1/1)-(1023/254/63)d (993/1/1)-(1043/254/59)r
Primary partition(3)
type: 000(0x00)(unused)
size: 0mb #s(0) s(0-0)
chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
Primary partition(4)
type: 000(0x00)(unused)
size: 0mb #s(0) s(0-0)
chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

Evaluate the information that gpart provides carefully, after all, gpart stands for guess partition. It guesses, nothing more, nothing less. On the example server I have swap in a logical parition /dev/sda5. As you can see, gpart found the swap partition with its correct size, beginning and end on disk, but couldn't find that it was a logical partition. Based on this information, you would try to recreate the swap partition on /dev/sda2. Your server would boot with that, but would give errors as well. But, that doesn't really matter because once booted you can check system files like /etc/fstab to find the partition your swap originally was, and repair the partitions.

3. Now that you have found the original partition boundaries, write them down and start fdisk using fdisk /dev/sda. This shows you a message about your disk's size, ignore that and type n to start the interface to create a new partition. Next, type p to create the first primary partition. It asks what partition number you want to assign, type 1.

4. Next comes the important part: you have to specify where the partition originally started and ended. To find this information, you need the C/H/S line in the gpart output for this partition. Consider the line below:


chs: (0/1/1)-(992/254/61)d (0/1/1)-(992/254/61)r

In this line, the first number between brackets indicates the original starting cylinder, which in this example is cylinder 0. The second series of numbers between brackets tells you where the partition originally ended, in this case that is on cylinder 992. There is one catch though: in fdisk the first cylinder is cylinder 1. That means that all other cylinders as displayed with gpart need to be incremented with 1. So, you have to create a partition now that starts at cylinder 1 and ends on cylinder 993. Repeat steps 3 and 4 to recreate your other partitions as well and then close fdisk using the w command. Fdisk probably gives a message now that the new partition table can be used only after a reboot. The example below shows what has happened so far:

root@Knoppix:~# fdisk /dev/sda
The number of cylinders for this disk is set to 1044.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1044, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-1044, default 1044): 993
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (994-1044, default 994):
Using default value 994
Last cylinder or +size or +sizeM or +sizeK (994-1044, default 1044):
Using default value 1044
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with
error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.

5. Reboot your server to activate the changes.

You now have recovered your partitions. It may work, it may not. If it doesn't work, I recommend starting by recreating the first partition first. Try to mount it from the rescue CD and if that works, continue from there, recreating all other partitions you need. Once succeeded to reconstruct the root partition, read /etc/fstab because it gives you invaluable information about the original device names that you've used.

Tip! LVM, extended and swap partitions use another partition type. In fdisk, use l to get an overview of available partition types, and use t to change the type of a partition. Don't forget to reboot after changing your partition table.

So now you have learned how to get back your partitions if they were lost. The next part in this series will teach you how to fix problems with LVM logical volumes.

Wednesday, July 22, 2009

WinXP keeps rebooting at reboot

1. Boot to your Xp cd
2. Follow the same steps you would use to install Xp.
3. When you get the "Select partition to install Xp on" message, select the partition that Xp is already on and click OK.
4. You will then be presented with a message along the lines of "Xp already detected on this partition, would you like to repair?" click Yes or Ok to continue.
5. That will write a brand spanking new MBR, and fix any problems with system files also.

(courtesy: http://www.computing.net/answers/windows-xp/winxp-keeps-rebooting-at-splash-scr/75642.html)