4sysops - Expand Resize virtual Hyper-V disk VHD
Shared via AddThis
Just a place for me to put down some thoughts or things I may want to recall later.
Tuesday, September 8, 2009
Thursday, June 18, 2009
How to remove a GPT Partition
I bought a USB hard drive and it was formatted for apple with the GPT partion. My windows XP machine recognized the hard drive, but not the partition. I had to format the drive, but was unable to through the Disk management console or in the usual way.
Here is what you will need to do:
type the following command at the command prompt.
1. cmd
2. diskpart
3. list disk
4. select disk x (choose the disk you want to format)
5. clean
6. exit
You are now ready to format the disk in windows.
Here is what you will need to do:
type the following command at the command prompt.
1. cmd
2. diskpart
3. list disk
4. select disk x (choose the disk you want to format)
5. clean
6. exit
You are now ready to format the disk in windows.
Thursday, June 11, 2009
How to change the IP Address in SCO Unix
cd to /var/spool/lp/admins/lp/interfaces
vi the printer that you want to change the IP Address.
Look for the line: PERIPH=xxx.xxx.xxx.xxx (example PERIPH=192.168.1.24)
Change the IP Address to whatever you want.
****If your printer was on a HP JetDirect then check to make sure the PORTNO=9100****
After you make the change, then save the file.
disable the printer with this command:
disable printername
Then enable the printer with this command
enable printername
You should be able to print to the printer with the new IP Address.
vi the printer that you want to change the IP Address.
Look for the line: PERIPH=xxx.xxx.xxx.xxx (example PERIPH=192.168.1.24)
Change the IP Address to whatever you want.
****If your printer was on a HP JetDirect then check to make sure the PORTNO=9100****
After you make the change, then save the file.
disable the printer with this command:
disable printername
Then enable the printer with this command
enable printername
You should be able to print to the printer with the new IP Address.
Wednesday, June 10, 2009
Log interactive session in MySQL
There are two ways to start recording your interactive session in MySql.
1. From the Command line:
(I'm only typing the command "mysql" and will assume that your username and password is saved in your home directory in ".my.cnf" file.
mysql --tee=filename database
ex: myssql --tee=tmp.txt dl4demo09
2. From within Mysql:
mysql> \T output.file
Logging to file 'output.file'
1. From the Command line:
(I'm only typing the command "mysql" and will assume that your username and password is saved in your home directory in ".my.cnf" file.
mysql --tee=filename database
ex: myssql --tee=tmp.txt dl4demo09
2. From within Mysql:
mysql> \T output.file
Logging to file 'output.file'