Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
09-07-2014, 09:36 PM
|
#16
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
|
So you should've commented out sda5
Can you locate the 2 fstab's?
|
|
|
09-07-2014, 11:13 PM
|
#17
|
Member
Registered: Apr 2009
Posts: 390
Original Poster
Rep:
|
2014-09-08
EDDY1,
(1) Grub-rescue shows the following partitions:
(hd0), (hd0,msdos7), (hd0,msdos6), (hd0,msdos5), (fd0).
I think they respectively correspond to /dev/sda, /dev/sda7, /dev/sda6, /dev/sd5, and the floopy drive.
Interestingly enough, /dev/sda2, the Ubuntu partition is not shown. Thus there's nothing I can do here.
(2) When I use Boot Repair in an attempt to fix my grub-rescue problem, it keeps reminding me to close all software package managers. I don't remember seeing this reminder before. I did my best to close whatever applications I saw. In short Boot Repair has not been helpful.
julianvb
Last edited by julianvb; 09-07-2014 at 11:27 PM.
|
|
|
09-07-2014, 11:36 PM
|
#18
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
|
sda2 is the Extended partition that sda5, sda6 & sda7 reside on.
Boot repair is not it you need to re-edit your /etc/fstab & it will boot.
|
|
1 members found this post helpful.
|
09-08-2014, 05:36 PM
|
#19
|
Member
Registered: Apr 2009
Posts: 390
Original Poster
Rep:
|
EDDY1,
My /etc/fstab file now looks as follows.
overlayfs / overlayfs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
/dev/sda6 swap swap defaults 0 0
The partiton I deleted was named /dev/sda6 and is now /dev/sda7.
(1) Can I add edit /etc/fstab by adding the following 3 lines to the end as below? (The UUIDs come from blkid)
(2) Do I need to change or remove the old /dev/sda6 line?
(3) How do I test the modified file?
/dev/sda5 UUID="24239e68-00ab-4cab-8cc1-c7f1f421e991" TYPE="ext2"
/dev/sda6 UUID="8816c492-5934-4303-a241-bd3dd5be005d" TYPE="swap"
/dev/sda7: UUID="c6a171de-d531-4965-9edb-018122283eef" TYPE="ext4"
julianvb
Last edited by julianvb; 09-08-2014 at 06:00 PM.
|
|
|
09-08-2014, 06:13 PM
|
#20
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
|
Did you delete or edit it out of fstab?
|
|
|
09-08-2014, 10:12 PM
|
#21
|
Member
Registered: Apr 2009
Posts: 390
Original Poster
Rep:
|
EDDY1,
This is what I've just put in /etc/fstab via my Linux Mint 17 Live CD as a first step. I am omitting the Mint 17 entry for now for simplicity.
(1) Please tell me if it looks correct.
(2) How do I set up an entry for a USB stick or USB HD in /etc/fstab?
Thanks for your help and patience.
julianvb
------------------------------------------------
# 2014-09-08 created
# Partition created for previous Mint 17
# UUID="24239e68-00a6-4cab-8cc1-c7f1f4212991"
# Swap partiton at /dev/sda6
UUID="8816c492-5934-4303-a241-6d3dd5be005d" none swap sw 0 0
# Ext4 partition at /dev/sda7
UUID="c6a171de-d531-4965-9edb-018122283eef" / ext4 error=remount-ro 0 0
Last edited by julianvb; 09-08-2014 at 10:18 PM.
|
|
|
09-08-2014, 11:26 PM
|
#22
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
|
Did you update-grub
|
|
|
09-08-2014, 11:42 PM
|
#23
|
Member
Registered: Apr 2009
Posts: 390
Original Poster
Rep:
|
I didn't before I saw your latest message, and I subsequently got the following error from Linux Mint 17 Live CD after entering 'sudo grub-install /dev/sda' or 'sudo update-grub'.
/usr/sbin/grub-probe:error: failed to get canonical path of 'cow'.
julianvb
Last edited by julianvb; 09-08-2014 at 11:56 PM.
|
|
|
09-09-2014, 12:18 AM
|
#24
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
|
Then you obviously need all of your entries in fstab. You may have to run
|
|
|
09-09-2014, 12:53 AM
|
#25
|
Member
Registered: Apr 2009
Posts: 390
Original Poster
Rep:
|
EDDY1,
I've just run 'sudo blkid' and then 'sudo update-grub'. The same 'cow' error re-appeared. Here's the blkid output.
Question 1: How can I check whether my /etc/fstab file contains errors?
Question 2: What does "failed to get canonical path of 'cow'" mean?
julianvb
------------------------------------------------
Output of 'sudo blkid'.
/dev/loop0: TYPE="squashfs"
/dev/sda5: UUID="24239e68-00a6-4ca6-8cc1-c7f1f421e991" TYPE="ext2"
/dev/sda6: UUID="8816c492-5934-4303-a241-bd3dd5be005d" TYPE="swap"
/dev/sda7: UUID="c6a171de-d531-4965-9edb-018122283eef" TYPE="ext4"
/dev/sr0: LABEL="Linux Mint 17 MATE 32-bit" TYPE="iso9660"
/dev/sdb1: LABEL="Elements" UUID="4E1AEA7B1AEA6007" TYPE="ntfs"
-----------------------------------------------------------------
The latest version of my /etc/fstab is listed below.
# 2014-09-08 created
## mint 17 partition at /dev/sda5
# UUID="24239e68-00a6-4cab-8cc1-c7f1f4212991"
## swap partiton at /dev/sda6
UUID="8816c492-5934-4303-a241-6d3dd5be005d" none swap sw 0 0
## ext4 partition at /dev/sda7
UUID="c6a171de-d531-4965-9edb-018122283eef" / ext4 errors=remount-ro 0 1
Last edited by julianvb; 09-09-2014 at 06:10 AM.
|
|
|
09-09-2014, 01:36 AM
|
#26
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
|
Post #19 shows the 3 UUID's that were in your fstab, your last post has a whole lot more than that but those entries are there.
Another thing is sda5 is about 1.5 GIGS & sa6 is abut 45GIGS I would say that you need them both.
Last edited by EDDY1; 09-09-2014 at 01:42 AM.
|
|
|
09-09-2014, 06:41 AM
|
#27
|
Member
Registered: Apr 2009
Posts: 390
Original Poster
Rep:
|
EDDY1,
I've just revised /etc/fstab to restore the proc line and to include the ext2 /dev/sda5 mint17 partition. I'm not sure if the mint17 line is specified correctly.
The new /etc/stab file doesn't fix the 'cow' error after I enter 'sudo update-grub'.
# 2014-09-09 revised -- /etc/fstab file
##
## proc line
proc /proc proc nodev,noexec,nosuid 0 0
## mint 17 partition at /dev/sda5
UUID="24239e68-00a6-4cab-8cc1-c7f1f4212991" none ext2 errors=remount-ro 0 1
## swap partiton at /dev/sda6
UUID="8816c492-5934-4303-a241-6d3dd5be005d" none swap sw 0 0
## ext4 partition at /dev/sda7
UUID="c6a171de-d531-4965-9edb-018122283eef" / ext4 errors=remount-ro 0 1
Last edited by julianvb; 09-09-2014 at 06:46 AM.
|
|
|
09-09-2014, 10:03 AM
|
#28
|
Member
Registered: Apr 2009
Posts: 390
Original Poster
Rep:
|
EDDY1,
I was able to mount /dev/sd5 manually, which is known as (hd0,msdos5) to grub-rescue. Its directory /media/sda5 shows the two vital files initrd.img and vmlinuz but I am unable to load these these two files into grub via the grub-rescue prompt. Can you help me? I think this is the place for me to revive Ubuntu 12.04.
In other words, I am not familiar with grub-rescue at all.
Thanks again.
julianvb
Last edited by julianvb; 09-09-2014 at 10:05 AM.
|
|
|
09-09-2014, 03:01 PM
|
#29
|
Member
Registered: Apr 2009
Posts: 390
Original Poster
Rep:
|
2014-09-09 Reminder:2014-09-09 Reminder:
Even though I've finally achieved my objective (much to my subsequent regret). As someone had warned me, one should be very careful when one embarks on deleting a logical partition. The method I used is indicated in post #13. I hereby close my current question and open a new one to address how to use grub-rescue to fix a broken Ubuntu partition table.
julianvb
|
|
|
09-09-2014, 05:52 PM
|
#30
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,438
|
I don't know what you orignally had on sda5 but, if that was the partition on which you tried to install Mint I can see why it failed. It was mentioned above that it is a 1.5GB partition which is way to small for even a minimal install of Mint. Your original post shows swap on sda7 but in post #9, when you post your fstab file, it shows that it was on sda5 during installation. Your uuids keep changing which I expect to happen if you delete a partition and create a new one whether it is swap or another type. When you delete a logical partition, any logical partition with a higher number will also change.
|
|
|
All times are GMT -5. The time now is 07:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|