Re: [CentOS] Reinstalled Windows and GRUB - Cannot boot Linux - fstab and grub.conf errors?
On Mon, Nov 10, 2008 at 12:58 PM, Lanny Marcus <[EMAIL PROTECTED]> wrote: > > > Here's the result of the "mount" command > > [EMAIL PROTECTED] ~]$ mount > /dev/mapper/livecd-rw on / type ext3 (rw,noatime) > proc on /proc type proc (rw) > sysfs on /sys type sysfs (rw) > devpts on /dev/pts type devpts (rw,gid=5,mode=620) > tmpfs on /dev/shm type tmpfs (rw) > none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) > /dev/hdc on /mnt/live type iso9660 (ro) > /dev/hda2 on /mnt/disc/hda2 type ext3 (ro) > /dev/mapper/VolGroup00-LogVol00 on /mnt/lvm/VolGroup00-LogVol00 type ext3 (ro) > sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) > [EMAIL PROTECTED] ~]$ > > Question: Is /hda3 mounted properly? I don't think so, because when I > try to boot Linux from the Grub menu on the HD, it gives me "Error 17: > Cannot mount selected partition" > When I had this error, it meant that grub could not find the boot partition itself. (The boot PROM did, but grub doesn't see the disks the same way and can get lost.) Someone just answered earlier in this thread that you need to change your hd(0,2) to hd(0,1) on the grub boot line. That should work. You don't need to do this from any special rescue boot, just boot the system, and when the grub stage 2 boot selection shows with its countdown, stop it (with the space bar) and use the grub shell to edit that line and it _should_ boot properly. If WCTW, instead of downloading the CentOS 5 DVD, just pull down the first CD image and burn that. It's a lot shorter than the whole DVD, and it's all you need to get into rescue mode. HTH mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Reinstalled Windows and GRUB - Cannot boot Linux - fstab and grub.conf errors?
On Mon, Nov 10, 2008 at 11:38 AM, Phil Schaffner <[EMAIL PROTECTED]> wrote: > Lanny Marcus wrote: >> I have several Live CDs, but >> don't know how to get real "root" privileges with them. > > Often "su -" in a terminal window is all that's required to get root for a > live CD.> Phil: I'm running on my CentOS 5.2 Live CD, in the belief that one is better able to help me than the Knoppix or SystemRescue Live CDs (the SystemRescue CD is very old). On the GNOME Desktop, there's an Icon for "Local Hard Drives". If I double click on that, it shows hda2 which is the /boot ext3 partition (102 MB) There is also an Icon for "Local Logical Volumes". If I double click on that, it shows VolGroup00-LogVol00 and everything is there, in the LVM. :-) Here's the result of the "mount" command [EMAIL PROTECTED] ~]$ mount /dev/mapper/livecd-rw on / type ext3 (rw,noatime) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) /dev/hdc on /mnt/live type iso9660 (ro) /dev/hda2 on /mnt/disc/hda2 type ext3 (ro) /dev/mapper/VolGroup00-LogVol00 on /mnt/lvm/VolGroup00-LogVol00 type ext3 (ro) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) [EMAIL PROTECTED] ~]$ Question: Is /hda3 mounted properly? I don't think so, because when I try to boot Linux from the Grub menu on the HD, it gives me "Error 17: Cannot mount selected partition" Here's the contents of fstab (which I'm looking at Read Only) /dev/VolGroup00/LogVol00 / ext3defaults1 1 LABEL=/boot /boot ext3defaults1 2 devpts /dev/ptsdevpts gid=5,mode=620 0 0 tmpfs /dev/shmtmpfs defaults0 0 proc/proc procdefaults0 0 sysfs /syssysfs defaults0 0 /dev/VolGroup00/LogVol01 swapswapdefaults0 0 /dev/hda6 /mnt/win ntfs-3g rw,umask=,defaults 0 0 What I need to modify in fstab is the last line. I need to change it from /dev/hda6 to /dev/hda1 so I can read/write NTFS files from CentOS. If I can get to the 2 configuration files (fstab and grub.conf) with true root access, so I can modify them, with Gedit I should be able to get this box working on Linux again. Not sure of the proper locations to give for those files, so I can get to them from a terminal window, after "su -", with gedit. These are the types of trivial problems which cause newbies frustration. On the other hand, there have been times, when my wife and daughter cannot do something on M$ Windows and they can do it on Linux. :-)This would be easier, I'm sure, if my CentOS 5 Installation DVD hadn't gotten damaged Saturday. Your time, help and willingness to share your expertise are much appreciated! Lanny ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Reinstalled Windows and GRUB - Cannot boot Linux - fstab and grub.conf errors?
On Mon, Nov 10, 2008 at 11:38 AM, Phil Schaffner <[EMAIL PROTECTED]> wrote: > Lanny Marcus wrote: >> I have several Live CDs, but >> don't know how to get real "root" privileges with them. > > Often "su -" in a terminal window is all that's required to get root for a > live CD. Phil: I think I tried that, Saturday afternoon, but I will try it again, after my daughter gets home. As I recall, that did not get me into the true "root" environment, but into root for the Live CD. I will try it again, with each of the 3 Live CD's, and report back to the list. When I tried to edit one of the configuration files I need to edit, it was a different configuration file, provided by the Live CD. Thanks! Lanny ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Reinstalled Windows and GRUB - Cannot boot Linux - fstab and grub.conf errors?
Lanny Marcus wrote: [snip] I have several Live CDs, but don't know how to get real "root" privileges with them. Often "su -" in a terminal window is all that's required to get root for a live CD. Phil begin:vcard fn:Philip Schaffner n:Schaffner;Philip org:NASA Langley Research Center;Electromagnetics and Sensors Branch adr:Mail Stop 473;;8 North Dryden Street;Hampton;VA;23681;USA email;internet:[EMAIL PROTECTED] title:Aerospace Technologist tel;work:757-864-1809 tel;fax:757-864-7891 x-mozilla-html:FALSE version:2.1 end:vcard ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Reinstalled Windows and GRUB - Cannot boot Linux - fstab and grub.conf errors?
On Sun, Nov 9, 2008 at 9:06 AM, partha chowdhury <[EMAIL PROTECTED]> wrote: > Lanny Marcus wrote: >> 01 /dev/hda1 ntfs Active >> 02 /dev/hda2 ext3 (/boot) >> 03 /dev/hda3 unknown (CentOS LVM) > > AFAIK,in centos or fedora a boot partition cannot reside in an LVM volume.a > boot partition must be a regular ext2 or ext3 file system. Yes. There's a separate ext3 partition, /boot, with 102 MB, that's /dev/hda2 and it isn't in an LVM. Problem now, as I just replied to Vandaman, is that my CentOS 5 Installation DVD got damaged, after I reinstalled GRUB and before I could modify two configuration files. I have several Live CDs, but don't know how to get real "root" privileges with them. Sorry for delay in my reply. Our ADSL was down. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Reinstalled Windows and GRUB - Cannot boot Linux - fstab and grub.conf errors?
Lanny Marcus wrote: Booting 'CentOS (2.6.18-92.1.17.el5)' root (hd0,2) Filesystem type unknown, partition type 0x8e Kernel /vmlinuz-2.6.18-92.1.17.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet Error 17: Cannot mount selected partition Press any key to continue 01 /dev/hda1 ntfs Active 02 /dev/hda2 ext3 (/boot) 03 /dev/hda3 unknown (CentOS LVM) AFAIK,in centos or fedora a boot partition cannot reside in an LVM volume.a boot partition must be a regular ext2 or ext3 file system. or are you trying to boot from from wrong partition ? /dev/hda2 is labled as boot and is an ext3 filesystem. so i am inclined to believe that is the partition where the vmlinuz and initrd file resides. you need to change the line "root (hd0,2)" to "root (hd0,1)" during booting. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos