osdir.com
mailing list archive

Subject: Re: Grub error 15 after removing partition - msg#00077

List: boot-loaders.grub.bugs

Date: Prev Next Index Thread: Prev Next Index
because you removed a partition you will need to reinstall grub to the
mbr.

Boot into linux, and use 'grub-install (hd0)', then reboot!

your change to grub.conf is still needed.

On Sun, Aug 17, 2003 at 09:42:29AM -0700, John Dunn wrote:
> Can anyone help? Thanks very much!


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Grub error 15 after removing partition

Greetings, I am hoping someone can help me get Grub working again. My machine was dual boot to Redhat 9 and Windows98. Things were working OK until I removed (using parted) an NTFS partition that was no longer needed. Upon booting, I'm getting to Grub Stage 1.5, when Error 15 is returned. I can boot to Redhat from my boot floppy by passing "linux root=/dev/sda7." I have modified /etc/grub.conf numerous times to try to reflect the partition changes, but the end result is the same. I'm either not understanding the naming conventions or too dense to realize I need to do something else. Interestingly enough, when I run grub and try to "find <fileneame>," grub will find files on the / partition, but not on the /boot partition--I get the same Error 15 returned. Can anyone help? Thanks very much! John Relevant information follows: [root@localhost root]# cat /etc/fstab LABEL=/ / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /proc proc defaults 0 0 none /dev/shm tmpfs defaults 0 0 /dev/sda3 swap swap defaults 0 0 /dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0 /dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0 /dev/sdb4 /mnt/zip auto noauto,owner,kudzu 0 0 [root@localhost root]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda7 3.0G 2.3G 548M 81% / /dev/sda6 76M 9.3M 63M 13% /boot none 62M 0 62M 0% /dev/shm PARTED PARTITION REMOVAL [root@localhost root]# parted GNU Parted 1.6.3 Using /dev/sda Information: The operating system thinks the geometry on /dev/sda is 1106/255/63. Therefore, cylinder 1024 ends at 8032.499M. (parted) print Disk geometry for /dev/sda: 0.000-8683.252 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 1309.987 primary fat32 boot 2 1309.988 8032.500 extended 5 1310.019 4314.331 logical ntfs 6 4314.362 4902.648 logical fat16 7 4902.680 4981.091 logical ext3 8 4981.122 8032.500 logical ext3 3 8032.500 8291.359 primary linux-swap (parted) rm 5 Error: Error informing the kernel about modifications to partition /dev/sda6 - Device or resource busy. This means Linux won't know about any changes you madeto /dev/sda6 until you reboot - so you shouldn't mount it or use it in any way before rebooting Ignore/Cancel i CURRENT PARTITION INFOMATION: Disk geometry for /dev/sda: 0.000-8683.252 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 1309.987 primary fat32 boot 2 1309.988 8032.500 extended 5 4314.362 4902.648 logical fat16 6 4902.680 4981.091 logical ext3 7 4981.122 8032.500 logical ext3 3 8032.500 8291.359 primary linux-swap GRUB.CONF INFORMATION: [root@localhost root]# cat /etc/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to # /boot/, eg. # root (hd0,6) # kernel /vmlinuz-version ro root=/dev/sda8 # initrd /initrd-version.img #boot=/dev/sda default=0 timeout=30 # jld 08/16/03 original settings commented below # also tried several variations as follows: # tried hd0,5 for splash and root, root=/dev/sda7 # tried hd0,6 for splash and root, root=/dev/sda7 # tried hd0,5 for splash, hd0,6 for root, root=/dev/sda7 # # splashimage=(hd0,6)/grub/splash.xpm.gz # # title Red Hat Linux (2.4.20-8) # root (hd0,6) # kernel /vmlinuz-2.4.20-8 ro root=/dev/sda8 # initrd /initrd-2.4.20-8.img splashimage=(hd0,6)/grub/splash.xpm.gz title Red Hat Linux (2.4.20-8) root (hd0,6) kernel /vmlinuz-2.4.20-8 ro root=/dev/sda7 initrd /initrd-2.4.20-8.img title Windows 98 # map (hd0,0) (hd0,2) # map (hd0,2) (hd0,0) rootnoverify (hd0,0) chainloader +1 title Windows 98 Boot CD # map (hd0,0) (hd0,2) __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com

Next Message by Date: click to view message preview

Intel PRO/100 M Mobile Connection

