Go back
Happy...

Happy...

General

Vote Up
Vote Down

Originally posted by IM4Y2NV
Just got back from the lawyers and in my case, the truth will bring some money.

Life is grand or at least that is what it is worth to me now.

Hope all is well. Glad to see everyone is out living.


🙂
Living the dream, IM. Living the dream

Vote Up
Vote Down

Originally posted by IM4Y2NV
Just got back from the lawyers and in my case, the truth will bring some money.

Life is grand or at least that is what it is worth to me now.

Hope all is well. Glad to see everyone is out living.


🙂
good morning all 🙄🙄

IM write a book and get a movie deal, only in America! second thoughts Oz may not be far behind 🙁

Vote Up
Vote Down

There are times when you inadvertently overwrite your Master Boot Record. The end result being that you are unable to boot into Linux. This is especially true when you are dual booting between windows and Linux OSes. Once when I was working in Windows XP, I accidentally clicked the hibernate button instead of shutdown. And windows somehow overwrote my MBR which housed the GRUB boot loader. At such times, it pays to have this cool tip at hand.

This is what you do to restore the GRUB boot loader when faced with the above problem. First you need a Linux distribution CD. If you are using Fedora (RedHat) then the first CD is sufficient. But you may also use any of the live CDs like Knoppix, Ubuntu Live CD and so on.

With Fedora CD
Boot your computer with the first CD of Fedora in your CD drive (You have to enable your PC to boot from the cdrom, which you can set in the BIOS settings). At the installation boot prompt that you get, enter the following command:

boot: linux rescue

...and press Enter. The installer will ask you a few questions like the language you would like to use, the type of keyboard etc. Then, if you have linux previously installed on your machine, the Fedora installer will automatically detect it and mount it in the /mnt/sysimage directory. Once the linux partition is mounted, you are dropped into the command shell prompt. The next step is to make your newly mounted directory the root (or parent) directory. This you do by running the chroot command as follows:

# chroot /mnt/sysimage
# _

Now you are in the shell with respect to the parent directory which is the linux partition on your harddisk.

From here, the steps needed depends on which bootloader you are using. You have to have a fair idea what is the device node of your harddisk partition housing your MBR. In most cases, it is /dev/hda if you have an IDE harddisk. But if you have a SCSI harddisk, it will be /dev/sda.

Restoring GRUB

Execute the following command :
# grub-install /dev/hda

... to install GRUB boot loader on to your MBR. And then type exit to reboot the machine. Now your GRUB boot loader is fixed.

Restoring LILO
LILO stands for LInux LOader which was the boot loader used before GRUB was developed. It is fairly cryptic and is the default bootloader prior to and in RedHat 7.0.

Here you just type the command :
# /sbin/lilo

... to install the bootloader on to the MBR.

If you don't have a Fedora CD, then you need not despair. You can also repair the boot loader using one of the numerous live CDs available.

Using Knoppix CD to repair the boot loader
Here you have to boot into knoppix (either GUI mode or text mode). Once you are logged in, fire up a terminal (in GUI mode) and type the following commands:

$ su -
# fdisk -l

This will list your hard disk partition information. From the listing, you can know in which partition you have linux installed. Now you have to mount the partition which contains the linux filesystem. For the sake of this discussion, let us assume it is /dev/hda3 .

# mount -t ext3 -o rw /dev/hda3 /mnt
#_

Now your linux partition is mounted at /mnt . Next you have to use the chroot command as follows:

# chroot /mnt
#_

The rest of the steps are the same as listed above for Restoring GRUB and LILO boot loaders.

Vote Up
Vote Down

Originally posted by chrissyb
good morning all 🙄🙄

IM write a book and get a movie deal, only in America! second thoughts Oz may not be far behind 🙁
Hey Chrissy!

Vote Up
Vote Down

Originally posted by rbmorris
There are times when you inadvertently overwrite your Master Boot Record. The end result being that you are unable to boot into Linux. This is especially true when you are dual booting between windows and Linux OSes. Once when I was working in Windows XP, I accidentally clicked the hibernate button instead of shutdown. And windows somehow overwrote my MBR w ...[text shortened]...

The rest of the steps are the same as listed above for Restoring GRUB and LILO boot loaders.
But how can you mend a broken heart?

1 edit
Vote Up
Vote Down

Originally posted by Ice Cold
But how can you mend a broken heart?
1200 times happier than when my good friend IM first started.

