Grub4dos is mainly a boot manager which can be installed in a pen drive or portable hard disk to use as a parallel grub if ur on board grub is down.this can be also used to install certain linux os directly from the iso in the hard disk.This mainly work for ubuntu linux mint and puppy iso's.tthe grub can be also used to log in to the xp and windows 7 if the bootloader is lost.
first we need to install the grub4dos into the pendrive.get the grub4dos from following link
http://dl.dropbox.com/u/30579529/grubinst-1.1-bin-w32-2008-01-01.zip
and unzip to get grubinst_gui.exe and run it..
Once the program is started, select the Disk option, then click the Disk Refresh button and then select your flashdrive from the dropdown box
You should be able to tell which disk is your flashdrive by the size shown for each drive.
Now click the Part List Refresh button, then the dropdown box and finally select the Whole disk (MBR) option.
Check the Don't search floppy option, leave all the other options unchecked and cleared and then click the Install button to install Grub4DOS to the MBR of the flashdrive.
and grub is installed .....
now copy the grldr and menu.lst files from the downloaded and put it in the hard disk
edit the menu.lst to boot iso...'
my menu is as below i put my iso's in a folder named ISO in the drive and each iso has its own corresponding folders
color blue/green yellow/red white/magenta white/magenta
timeout 30
default /default
title Fedora 15 LiveCD - extracted
root (hd0,0)
kernel /ISO/fedora/vmlinuz0 rootfs=auto root=UUID= liveimg live_dir=/LiveCD/LiveOS/ ro quiet rhgb
initrd /ISO/fedora/initrd0.img
title Fedora 14 Live CD
root (hd0,0)
kernel (hd0,0)/vmlinuz0 linux askmethod
initrd (hd0,0)/initrd.img
boot
title FIND AND BOOT NT/2K/XP
fallback 1
find --set-root --ignore-floppies /ntldr
chainloader /ntldr
savedefault --wait=2
title FIND AND BOOT BOOTMGR of Windows VISTA/7
fallback 2
find --set-root --ignore-floppies /bootmgr
chainloader /bootmgr
savedefault --wait=2
title find and boot RedHat/Centos/Fedora Linux with menu.lst already installed
fallback 5
find --set-root /grub/menu.lst
savedefault --wait=2
configfile /grub/menu.lst
title Puppy Linux
find --set-root --ignore-floppies /ISO/puppy/initrd.gz
kernel /ISO/puppy/vmlinuz pmedia=usbflash psubdir=ISO/puppy
initrd /ISO/puppy/initrd.gz
title Linux Mint 12
find --set-root --ignore-floppies /ISO/mint/initrd.lz
kernel /ISO/mint/vmlinuz iso-scan/filename=/ISO/mint/linuxmint-12.iso file=/cdrom/preseed/mint.seed boot=casper noprompt
initrd /ISO/mint/initrd.lz
title Ubuntu 11
find --set-root --ignore-floppies /ISO/ubuntu/initrd.lz
kernel /ISO/ubuntu/vmlinuz iso-scan/filename=/ISO/ubuntu/ubuntu-11.iso file=/cdrom/preseed/ubuntu.seed boot=casper noprompt
initrd /ISO/ubuntu/initrd.lz
title commandline
commandline
title reboot
reboot
title Shutdown
halt
for windows 7 just unzip the iso into the root directory of the drive and use the code above
for ubuntu and linux mint we must unzip the files for vmlinux and initrd and put in same folder as in ISO
For fedora first we need to extract the LiveOS folder to the root of our pendrive and also extract vmlinuz and initrd.img to the LiveOS folder form isolinux folder and the following to the menu.lst
title Fedora default
find --set-root /LiveOS/vmlinuz0
kernel /LiveOS/vmlinuz0 root=live:CDLABEL=BOOT rootfstype=auto ro liveimg quiet rhgb rd.luks=0 rd.md=0 rd.dm=0
initrd /LiveOS/initrd0.img
here in the code CDLABEL =BOOT ,BOOT must be your usb name given to usb
for Redhat first we need to copy the image folder into the root folder and give the code as below as per your path to vmlinuz and initrd.img
title RedHat6.2 default
find --set-root /ISO/redhat6.2/isolinux/vmlinuz
kernel /ISO/redhat6.2/isolinux/vmlinuz root=live:CDLABEL=BOOT rootfstype=auto ro liveimg quiet rhgb rd.luks=0 rd.md=0 rd.dm=0
initrd /ISO/redhat6.2/isolinux/initrd.img
and duirng installation select the iso form hard disk or pendrive where you have extracted the image folder
example for menu.lst https://dl.dropbox.com/u/30579529/menu.lst
Wednesday, December 21, 2011
Sunday, December 11, 2011
Remove Grub loader and get windows 7 boot loader back (uninstalling Linux)
1.Put the Windows 7 installation/Upgrade disc in the disc drive, and then start the computer (set to boot from CD in BIOS).
2. Press a key when you are prompted.
3. Select a language, a time, a currency, a keyboard or an input method, and then click Next.
4. Click Repair your computer.
5. Click the operating system that you want to repair (Windows 7 in this case), and then click Next.
6. In the System Recovery Options dialog box, click Command Prompt.
7. Once in the command prompt, type exactly Bootrec.exe /FixMbr and then press ENTER. You will see "operation completed successfully." (Doesnt even take a second. Dont be alarmed )
8. Reboot and set BIOS to boot from the HDD again.
GRUB will be overwritten in step 7 and Windows boot loader will once again take control of loading your OS(s).
// The /FixMbr option writes a Windows 7 or Windows Vista-compatible MBR to the system partition. This option does not overwrite the existing partition table. Use this option when you must resolve MBR corruption issues, or when you have to remove non-standard code from the MBR.
2. Press a key when you are prompted.
3. Select a language, a time, a currency, a keyboard or an input method, and then click Next.
4. Click Repair your computer.
5. Click the operating system that you want to repair (Windows 7 in this case), and then click Next.
6. In the System Recovery Options dialog box, click Command Prompt.
7. Once in the command prompt, type exactly Bootrec.exe /FixMbr and then press ENTER. You will see "operation completed successfully." (Doesnt even take a second. Dont be alarmed )
8. Reboot and set BIOS to boot from the HDD again.
GRUB will be overwritten in step 7 and Windows boot loader will once again take control of loading your OS(s).
Bootrec.exe /FixMbr
// The /FixMbr option writes a Windows 7 or Windows Vista-compatible MBR to the system partition. This option does not overwrite the existing partition table. Use this option when you must resolve MBR corruption issues, or when you have to remove non-standard code from the MBR.
Saturday, December 3, 2011
Bootable windows 7 on usb drive
Download windows 7 usb dvd tool from link given below
http://images2.store.microsoft.com/prod/clustera/framework/w7udt/1.0/en-us/Windows7-USB-DVD-tool.exe
Run it.
browse to the source of windows 7 iso image
click next and then specify the destination drive.
it’ll ask to format, just accept everything and then proceed.
Finally your windows 7 bootable usb pendrive will be ready.
yum-downloadonly
with this plugin we can save the packages for future install without internet
1.>>>>>>>>>yum install yum-downloadonly
2.>>>>>>>>>yum update httpd -y --downloadonly --downloaddir=/opt
here update can be changed to install…….httpd with needed package name…..opt with needed directory
later we can install downloaded rpm with
3.>>>>>>>>>rpm -ivUh *.rpm
1.>>>>>>>>>yum install yum-downloadonly
2.>>>>>>>>>yum update httpd -y --downloadonly --downloaddir=/opt
here update can be changed to install…….httpd with needed package name…..opt with needed directory
later we can install downloaded rpm with
3.>>>>>>>>>rpm -ivUh *.rpm
Friday, December 2, 2011
Enable Install Software Package from Fedora DVD/CD
List the file inside yum repo configuration directory... you can use the ll command as show on example below or replace the ll command with ls -l command.if needed first try "yum install repo"
To make Fedora DVD as installation source... we need to create DVD repo file and edit this file to make the Fedora DVD as the installation source. To make life little bit easier, just copy the existing yum configuration file fedora.repo and name the copied file as fedora-dvd.repo
Execute command below to open and edit the fedora-dvd.repo configuration file using gedit editor... edit the configuration file.. rename the repo as "[fedora-dvd]", and "name=Fedora-dvd" add PATH to the Fedora 11 DVD "baseurl=file:///media/Fedora%2011%20i386%20DVD/" and enable the Fedora DVD repo file "enabled=1 "see... working example below... and then remove unwanted line from the fedora-dvd.repo configuration file.
[fedora-dvd]
name=Fedora-dvd $releasever - $basearch
failovermethod=priority
baseurl=file:///media/Fedora%2011%20i386%20DVD/
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
....Save and exit the editor
**change the baseurl as per the dvd version u use**
To start to use Fedora installation DVD as installation source, execute yum command and temporary disable all other repo except Fedora DVD repo using the command that show on example below. Change the gcc part to the software that you want to install in your box
CREATE LOCAL YUM REPOSITORY
1) Copy all the RPMS from the DVD to a particular folder lets say /root/os/RPMS
2) Install createrepo RPM from /root/os/RPMS directory using rpm command
3) Now, we will have to create repo of the directory in which we have coied the RPMS. Following is the command to create the repo
Once the above command gets completed you will find repodata directory in /root/os/RPMS folder
4) configuing YUM to work with local repository. Create a new file in /etc/yum.repo.d/ or open /etc/yum.conf and paste following
1.>>>>>>>>>ll /etc/yum.repos.d/
To make Fedora DVD as installation source... we need to create DVD repo file and edit this file to make the Fedora DVD as the installation source. To make life little bit easier, just copy the existing yum configuration file fedora.repo and name the copied file as fedora-dvd.repo
2.>>>>>>>>>cp -pr /etc/yum.repos.d/fedora.repo /etc/yum.repos.d/fedora-dvd.repo
3.>>>>>>>>>ll /etc/yum.repos.d/
Execute command below to open and edit the fedora-dvd.repo configuration file using gedit editor... edit the configuration file.. rename the repo as "[fedora-dvd]", and "name=Fedora-dvd" add PATH to the Fedora 11 DVD "baseurl=file:///media/Fedora%2011%20i386%20DVD/" and enable the Fedora DVD repo file "enabled=1 "see... working example below... and then remove unwanted line from the fedora-dvd.repo configuration file.
4.>>>>>>>>>gedit /etc/yum.repos.d/fedora-dvd.repo &
[fedora-dvd]
name=Fedora-dvd $releasever - $basearch
failovermethod=priority
baseurl=file:///media/Fedora%2011%20i386%20DVD/
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
....Save and exit the editor
**change the baseurl as per the dvd version u use**
5.>>>>>>>>>yum clean all
To start to use Fedora installation DVD as installation source, execute yum command and temporary disable all other repo except Fedora DVD repo using the command that show on example below. Change the gcc part to the software that you want to install in your box
6.>>>>>>>>yum --disablerepo=\* --enablerepo=fedora-dvd install gcc*
CREATE LOCAL YUM REPOSITORY
1) Copy all the RPMS from the DVD to a particular folder lets say /root/os/RPMS
2) Install createrepo RPM from /root/os/RPMS directory using rpm command
3) Now, we will have to create repo of the directory in which we have coied the RPMS. Following is the command to create the repo
.........>createrepo /root/os/RPMS
Once the above command gets completed you will find repodata directory in /root/os/RPMS folder
4) configuing YUM to work with local repository. Create a new file in /etc/yum.repo.d/ or open /etc/yum.conf and paste following
[local repo]
name = OS $release - MyLocalRepo
baseurl = file:///root/os/RPMS/
enabled=1
gpgcheck=0
Now Try to install any package using YU
Fedora 15 Broadcom 4313 wireless
There is a problem exiting that the Fedora 15 Broadcom 4313 wireless is not working when getting to network manager and selecting the wireless.
Below r the steps given for solving the problem...
1.>>>>>>>>>>>>Yum install kernel-devel
Remove any broadcom/wlan drivers in use
2.>>>>>>>>>>>>rmmod b43/ssb/wl
Blacklist the following drivers
3.>>>>>>>>>>>>echo "blacklist ssb" >> /etc/modprobe.d/blacklist.conf
4.>>>>>>>>>>>>echo "blacklist ssb" >> /etc/modprobe.d/blacklist.conf
Download the Broadcom Drivers from here
http://dl.dropbox.com/u/30579529/Fedora%2015%20bcm4313/hybrid-portsrc_x86_64-v5_100_82_38.tar.gz
If your kernel version is > 2.6.37, you should download the following patch for compilation problem
http://dl.dropbox.com/u/30579529/Fedora%2015%20bcm4313/5_100_82_38.patch
If ur Kernel version is> 2.6.37 .Extract the Driver into a folder along with the patch and follow the steps from 5 below .else just make the driver and install the driver .follow the steps from no 6
5.>>>>>>>>>>>>>patch -p0 < 5_100_82_38.patch
6.>>>>>>>>>>>>>make
Load the driver with the followings
7.>>>>>>>>>>>>>modprobe lib80211 or ieee80211_crypt_tkip
8.>>>>>>>>>>>>>insmod wl_ko
Run the driver after boot process:load the driver
9.>>>>>>>>>>>>>cp wl.ko /lib/modules/'uname -r'/kernel/drivers/net/wireless
10.>>>>>>>>>>>>depmod -a
Reboot and enjoy wifi........
Below r the steps given for solving the problem...
1.>>>>>>>>>>>>Yum install kernel-devel
Remove any broadcom/wlan drivers in use
2.>>>>>>>>>>>>rmmod b43/ssb/wl
Blacklist the following drivers
3.>>>>>>>>>>>>echo "blacklist ssb" >> /etc/modprobe.d/blacklist.conf
4.>>>>>>>>>>>>echo "blacklist ssb" >> /etc/modprobe.d/blacklist.conf
Download the Broadcom Drivers from here
http://dl.dropbox.com/u/30579529/Fedora%2015%20bcm4313/hybrid-portsrc_x86_64-v5_100_82_38.tar.gz
If your kernel version is > 2.6.37, you should download the following patch for compilation problem
http://dl.dropbox.com/u/30579529/Fedora%2015%20bcm4313/5_100_82_38.patch
If ur Kernel version is> 2.6.37 .Extract the Driver into a folder along with the patch and follow the steps from 5 below .else just make the driver and install the driver .follow the steps from no 6
5.>>>>>>>>>>>>>patch -p0 < 5_100_82_38.patch
6.>>>>>>>>>>>>>make
Load the driver with the followings
7.>>>>>>>>>>>>>modprobe lib80211 or ieee80211_crypt_tkip
8.>>>>>>>>>>>>>insmod wl_ko
Run the driver after boot process:load the driver
9.>>>>>>>>>>>>>cp wl.ko /lib/modules/'uname -r'/kernel/drivers/net/wireless
10.>>>>>>>>>>>>depmod -a
Reboot and enjoy wifi........
Tuesday, September 6, 2011
Hello world!
This is When I started to Blog..:)
Subscribe to:
Posts (Atom)