LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2014, 09:20 PM   #16
FMCDH
Member
 
Registered: Feb 2014
Posts: 35

Original Poster
Rep: Reputation: Disabled

ARRRGGGGHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!!!!

CraP!!!!!!!!!!!!! I am soooooooo frustrated right now!!!!!!!!!!!!!

I cannot run bootinfoscript (keeps saying its not there when it is)(I ran it from a livecd last time and I think thats why everything is off). I dumped the file in root and ran terminal from cent6 bootup.
I cannot edit grub.conf ( I dont have enough knowledge to move around and run things). I dont know the commands. I dont know the paths. I dont know how to do anything!!!!!!!
I cant do anything! The f'ing machine is so locked down I cant pick my nose without being in the "sudoers" A list.

Its 15 steps to do one thing and I dont know how to do ANY of the 15 steps. Even when I try the step it complains something is wrong and I dont know how to fix it.

*&&%^$#^%$$#@


I am basically like a little kid when it comes to linux and I do not have enough skill and knowledge to even do the simplest things.

I am stuck at zero and cant do anything you asked

The menu.1st file wont open (I dont have permission when I click on it) and I dont know how to edit it from term.

Last edited by FMCDH; 02-17-2014 at 09:25 PM.
 
Old 02-17-2014, 09:27 PM   #17
FMCDH
Member
 
Registered: Feb 2014
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
Your bootinfoscript, for some reason shows only one drive and that shows as sdb rather than sda. The two options I posted earlier, one with the core.img entry and one a chainloader entry, should have been put it the grub.conf file for CentOS which is displayed in the output from bootinfoscript. Did you run the bootinfoscript from CentOS? I don't know why it would show both Mint and CentOS on sdb?

The Mint installation shows as being installed on sdb1 and the CentOS boot partition is sdb3. If you boot CentOS and can access the Mint partition, look in its /boot/grub/ directory to see if there is a core.img file. There should be but, if not use the chainloader entry and change it to:



There is no core.img file on CentOS, it is ony on systems with Grub2. You seem to have only one hard drive so it's a bit confusing that your output shows only an sdb drive unless you ran the script from a flash drive. Another problematic thing is that the grub.cfg file for Mint shows it on sda1. Delete the grub.conf file you created on Mint, it won't do anything.

So how many drives do you have? Did you run the script from CentOS? How did you install Mint, CD/DVD or flash drive? Did you have another drive attached during the install of Mint?

Also, Mint is not using Grub Legacy. You can see the Grub2 files in the output. CentOS does use Grub Legacy but there is no reason you should not be able to boot Mint with it.
I have 1 500g HD inside the laptop
I originally ran bootscript from a live cd as I could not make it work from the HD, it refused to run as I am not a linux god or something.
I installed mint and c6 from a livedvd.
No other drives are attached.
 
Old 02-17-2014, 09:33 PM   #18
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,324

Rep: Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578
Boot from a Mint/Ubuntu live cd. The Centos6 cd won't work. open a terminal and enter the following:
Code:
sudo fdisk -l
From the output of it you should be able to determine if mint is on /dev/sda1 or /dev/sdb1. Then
Code:
sudo mount /dev/sda1 /mnt
if mint is on sda1 otherwise it will be /dev/sdb1. Then
Code:
sudo grub-install --root-directory=/mnt /dev/sda
as before change sda to sdb if needed. Then
Quote:
sudo update-grub
reboot and if everything works you should see a grub menu with mint and centos. If you don't have a centos entry rerun update-grub after booting into Mint. This is based on your info script and this http://community.linuxmint.com/tutorial/view/245

Last edited by colorpurple21859; 02-17-2014 at 09:47 PM.
 
Old 02-17-2014, 10:09 PM   #19
FMCDH
Member
 
Registered: Feb 2014
Posts: 35

Original Poster
Rep: Reputation: Disabled
OK I will try that....

And as always its 15 more steps as I just figured out I dont have any printers installed and NO PLACE IN CENTOS6 is there a way to install printers. I really hate centos6 its just been a nightmare. I was cruising along just fine in newbie land with Mint and loving it. Now Im ready to paint my brains on the wall....BAM (just kidding, dont call the swat team please, I love my dog)
 
Old 02-17-2014, 10:30 PM   #20
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,324

Rep: Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578
Quote:
Now Im ready to paint my brains on the wall....BAM (just kidding, dont call the swat team please, I love my dog)
Know how you feel, been there several times with linux.lol If you can connect to internet with live cd then you won't have to try to remember all this, otherwise write the above commands down.
 
Old 02-17-2014, 11:44 PM   #21
FMCDH
Member
 
Registered: Feb 2014
Posts: 35

Original Poster
Rep: Reputation: Disabled
NO JOY!