Hi! I hope this is the right place; I didn't see a general development list. For that matter, I didn't see a way to subscribe to this one, so I won't see any replies that are just to the list. I would like to install OpenBSD 3.3 (or current) on my Compaq TC1000 tablet. I do not have a CD drive the tablet can boot from, so I am trying to boot bsd.rd over the network using Grub. I compiled Grub (from CVS as of August 16, 2003 -- it claims to be 0.93 in the banner) on a Debian 2.2.20 machine I have access to, like so: ./configure --enable-diskless --enable-eepro100 make Then, I copied stage2/pxegrub to my tftp directory, changed my dhcp config to hand that out to my tablet instead of the previous boot loader I had tried (pxelinux), and tried booting. Grub came up fine except for this: Probing...[EEPRO100]No ethernet card found. It turns out (according to Windows XP, which is what is running on the tablet right now), the tablet has an "Intel(R) PRO/100 M Mobile Connection" Ethernet adapter. However, the driver for this adapter was added to eepro100.c in etherboot after version 5.0.5, when grub last snagged it. etherboot seems to have changed quite a bit (and added a lot of driver support) since then; using what is in etherboot now, I could figure out how to get my particular Ethernet adapter working and supply you with a patch for grub, but I wondered whether there might be an effort to get synced up with all of etherboot sometime soon? Also, are there any licensing reasons I should not copy code from the current etherboot? (And, I'm curious -- why are grub and etherboot separate projects? They seem pretty similar at first glance.) Any other suggestions would be welcome as well. :) I have heard that grub does not boot recent OpenBSD kernels yet, but then I heard that it boots them just like it boots NetBSD; which is true? I figured if there are problems, I will run into them and can fix them then. Brenda

Previous Message by Thread: click to view message preview

Grub error 15 after removing partition

Greetings, I am hoping someone can help me get Grub working again. My machine was dual boot to Redhat 9 and Windows98. Things were working OK until I removed (using parted) an NTFS partition that was no longer needed. Upon booting, I'm getting to Grub Stage 1.5, when Error 15 is returned. I can boot to Redhat from my boot floppy by passing "linux root=/dev/sda7." I have modified /etc/grub.conf numerous times to try to reflect the partition changes, but the end result is the same. I'm either not understanding the naming conventions or too dense to realize I need to do something else. Interestingly enough, when I run grub and try to "find <fileneame>," grub will find files on the / partition, but not on the /boot partition--I get the same Error 15 returned. Can anyone help? Thanks very much! John Relevant information follows: [root@localhost root]# cat /etc/fstab LABEL=/ / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /proc proc defaults 0 0 none /dev/shm tmpfs defaults 0 0 /dev/sda3 swap swap defaults 0 0 /dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0 /dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0 /dev/sdb4 /mnt/zip auto noauto,owner,kudzu 0 0 [root@localhost root]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda7 3.0G 2.3G 548M 81% / /dev/sda6 76M 9.3M 63M 13% /boot none 62M 0 62M 0% /dev/shm PARTED PARTITION REMOVAL [root@localhost root]# parted GNU Parted 1.6.3 Using /dev/sda Information: The operating system thinks the geometry on /dev/sda is 1106/255/63. Therefore, cylinder 1024 ends at 8032.499M. (parted) print Disk geometry for /dev/sda: 0.000-8683.252 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 1309.987 primary fat32 boot 2 1309.988 8032.500 extended 5 1310.019 4314.331 logical ntfs 6 4314.362 4902.648 logical fat16 7 4902.680 4981.091 logical ext3 8 4981.122 8032.500 logical ext3 3 8032.500 8291.359 primary linux-swap (parted) rm 5 Error: Error informing the kernel about modifications to partition /dev/sda6 - Device or resource busy. This means Linux won't know about any changes you madeto /dev/sda6 until you reboot - so you shouldn't mount it or use it in any way before rebooting Ignore/Cancel i CURRENT PARTITION INFOMATION: Disk geometry for /dev/sda: 0.000-8683.252 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 1309.987 primary fat32 boot 2 1309.988 8032.500 extended 5 4314.362 4902.648 logical fat16 6 4902.680 4981.091 logical ext3 7 4981.122 8032.500 logical ext3 3 8032.500 8291.359 primary linux-swap GRUB.CONF INFORMATION: [root@localhost root]# cat /etc/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to # /boot/, eg. # root (hd0,6) # kernel /vmlinuz-version ro root=/dev/sda8 # initrd /initrd-version.img #boot=/dev/sda default=0 timeout=30 # jld 08/16/03 original settings commented below # also tried several variations as follows: # tried hd0,5 for splash and root, root=/dev/sda7 # tried hd0,6 for splash and root, root=/dev/sda7 # tried hd0,5 for splash, hd0,6 for root, root=/dev/sda7 # # splashimage=(hd0,6)/grub/splash.xpm.gz # # title Red Hat Linux (2.4.20-8) # root (hd0,6) # kernel /vmlinuz-2.4.20-8 ro root=/dev/sda8 # initrd /initrd-2.4.20-8.img splashimage=(hd0,6)/grub/splash.xpm.gz title Red Hat Linux (2.4.20-8) root (hd0,6) kernel /vmlinuz-2.4.20-8 ro root=/dev/sda7 initrd /initrd-2.4.20-8.img title Windows 98 # map (hd0,0) (hd0,2) # map (hd0,2) (hd0,0) rootnoverify (hd0,0) chainloader +1 title Windows 98 Boot CD # map (hd0,0) (hd0,2) __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com

Next Message by Thread: click to view message preview

Re: Grub error 15 after removing partition

Voila! Thanks much for your help! John --- Jason Thomas <jason@xxxxxxxxxxxxxxx> wrote: > because you removed a partition you will need to > reinstall grub to the > mbr. > > Boot into linux, and use 'grub-install (hd0)', then > reboot! > > your change to grub.conf is still needed. > > On Sun, Aug 17, 2003 at 09:42:29AM -0700, John Dunn > wrote: > > Can anyone help? Thanks very much! __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by