On Sun, Oct 24, 2010 at 11:01 PM, Narendra Sisodiya < [email protected]> wrote:
> > > On Sun, Oct 24, 2010 at 10:58 PM, Narendra Sisodiya < > [email protected]> wrote: > >> >> >> On Sun, Oct 24, 2010 at 7:08 PM, Parveen Arora <[email protected]>wrote: >> >>> On Sun, Oct 24, 2010 at 7:02 PM, pahnin sd <[email protected]> wrote: >>> > On Sun, Oct 24, 2010 at 6:58 PM, Parveen Arora <[email protected]> >>> wrote: >>> >> On Sun, Oct 24, 2010 at 6:53 PM, pahnin sd <[email protected]> >>> wrote: >>> >> >>> >>> I made a shell script >>> >> >> Script is not fully automated,,, it need manual effort.. one can modify it >> and add something like auto-discovery of /dev/sdaXXX >> > > > *#!/bin/bash* > *sudo mkdir /media/ubuntu* > *<to be modify>* > *List all partition which is ext2 or ext3 or ext4 * > *Mount them one by one* > *check how many partition has /boot on them* > *partition(s) which has boot on them should be use as root directory* > *</to be modify>�* > * > * > *### sudo mount -t ext4 /dev/sda4 /media/ubuntu - this is not needed...* > *sudo grub-install –root-directory=/media/ubuntu/ /dev/sda* > There can be multiple harddisk /dev/sda etc in old system, Once I changed my harddisk location (on 2 PATA cabel each having 2 slots) then drive letter changed from sda to sdb etc grub on each root partition can be different.. -- l...@iitd - http://tinyurl.com/ycueutm
