Sponsored Content
Operating Systems Linux Ubuntu How to install grub on an Empty HDD? Post 302434802 by aarsh on Monday 5th of July 2010 07:34:37 AM
Old 07-05-2010
thanks.
all that i've tried is as followings ...

I don't know how to get the name like /dev/sda or /dev/sda1 for my pendrive labeled "LOCALDISK".

so i tried as a root user
Code:
mount -t /media/LOCALDISK                     # just to be safe
grub-setup /dev/sda
grub-install /dev/sda

should i try ?
Code:
# grub-install --root-directory=/boot /dev/sda

Code:
root@aarsh-desktop:/# grub-install --root-directory=/boot /dev/sda
[and the ouput of the above command was...]
Installation finished. No error reported.
This is the contents of the device map /boot/boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0)	/dev/fd0
(hd0)	/dev/sda
(hd1)	/dev/sdg

Additionally,
I put the Linux kernel (.tar.gz) into my pen drive. And choose extract here from right click menu.
and then deleted the compressed .tar.gz Linux.

So that's it I've done so far..

And it resulted into an instable system,
just showing me grub menu each time I boot, no matter the pen-drive is plugged or not.

so i wanna send you a snap shot of that, so how can i do that ?

Last edited by Scott; 07-05-2010 at 08:50 AM.. Reason: Code tags, please...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

grub problem- keeps rebooting as soon as it tries to do grub

Hi, I installed solaris 10 a few weeks ago. It was working fine during the past two weeks. However, now when I start to load to the drive, I get this problem: The BIOS screen comes up like normal, then screen goes blank and a message "Grub loading stage 2" flashes real quick then the computer... (1 Reply)
Discussion started by: moesays
1 Replies

2. Linux

HDD not recognised while trying to install Linux enterprise on HP laptop

Hi, Can anyone give me the clue to my problem which is hdd not recognised when l tried to install linux enterprise edition on my laptop HP compaq nc6320 centrino. thanxs (6 Replies)
Discussion started by: kayode
6 Replies

3. UNIX for Dummies Questions & Answers

Old HDD copy to new HDD ? im lost...

Over the last few months the HDD spins louder and louder, so I fiqured its time to replace the HDD. Its been running 24/7/365 since 98 :eek:. yes i said since 98 :D I have an IBM system 43P Model 240. 233 MHz. running AIX Version 4. The current HDD is an IBM DGHS COMP IEC -950 FRU PN#... (5 Replies)
Discussion started by: Chevy89rocks
5 Replies

4. SCO

Install GRUB on SCO Unixware 7.1.1

Hi, I am trying to install the linux boot loader (GRUB) on a non-linux machine (Unixware 7.1.1). The thing is I want to boot the linux kernel (vmlinuz) and the linux ram disk (initrd.img) from unixware and boot the machine with it. Does anyone have a good way to do this? (10 Replies)
Discussion started by: teen_racer19
10 Replies

5. Ubuntu

Lucid AMD 64 install on USB HDD reboots frequently

Hi all, I am using Ubuntu lucid. It is installed on external USB HDD and I boot into it. Besides other issues, the most significant one is as follows.. I boot in and start working. Everything goes on fine. As soon as I move the HDD, change its position, etc, all icons tuns into a red... (1 Reply)
Discussion started by: morningSunshine
1 Replies

6. Boot Loaders

How to install grub on USB flash drive?

I wanna install grub on my flash drive for rescue usage. My computer installs winxp, and I have fedora12 installed in vmware. I did like this: step1: format the flash drive as FAT in winXP. step2: in fedora12, mount the flash drive on /media/flash step3: excute the command: grub-install... (10 Replies)
Discussion started by: vistastar
10 Replies

7. Red Hat

Can we specify which grub.conf to use in grub-install.

Hi, Can we specify which grub.conf to use while installing grub on RHEL. We are working on application which requires different grub configurations needed, depending on certain criteria we need to update grub with correct grub.conf. Can we use grub-install for this purpose? (4 Replies)
Discussion started by: successlin
4 Replies

8. Solaris

Install ssd hdd on Solaris 5.8

Hi, I want to install an SSD on my hdd ULTRA SPARK 10 with solaris 5.8. I can not format it because to complete the operation is necessary to enter the number of sectors and cylinders ... I also tried to make a copy disk2disk but goes wrong ... someone has an idea? Has anyone ever done such a... (0 Replies)
Discussion started by: stirux
0 Replies

9. AIX

IBM AIX Internal HDD vs SAN HDD and Oracle

Hi Folks, I am facing an issue with the performance. P4 with 1 processor and 16 GB RAM and SAN HDD = Oracle report takes 25 minutes P5 with 2 processors and 16 GB RAM internall HDD with LPAR = Oracle Report takes 1 hour 15 minutes ( please note I have assigned all the max processors and... (7 Replies)
Discussion started by: filosophizer
7 Replies

10. Debian

Cannot install GRUB

Hello, I cannot install grub to my ESP it seems. I have a PC with both Windows 8.1 and Debian installed and I can only boot into Windows since GRUB is not installed on my PC. I am using a Ubuntu Live USB to install GRUB on /dev/sda1 (my ESP). I am using the following commands from Ubuntu... (12 Replies)
Discussion started by: sreyan32
12 Replies
GRUB-INSTALL(8) 							FSF							   GRUB-INSTALL(8)

NAME
grub-install - install GRUB on your drive SYNOPSIS
grub-install [OPTION] install_device DESCRIPTION
Install GRUB on your drive. -h, --help print this message and exit -v, --version print the version information and exit --root-directory=DIR install GRUB images under the directory DIR instead of the root directory --grub-shell=FILE use FILE as the grub shell --no-floppy do not probe any floppy drive --force-lba force GRUB to use LBA mode even for a buggy BIOS --recheck probe a device map even if it already exists INSTALL_DEVICE can be a GRUB device name or a system device filename. grub-install copies GRUB images into the DIR/boot directory specfied by --root-directory, and uses the grub shell to install grub into the boot sector. The grub source distribution carries this script to ease the installation of grub as a boot loader. In Suse Linux however, grub installa- tion is much better handled by Yast; use of this script is generally discouraged and therefore unsupported. Consequently, the script has been renamed to grub-install.unsupported. In order to (re-)install grub for the currently running system, simply use Yast. For an installation aiming at a differing system, the crafting of an appropriate device.map and grub shell script is strongly advised, e.g. "grub --batch --device-map=target-device.map < tar- get-grub.conf" SEE ALSO
The full documentation for grub-install is maintained as a Texinfo manual. If the info and grub-install programs are properly installed at your site, the command info grub-install should give you access to the complete manual. grub-install (GNU GRUB 0.97) May 2005 GRUB-INSTALL(8)
All times are GMT -4. The time now is 02:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy