LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-17-2006, 12:49 PM   #1
ibex
Member
 
Registered: Apr 2006
Distribution: SUSE-10.1-32bit
Posts: 123

Rep: Reputation: 15
? 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?
 
Old 04-17-2006, 01:09 PM   #2
ibex
Member
 
Registered: Apr 2006
Distribution: SUSE-10.1-32bit
Posts: 123

Original Poster
Rep: Reputation: 15
...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.
 
Old 04-17-2006, 02:39 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
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
 
Old 04-17-2006, 05:36 PM   #4
ibex
Member
 
Registered: Apr 2006
Distribution: SUSE-10.1-32bit
Posts: 123

Original Poster
Rep: Reputation: 15
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.
 
Old 04-17-2006, 05:39 PM   #5
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
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?
 
Old 04-17-2006, 05:56 PM   #6
ibex
Member
 
Registered: Apr 2006
Distribution: SUSE-10.1-32bit
Posts: 123

Original Poster
Rep: Reputation: 15
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 .. D
 
Old 04-17-2006, 05:58 PM   #7
ibex
Member
 
Registered: Apr 2006
Distribution: SUSE-10.1-32bit
Posts: 123

Original Poster
Rep: Reputation: 15
if not obvious, forgot to say that I boot from hda6.
 
Old 04-17-2006, 09:43 PM   #8
ibex
Member
 
Registered: Apr 2006
Distribution: SUSE-10.1-32bit
Posts: 123

Original Poster
Rep: Reputation: 15
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 !!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Get GRUB to work Ephracis Linux - Software 3 04-17-2006 07:53 PM
Getting Grub to work r0wb0t Fedora - Installation 5 11-12-2004 06:35 AM
Grub won't work bstopp Linux - Newbie 4 11-11-2004 09:46 AM
commands work with interactive grub, but not in grub.conf richardg Linux - Newbie 2 11-23-2003 04:36 AM
Getting GRUB to work linuxnewbie001 Linux - Software 1 08-01-2003 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration