LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   ? grub changes - why it does not work ? (https://www.linuxquestions.org/questions/linux-general-1/grub-changes-why-it-does-not-work-436054/)

ibex 04-17-2006 12:49 PM

? grub changes - why it does not work ?
 
I made a new ext3 partition where there was previously free space.
But before I actually created that partition (with Acronis CD)
and while still in my SUSE, I changed accordingly the /boot/menu.lst
and /etc/fstab and I run grub-install /dev/hda.
The last move was a stupid one I suppose because the new partition
did not exist yet. Then I created the partition and I found
that not only grub did not work but the command grub-install
did not exist anymore (command not found) and I got DESPERATE!
Luckily,
restoring the two files to their initial state and removing
the partition gave me access again to both OS.
But I wonder if there is any damage done and still
I have not manage to give more space to my LINUX system
(I need to increase "/ " or add a "/usr")

Could you please help me a little?

ibex 04-17-2006 01:09 PM

...and I continue:
HERE IS THE DAMAGE:
a) fdisk (command not found)
b) grub-install (command not found)
c) in /sbin the following files are marked red
unix_chkpwd
unix2_chkpwd
isdnctrl
init.d.README

I know, first of all you will advise me to stop playing
and go back to my familiar Windows !!!

Any true help much appreciated.

XavierP 04-17-2006 02:39 PM

You need to run your commands as root (use the su command), your user account shouldn't be able to access the whole hard disk.

And we don't send people back to Windows if they are trying to do things :)

ibex 04-17-2006 05:36 PM

I do appreciate your advice.
Apologies if somebody finds that I abused LQ.

You are of course right about the commands.
I am missing basic administrative experience
if no more. After I had some food and sleep
it seems quite normal for these files to appear
in different colours ... Nothing more to say here.

-rwsr-x--- 1 root dialout 31700 2006-03-28 20:27 isdnctrl
-rwxr-sr-x 1 root shadow 6624 2006-03-27 17:56 unix2_chkpwd
-rwxr-sr-x 1 root shadow 20104 2006-03-27 17:32 unix_chkpwd
-rw-r--r-- 1 root root 7827 2006-03-29 01:45 init.d.README

Do you reckon I may succeed if I resize the "/ " partition
to include the unallocated space and then run grub-install?
Thank you a lot.

XavierP 04-17-2006 05:39 PM

How are your partitions set up? If your / partition was too small, you'd get warning messages to tell you about it.

Can you post up the relevant posrtions of your gruc configuration file?

ibex 04-17-2006 05:56 PM

Disk /dev/hda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

######################### --- fdisk -l --- ###############################
Device Boot Start End Blocks Id System
/dev/hda1 1 6 48163+ de Dell Utility
/dev/hda2 * 7 2636 21125475 7 HPFS/NTFS
/dev/hda4 2637 9726 56950425 f W95 Ext'd (LBA)
/dev/hda5 2637 7858 41945683+ b W95 FAT32
~~~~~~~~~~ here is the free space of about 3.7GB ------------
/dev/hda6 8355 9311 7687071 83 Linux
/dev/hda7 9312 9596 2289231 83 Linux
/dev/hda8 9597 9726 1044193+ 82 Linux swap / Solaris

############################ --- /boot/menu.lst --- ########################
color white/blue black/light-gray
default 1
timeout 8
gfxmenu (hd0,5)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 10.1
root (hd0,5)
kernel /boot/vmlinuz root=/dev/hda6 vga=0x31a selinux=0 resume=/dev/hda8 splash=silent showopts
initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
chainloader (hd0,1)+1

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
chainloader (fd0)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 10.1
root (hd0,5)
kernel /boot/vmlinuz root=/dev/hda6 vga=normal showopts ide=nodma apm=off acpi=off noresume selinux=0 nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd

############################# --- /etc/fstab ---- ###################
/dev/hda6 / ext3 acl,user_xattr 1 1
/dev/hda7 /home ext3 acl,user_xattr 1 2
/dev/hda2 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hda5 /windows/D vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/hda8 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0

Hope this provides some insight
learning how to ask .. :oD

ibex 04-17-2006 05:58 PM

if not obvious, forgot to say that I boot from hda6.

ibex 04-17-2006 09:43 PM

Finally,
I took a deep breath and instead of creating a new partition
as I was advised (http://www.linuxquestions.org/questi...d.php?t=435745)
I resized my Linux root/boot partition with Acronis cd, then entered SUSE with cd and
simply run grub-install
Thank you all - it works !!!


All times are GMT -5. The time now is 07:33 PM.