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*






-- 
┌─────────────────────────┐
│    Narendra Sisodiya
│    http://narendrasisodiya.com
└─────────────────────────┘

-- 
l...@iitd - http://tinyurl.com/ycueutm

Reply via email to