.............
mint@mint ~ $ sudo fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000c356b

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 485378047 242688000 83 Linux
/dev/sda2 972599294 976771071 2085889 5 Extended
Partition 2 does not start on physical sector boundary.
/dev/sda3 485378048 486402047 512000 83 Linux
/dev/sda4 486402048 972597247 243097600 8e Linux LVM
/dev/sda5 972599296 976771071 2085888 82 Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/mapper/VolGroup-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders, total 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/VolGroup-lv_root doesn't contain a valid partition table

Disk /dev/mapper/VolGroup-lv_home: 191.0 GB, 191012798464 bytes
255 heads, 63 sectors/track, 23222 cylinders, total 373071872 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/VolGroup-lv_home doesn't contain a valid partition table

Disk /dev/mapper/VolGroup-lv_swap: 4227 MB, 4227858432 bytes
255 heads, 63 sectors/track, 514 cylinders, total 8257536 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/VolGroup-lv_swap doesn't contain a valid partition table
mint@mint ~ $ sudo mount /dev/sda1 /mnt
mint@mint ~ $ sudo grub-install --root-directory=/mnt /dev/sda
grub-probe: error: failed to get canonical path of /cow.
Installation finished. No error reported.
mint@mint ~ $ sudo update-grub
/usr/sbin/grub-probe: error: failed to get canonical path of /cow.
mint@mint ~ $ sudo grub-install --root-directory=/mnt /dev/sda1
grub-probe: error: failed to get canonical path of /cow.
/usr/sbin/grub-bios-setup: warning: File system `ext2' doesn't support embedding.
/usr/sbin/grub-bios-setup: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-bios-setup: error: will not proceed with blocklists.
mint@mint ~ $
 
Old 02-17-2014, 11:46 PM   #22
FMCDH
Member
 
Registered: Feb 2014
Posts: 35

Original Poster
Rep: Reputation: Disabled
I ran boot repair in log mode only and got this bootinfo log if it helps--->>>>>http://paste.ubuntu.com/6953324/



Is there any way to do a repair install of mint to the same partition and fix things?

Why is LVM not a valid partition and why is it full with zero free space?

What I did.....

Had Mint-petra on 500g hd all by itself
Installed Cent6 onto drive.
Cent asked if I wanted to resize drive and I said yes and split it into 2 pieces (231gigs each by resizing).
Installed c6 to now empty 231g space
The rest is history.....

............................
http://paste.ubuntu.com/6953324/

Last edited by FMCDH; 02-18-2014 at 02:28 AM.
 
Old 02-18-2014, 05:30 AM   #23
purevw
Member
 
Registered: Jan 2007
Location: Texas
Distribution: OpenSuSE Tumbleweed, Kernel 4.14*
Posts: 137

Rep: Reputation: 52
Before you go re-installing anything, remember that your /home on the Mint system is not on an independent partition and could be damaged if things don't go well. If you have a way to mount the Mint partition, I would do that and back up anything of importance to an external drive or USB stick before you go further.

Once done, you might use your Mint install disk and see how it's partitioner sees the LVM setup. If it sees it as a valid Linux system, you might get by with installing nothing but grub, and leaving the rest of your Mint and Centos installations intact.

If the Mint partitioner doesn't recognize the LVM, then it may be better to delete it and reformat it as a normal extended partition, which can be sub-divided as you see fit. If you re-insall Centos, pay close attention to what grub wants to do. If you want to keep the Mint version of grub intact in the MBR, you could order Centos to install it's grub on the Centos root partition, rather than the MBR. Be warned that Centos won't boot until you boot back into Mint and add a "chainloader" section to it's grub setup to go to the Centos grub.

Just a note on partitioning. A separate home partition has many advantages. During an install, you simply tell the partitioner to use the existing home partition as /home, and not to format it. Then your documents are safe. When dual booting two Linux systems, it's possible to share the /home partition, but not your home directory. For example, if your user name is FMCDH, then during Mint install, your user name should be FMCDH-Mint and Centos would be FMCDH-Centos, so you end up with /home/FMCDH-Mint/ and /home/FMCDH-Centos/. The problem with having only /home/FMCDH is that both systems would be trying to use the same config files within your home folder.

Here is a quick example of what a new partition scheme for your setup might be:
/dev/sda1/ mounted as / (Mint root) 20GB
/dev/sda2/ mounted as /home/ (Both Mint and Centos) 450GB
/dev/sda3/ Extended Partition 30GB
/dev/sda4/ mounted as / (Centos root) 20GB
/dev/sda5/ mounted as swap (Mint) 5GB
/dev/sda6/ mounted as swap (Centos) 5GB

Of course, the best hope is that the Mint install disk will recognize the Centos LVM and you won't have to go through all that effort.
 
Old 02-18-2014, 09:50 AM   #24
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,324

Rep: Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578
Using the -f or --force option might work
Code:
sudo grub-install -f /dev/sda
if not, try this way. I know it is a lot more typing but may be a better option.
Try it this way from terminal using the mint cd
Code:
sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev 
sudo mount --bind /dev/pts /mnt/dev/pts 
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
Code:
sudo chroot /mnt
Code:
grub-install /dev/sda
grub-install --recheck /dev/sda
update-grub
Code:
exit && sudo umount /mnt/dev && sudo umount /mnt/dev/pts && sudo umount /mnt/proc && sudo umount /mnt/sys && sudo umount /mnt
Then reboot
You may have to do this to get Mints grub to install as per purevw
Quote:
If the Mint partitioner doesn't recognize the LVM, then it may be better to delete it and reformat it as a normal extended partition
using gparted from the live Cd. If you do delete the lvm you will need to create another swap partition.

Last edited by colorpurple21859; 02-18-2014 at 09:52 AM.
 
Old 02-18-2014, 10:47 AM   #25
FMCDH
Member
 
Registered: Feb 2014
Posts: 35

Original Poster
Rep: Reputation: Disabled
Thanks for the help all of you.........

I type the 1st line and get this--->

mint@mint ~ $ sudo grub-install -f /dev/sda
grub-probe: error: failed to get canonical path of /cow.
Path `/boot/grub' is not readable by GRUB on boot. Installation is impossible. Aborting.
mint@mint ~ $

