Wednesday, February 27, 2008

Mounting ISO's

mounting ISO is like having a virtual drive in linux ^_^

if you have and ISO file(a CD image which have ISO extension) and want to mount it to your hard drive.

do the following:
1. go to your terminal
2. type "su"
---su stands for Super User
---(note: you must have/know the password for root)
3. type the command "mount -o loop filename.iso /directory"
---the "filename.iso is the file which contains the image file and the "directory" is the destination where you will put the content of the image file

thats it. ^_^

Enjoy Mounting!!!!
myLot User Profile

Sunday, February 24, 2008

Tips & Tricks: re-installing MBR on a dual boots

if you happen to have both Windows and Linux or dual boot on a single pc (which is cool ^_^) and have problem with windows (for example a file has been corrupt, malware or virus infection) and you happen to reinstall the windows.

what happen is that the MBR was also re-written. So, what you'll do to make dual boot possible again rather reinstalling linux in the system (which is no trouble at all since installing linux is faster than windows)is just follow this quick steps ^_^

1. boot with linux cd (usually called LIve CD)
2. login as root (usually the username and password for Live CD is "root" and "root")
3. got to the terminal
4. type "mount /dev/hda1 /mnt/hda1" (without the quote ^_^)
this command mount (hda1) which is a partition of your hardrive to directory "mnt/hda1"
5. type "chroot /mnt/hda1 /bin/bash"
this commands relocate the /bin/bash directory to the hda1 rather than to the Live CD
6. type "grub-install /dev/hda"
this command re-install GRUB to the hda partition


replace the drive letter(hda,hdb,hdc depends how many drives you have) as per your installation.
if you have more than one partition mount all of them ie \ home usr etc. etc.
then it should work ok.

hope his helps ^_^