Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Monday, April 26, 2010

Deleted Linux partition! How to get back into Windows?


Recently one of my computers' Linux partition was deleted by mistake. As the Linux partition held the multi-boot information, it made the computer stuck at grub prompt with no way of knowing where to load the OS images from. I think that is known as grub stage 2. I was able to find grub commands and successfully booted into Windows XP. So, if Linux partition of your multi-boot system is inadvertently deleted and you are stuck at grub prompt without access to Windows cd, then try this list of commands at grub prompt
grub>

grub> root(hd0, 0)
grub>makeactive
grub>chainloader +1
grub>boot

Note the first command " root(hd0, x) "here x could be a different number on your system...mine worked for 0.
This booted the Windows XP on the computer. But each time the computer is restarted after this, it's stuck at grub prompt and you have to follow the same list of commands. Another search and I found and installed a very nice utility called "mbrfix". Booted Windows and ran the utility; it created the master boot record (MBR) for Windows and fixed the problem and I could reboot without any problem.

Alternatively, I have read that if you have access to Windows cd, booting from it and running command "fixmbr" also does the trick.




Sunday, June 10, 2007

Links and symlinks - Unix and Windows

Hard links in Unix are files that have different names and can possibly different directories, but they have same inode i.e. the file is stored at any one place in the hard disk. All the hard links to any file point to that location. One can delete a hard link but it won't delete the file if there is any other link to it.

Symbolic links or symlinks on the other hand are small file that contain the pointer to another file. They are different from the actual file they are pointing to. So deleting a symbolic link won't delete the actual file. The implementation of symbolic links in Unix is transparent to the user. If a user opens and edits a symbolic link, he actually is editing the file the symbolic link points to. The symbolic link remains just a pointer to the actual file.

While Windows have shortcuts that are nearest thing to symbolic links, if someone edits a shortcut file, it actually gets changed and so it is not as transparent to the user as Unix. I read somewhere that Windows Vista has introduced transparent symbolic links similar to Unix.

Sunday, December 10, 2006

Best Operating System for geeks?

Most wannabe geeks would say Linux, though it is just a kernel and not an OS. Some would answer Ubuntu or Gentoo depending on which is the 'in thing'. A few people would perhaps say MacOS X is the best. Windows, of course, is not the one geeks want to be associated with.

One more OS is making waves in the academia and business world and with serious geeks for the last yr or so, after it was open sourced. For all the right reasons. That is the grand daddy of all, the most popular Unix - Solaris OS. No other operating system, not even Linux can claim to have as much geeky meat as Solaris. Some of the mouth watering stuff in Solaris 10, especially for geeks include:

Zones - software virtualization feature which has no match in any other OS. I can't remember which technology in any other OS comes even close. BSD jails, perhaps.

ZFS - the ultra modern file system, again with no match. The only thing that comes close is VxFS but ZFS is free with source code in the open.

DTrace - again no match anywhere. The capability to look into each and every place into the kernel and other parts in a running system using DTrace is unparalleled. It has been winning accolades all over. SystemTap for Linux is still not complete and its design makes it unlikely to be able to compete with DTrace in the future.

BrandZ - It gives you the capability to run Linux apps on top of Solaris. For example, you can run a version of Linux like CentOS right inside a Solaris Zone. Say you want to play Quake or use Google Earth which don't have Solaris apps; just create a Zone in Solaris, install your Linux in the zone and play away with the apps which are available in Linux. How more geeky can one get!

Of course, serious business won't play games. For them there are other more serious features like:
Fault Management Architecture (FMA), Service Management Framework(SMF), etc.

Linux is a good Operating System and has the advantage of having more drivers. But in almost everything else, Solaris scores higher. Now that it is open sourced it should get people interested in creating drivers. The community and codebase of Solaris is called OpenSolaris. Looking at the number of posts and projects there, it really looks like a dynamic and vibrant group of geeks.

Steps to install PyTorch on VMware workstation (Ubuntu guest)

  The following is the list of steps to install pytorch 2.0 in VMware workstation (Ubuntu guest): $ mkdir ~/pytorch $ mkdir ~/pytorch/as...