The second part of what you typed (plan B) took and I had "no errors". Going to reboot now.......wish me luck!





Quote:
Originally Posted by colorpurple21859 View Post
Using the -f or --force option might work
Code:
sudo grub-install -f /dev/sda
if not, try this way. I know it is a lot more typing but may be a better option.
Try it this way from terminal using the mint cd
Code:
sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev 
sudo mount --bind /dev/pts /mnt/dev/pts 
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
Code:
sudo chroot /mnt
Code:
grub-install /dev/sda
grub-install --recheck /dev/sda
update-grub
Code:
exit && sudo umount /mnt/dev && sudo umount /mnt/dev/pts && sudo umount /mnt/proc && sudo umount /mnt/sys && sudo umount /mnt
Then reboot
You may have to do this to get Mints grub to install as per purevw using gparted from the live Cd. If you do delete the lvm you will need to create another swap partition.

Last edited by FMCDH; 02-18-2014 at 11:10 AM.
 
Old 02-18-2014, 11:22 AM   #26
FMCDH
Member
 
Registered: Feb 2014
Posts: 35

Original Poster
Rep: Reputation: Disabled
Well like a kalashnikov it worked, thanks so much!!!

Wow 4 days of HELL trying to get up and running again. Drinks or burgers on me, send me your PP address (really!).

I have several observations/questions:

1.) WHY THE F**K didnt Cent6 know there was a second copy of linux there and do a dual boot to exists with mint?

2.) There are too many "versions" of linux and commands are different, help is different, just a real pita!

3.)I like linux when its running but when its broke its a holy living nightmare to fix (for a new guy).

4.) I just had to repair a buddies win7 machine (nasty virus) and it took 3 hrs but I fixed it and its 100%. I do not miss the virus and malware nonsense one bit!

5.) Is there like a newbie 101 handout somewhere so I can be a little better at this?


Moving forward..........

How can I fix my f**ked up hard drive now? I want to remove the c6 damage and return to one monolithic 500g mint only HD.

Thanks again for the help and getting me up and running!!!!

My current boot-repair logs after mint boot and grub fix....
http://paste.ubuntu.com/6955470/

http://paste.ubuntu.com/6955470/

Last edited by FMCDH; 02-18-2014 at 11:30 AM.
 
Old 02-18-2014, 01:19 PM   #27
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,431

Rep: Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471
Quote:
1.) WHY THE F**K didnt Cent6 know there was a second copy of linux there and do a dual boot to exists with mint?
Because CentOS uses Grub Legacy. Just for your information, if your situation had been reversed and you had CentOS already installed and then installed Mint with its' Grub2 bootloader to the master boot record, you would have had a menu showing Mint and CentOS. Because the newer Grub2 can do things that Grub Legacy can't. Also, the two boot entries I suggested in my initial post (with the core.img or chainloader) will work booting a system with Grub2 FROM a system with Grub Legacy. I use Grub Legacy and boot other systems with Grub2 with both of the entries. I can install a different system using Grub2 on the same partition without making a change to either boot entry and the systems boot. If you want to boot a system with Grub2 from a system with Grub Legacy, you usually need to create the entry manually.