Hey Ice Man.

2 edits
Vote Up
Vote Down

Originally posted by Red Night
Ain't life grand
It sure is my friend. It sure is.

Vote Up
Vote Down

Originally posted by rbmorris
There are times when you inadvertently overwrite your Master Boot Record. The end result being that you are unable to boot into Linux. This is especially true when you are dual booting between windows and Linux OSes. Once when I was working in Windows XP, I accidentally clicked the hibernate button instead of shutdown. And windows somehow overwrote my MBR w ...[text shortened]...

The rest of the steps are the same as listed above for Restoring GRUB and LILO boot loaders.
whenever I use su without su root... It tells me I do not have root privileges. how do I fix that 🙂

Vote Up
Vote Down

Originally posted by Red Night
It sure is my friend. It sure is.
you're talking to yourself?! 😕

Vote Up
Vote Down

Originally posted by wucky3
you're talking to yourself?! 😕
Sure. Why not?

Vote Up
Vote Down

Originally posted by Red Night
Sure. Why not?
Just don't start fighting with yourself again. 🙂

Vote Up
Vote Down

The ISO paper size concept

In the ISO paper size system, the height-to-width ratio of all pages is the square root of two (1.4142 : 1). In other words, the width and the height of a page relate to each other like the side and the diagonal of a square. This aspect ratio is especially convenient for a paper size. If you put two such pages next to each other, or equivalently cut one parallel to its shorter side into two equal pieces, then the resulting page will have again the same width/height ratio.

The ISO paper sizes are based on the metric system. The square-root-of-two ratio does not permit both the height and width of the pages to be nicely rounded metric lengths. Therefore, the area of the pages has been defined to have round metric values. As paper is usually specified in g/m², this simplifies calculation of the mass of a document if the format and number of pages are known.

ISO 216 defines the A series of paper sizes based on these simple principles:

The height divided by the width of all formats is the square root of two (1.4142).

Format A0 has an area of one square meter.

Format A1 is A0 cut into two equal pieces. In other words, the height of A1 is the width of A0 and the width of A1 is half the height of A0.

All smaller A series formats are defined in the same way. If you cut format An parallel to its shorter side into two equal pieces of paper, these will have format A(n+1).

The standardized height and width of the paper formats is a rounded number of millimeters.

For applications where the ISO A series does not provide an adequate format, the B series has been introduced to cover a wider range of paper sizes. The C series of formats has been defined for envelopes.

The width and height of a Bn format are the geometric mean between those of the An and the next larger A(n−1) format. For instance, B1 is the geometric mean between A1 and A0, that means the same magnification factor that scales A1 to B1 also scales B1 to A0.
Similarly, the formats of the C series are the geometric mean between the A and B series formats with the same number. For example, an (unfolded) A4 size letter fits nicely into a C4 envelope, which in turn fits as nicely into a B4 envelope. If you fold this letter once to A5 format, then it will fit nicely into a C5 envelope.
B and C formats naturally are also square-root-of-two formats.
Note: The geometric mean of two numbers x and y is the square root of their product, (xy)1/2, whereas their arithmetic mean is half their sum, (x+y)/2. For example, the geometric mean of the numbers 2 and 8 is 4 (because 4/2 = 8/4), whereas their arithmetic mean is 5 (because 5−2 = 8−5). The arithmetic mean is half-way between two numbers by addition, whereas the geometric mean is half-way between two numbers by multiplication.

By the way: The Japanese JIS P 0138-61 standard defines the same A series as ISO 216, but a slightly different B series of paper sizes, sometimes called the JIS B or JB series. JIS B0 has an area of 1.5 m², such that the area of JIS B pages is the arithmetic mean of the area of the A series pages with the same and the next higher number, and not as in the ISO B series the geometric mean. For example, JB3 is 364 × 515, JB4 is 257 × 364, and JB5 is 182 × 257 mm. Using the JIS B series should be avoided. It introduces additional magnification factors and is not an international standard.

1 edit
Vote Up
Vote Down

Originally posted by Ice Cold
Just don't start fighting with yourself again. 🙂
I love it when I start fighting with myself.

Vote Up
Vote Down

Originally posted by Red Night
I love it when I start fighting with myself.
That was funny (IMO)

Vote Up
Vote Down

Originally posted by Ice Cold
That was funny (IMO)
Who you calling funny?