Yesterday and early today morning, I have to clean up one of my current personal working laptop to give it away to my dad. I was having both vista and ubuntu linux on it, and i work mostly in the ubuntu partition. First, I backed up all my data in both windows and linux to my book. To prepare the laptop, I have deleted the linux partition, swap partition and merge the unallocated space to windows partition before I run the Gateway provided restore to manufacturer program. WHen i restart the computer, i got GRUB loading error 22... stuck...googling around...
... and come to this final answer for a quick solution
- find a copy of my windows vista cd and boot from it, choose repair to fix boot problem
-.. still not working after reboot, try again..and in the command line windows...type the following command: Bootrec.exe /FixMbr and see response:"operation completed successfully."
- reboot..windows start fine..and resetting your computer follow the screen
that's it
links:
http://episteme.arstechnica.com/eve/forums/a/tpc/f/96509133/m/254009228831
http://ubuntuforums.org/showthread.php?t=224351
http://forums.techguy.org/unix-linux/480163-restore-windows-xp-mbr.html
sharing knowledge on open source software development, data mining and analysis, BI, virtualization and system administration
Thursday, June 4, 2009
Friday, April 10, 2009
moving file code
private static void moveFile(String a_FileName, String a_LocalPath) throws Exception
{
/** Move the file to an archive or delete it **/
/** The standard rivermine Util for this crashes and burns b/c this particular file has no . **/
/** Make new file out current file **/
File file = new File(a_FileName);
/** Make new file out desired directory **/
File dir = new File(a_LocalPath + File.separator + "archive" + File.separator);
dir.mkdir(); // have to call this to instantiate the folder if not exists
// otherwise, renameTo() below will NOT work.
/** Move the actual file to the directory **/
boolean success = file.renameTo(new File(dir, file.getName()));
if (success)
{
s_log.info("File Archived Succesfully to - " + dir.toString() + File.separator
+ file.getName());
}
else
{
s_log.info("File Not Archived Succesfully - please move it to - " + dir.toString());
}
}
{
/** Move the file to an archive or delete it **/
/** The standard rivermine Util for this crashes and burns b/c this particular file has no . **/
/** Make new file out current file **/
File file = new File(a_FileName);
/** Make new file out desired directory **/
File dir = new File(a_LocalPath + File.separator + "archive" + File.separator);
dir.mkdir(); // have to call this to instantiate the folder if not exists
// otherwise, renameTo() below will NOT work.
/** Move the actual file to the directory **/
boolean success = file.renameTo(new File(dir, file.getName()));
if (success)
{
s_log.info("File Archived Succesfully to - " + dir.toString() + File.separator
+ file.getName());
}
else
{
s_log.info("File Not Archived Succesfully - please move it to - " + dir.toString());
}
}
Friday, January 2, 2009
File Sharing between Windows computer
Vista computers:
http://technet.microsoft.com/en-us/library/bb727037.aspx
XPs:
http://compnetworking.about.com/od/windowsxpnetworking/ht/sharewinxpfiles.htm
http://technet.microsoft.com/en-us/library/bb727037.aspx
XPs:
http://compnetworking.about.com/od/windowsxpnetworking/ht/sharewinxpfiles.htm
How to fake a drive by using folders
from:
http://www.chami.com/tips/windows/010197W.html
Creating logical drives on the fly
For example, to create an alias called D for your C drive, run following command from the "Command Prompt" (or the "DOS Prompt"):
SUBST D: C:\
To create a logical drive called E, that points to your C:\WORK directory:
SUBST E: C:\WORK
To delete the aliases or logical drives that you create using SUBST command, run SUBST with the drive name to delete and the parameter "/D"
SUBST D: /D
SUBST E: /D
Monday, October 13, 2008
How-tos configure Ubuntu Server 8.04
my resource = old p3 dell ... got it for $20
------------
enable file sharing in Ubuntu is easy:
-server setup: System -> Remote Desktop
-client: Applications->Internet->Terminal Server Client
problem:
-some client does not have proper c++ lib to run. Tricky to find the right lib to install.
-> google and success with the following cmd:
sudo apt-get install libstdc++2.10-glibc2.2
credit =
http://ubuntuforums.org/archive/index.php/t-201831.html
-------
install open ssh so easy with
sudo apt-get install ssh
credit =
http://www.howtogeek.com/howto/ubuntu/setup-openssh-server-on-ubuntu-linux/
-------
install svn server easily with:
sudo apt-get install svnserver
(instr from svn homepage)
other resources:
https://help.ubuntu.com/8.04/serverguide/C/subversion.html
**** Awesome Server guide from Ubuntu at:
https://help.ubuntu.com/8.04/serverguide/C/
---------
Document on apache2
https://help.ubuntu.com/8.04/serverguide/C/httpd.html
---------
Instruction on installing LAMP
https://help.ubuntu.com/community/ApacheMySQLPHP#To%20install%20the%20default%20LAMP%20stack%20in%20Ubuntu%207.04%20(Feisty%20Fawn)%20Ubuntu%207.10%20(Gutsy%20Gibbon)%20and%20Ubuntu%208.04%20LTS%20(Hardy%20Heron)
------
interesting read on how to avoid add page in Verizon
http://domnit.org/verizon/
-> from here...I know about port fowarding...
---
learn from ozcaz about noip.org and set up and account there...
---
------------
enable file sharing in Ubuntu is easy:
-server setup: System -> Remote Desktop
-client: Applications->Internet->Terminal Server Client
problem:
-some client does not have proper c++ lib to run. Tricky to find the right lib to install.
-> google and success with the following cmd:
sudo apt-get install libstdc++2.10-glibc2.2
credit =
http://ubuntuforums.org/archive/index.php/t-201831.html
-------
install open ssh so easy with
sudo apt-get install ssh
credit =
http://www.howtogeek.com/howto/ubuntu/setup-openssh-server-on-ubuntu-linux/
-------
install svn server easily with:
sudo apt-get install svnserver
(instr from svn homepage)
other resources:
https://help.ubuntu.com/8.04/serverguide/C/subversion.html
**** Awesome Server guide from Ubuntu at:
https://help.ubuntu.com/8.04/serverguide/C/
---------
Document on apache2
https://help.ubuntu.com/8.04/serverguide/C/httpd.html
---------
Instruction on installing LAMP
https://help.ubuntu.com/community/ApacheMySQLPHP#To%20install%20the%20default%20LAMP%20stack%20in%20Ubuntu%207.04%20(Feisty%20Fawn)%20Ubuntu%207.10%20(Gutsy%20Gibbon)%20and%20Ubuntu%208.04%20LTS%20(Hardy%20Heron)
------
interesting read on how to avoid add page in Verizon
http://domnit.org/verizon/
-> from here...I know about port fowarding...
---
learn from ozcaz about noip.org and set up and account there...
---
Saturday, October 11, 2008
setting up my new Ubuntu server on Dell PowerEdge2400
/dev/sda1 = 4046 mb unknown
/dev/sda5 swap = 246 mb = partition 5 = swap partition
/dev/sda5 swap = 246 mb = partition 5 = swap partition
Saturday, September 20, 2008
installing virtualbox2.0 on Ubuntu 7.10
installation warning:
Users of VirtualBox must be member of that group in order to have write permissions to /dev/vboxdrv. Otherwise starting of VMs will not be possible.
add myself to list of user for virtualbox
sudo usermod -G vboxuser -aquan
ready to install new machine now
Users of VirtualBox must be member of that group in order to have write permissions to /dev/vboxdrv. Otherwise starting of VMs will not be possible.
add myself to list of user for virtualbox
sudo usermod -G vboxuser -aquan
ready to install new machine now
Subscribe to:
Posts (Atom)