Quote:
There are too many "versions" of linux and commands are different, help is different
I agree with the first part of your observation but that's a result of it being open source and free so anyone with the time and effort can create whatever. Commands are basically the same for all Linux systems. They are different for systems which use sudo as opposed to those which do not as well as different for Grub Legacy and Grub2. It's different software that does primarily the same thing. There are also too many different types of automobiles, not to mention too many different printers.

Quote:
How can I fix my f**ked up hard drive now? I want to remove the c6 damage and return to one monolithic 500g mint only HD.
You can boot the Mint CD and open GParted from a terminal (just type gparted in lower case). If you haven't used it before, click the various tabs at the top so you know what's available or read some tutorials online. Delete the CentOS partitions and then resize the Mint partition to take up the whole disk. You could also just format the CentOS partitions from Mint and create data partitions there. Make sure you get the correct partition so you don't delete Mint. Below is a link to a tutorials for GParted.

http://www.dedoimedo.com/computers/gparted.html
 
Old 02-18-2014, 01:59 PM   #28
FMCDH
Member
 
Registered: Feb 2014
Posts: 35

Original Poster
Rep: Reputation: Disabled
Thanks..........


OK will boot to CD (MINT) and use gparted. I assume I have to boot to the cd because I am running on the partitions and they need to be unmounted???

From this info what would I delete? It also seems I will kill the swap if I delete the c6 partition. How do I make a new one?

Sorry to be so dense but I really need a step by step:

1.) Do this
2.) Do that
3.) And do this.....

.................

http://paste.ubuntu.com/6955470/

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 * 2,048 485,378,047 485,376,000 83 Linux
/dev/sda2 972,599,294 976,771,071 4,171,778 5 Extended
/dev/sda5 972,599,296 976,771,071 4,171,776 82 Linux swap / Solaris
/dev/sda3 485,378,048 486,402,047 1,024,000 83 Linux
/dev/sda4 486,402,048 972,597,247 486,195,200 8e Linux LVM


"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/mapper/VolGroup-lv_home 9be0e4bf-d6a3-476d-8579-9a220eea4fc2 ext4
/dev/mapper/VolGroup-lv_root 4624f1a2-a52c-4c6b-be5a-7fe8a7a37c8d ext4
/dev/mapper/VolGroup-lv_swap 493db82f-ad45-47cd-8ae9-753b231de7c9 swap
/dev/sda1 8a346485-0658-4dea-9254-5b4b8d3d32d3 ext4
/dev/sda3 5a0b9236-318e-4caa-a17b-6aa4fab5063f ext4
/dev/sda4 Mq02KX-KM7a-aGGV-aqlA-IV5K-c8tI-pbeHcV LVM2_member
/dev/sda5 ebb7fc10-c8f6-41a9-8935-a5d9648e9d4d swap

========================= "ls -R /dev/mapper/" output: =========================

/dev/mapper:
VolGroup-lv_home
VolGroup-lv_root
VolGroup-lv_swap
control

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/sda1 / ext4 (rw,errors=remount-ro)


=========================== sda1/boot/grub/grub.cfg: ===========================

Last edited by FMCDH; 02-18-2014 at 02:01 PM.
 
Old 02-18-2014, 03:28 PM   #29
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,324

Rep: Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578
I think if you just delete sda3 and sda4 only will get rid of the lvm without loosing you swap partition, which is located on an extended partiton.

Unless I'm mistaken the core.img entry with grub legacy won't work unless grub legacy is fixed with a patch to boot ext4, and according to what I was able to google centos grub legacy isn't patched. The chainloader entry should have worked with grub legacy, however I have came across some situations where chainloading to ext4 with grub legacy just doesn't work.

Last edited by colorpurple21859; 02-18-2014 at 03:29 PM.
 
Old 02-18-2014, 03:53 PM   #30
FMCDH
Member
 
Registered: Feb 2014
Posts: 35

Original Poster
Rep: Reputation: Disabled
So I should not do anything? Last thing I want is a dead laptop again or a nasty surprise on reboot. I do not have the skill to fix an issue without help. Is there a way to "simulate" the 2 partitions as gone/deleted?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
again-dual boot windows XP, 1st drive-linux Mepis 8.0 2nd drive marvinudy Linux - Newbie 2 06-09-2009 09:51 AM
Anxious on Dual Boot .... 1st HD=WINXP... 2nd HD=? Mustard010 Linux - General 1 11-26-2004 02:36 PM
FC2 install on 2nd drive, no dual-boot, will install modify 1st WinXP drive at all? Equisilus Fedora - Installation 14 06-27-2004 02:38 AM
Can't boot 1st OS now after installing 2nd jillyt Linux - Newbie 3 01-05-2004 05:01 PM
boot error after using Copy Commander to copy debian system onto larger new drive Interceptor Linux - Hardware 7 05-04-2003 12:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:06 AM.

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