LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-14-2016, 01:02 PM   #16
mrmazda
Member
 
Registered: Aug 2016
Location: USA
Distribution: several
Posts: 113

Rep: Reputation: Disabled
About Kernel Boot Parameters


Ubuntu's Wiki has a description that might help understand AwesomeMachine's response, and then make a permanent repair after having figured out exactly what needs to be changed to what.
 
Old 08-15-2016, 01:24 PM   #17
lazydog
Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 829
Blog Entries: 1

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by RCSMG View Post
Here are two screen shots of the error messages that I get when I try to boot into Ubuntu on my dual boot laptop.
That is an UUID number. It's stating that it cannot find the drive. You should boot with a live CD/DVD and find out what the UUID then mount the hard drive and fix grub and the FSTAB if it is using UUID to mount the drives.
 
Old 08-15-2016, 01:29 PM   #18
RCSMG
LQ Newbie
 
Registered: Aug 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
Lazy dog I have 14.04 on a sub drive. I don't have enough experience with Ubuntu to do those things you suggest. Would you mind giving me instructions on how to do that?
 
Old 08-15-2016, 02:41 PM   #19
lazydog
Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 829
Blog Entries: 1

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by RCSMG View Post
Lazy dog I have 14.04 on a sub drive. I don't have enough experience with Ubuntu to do those things you suggest. Would you mind giving me instructions on how to do that?
Boot the Live/boot CD/DVD. Make sure you mount the disk when asked to. I believe that they should be mounted to '/mount' but I don't know ubuntu well enough to say 100%.

Run the following command:

Code:
As Root:      blkid
As non-root:  sudo blkid
This should give you something like:

Code:
/dev/sda1: UUID="9ad8595e-7c9c-4bf7-b9cf-7c7c832bbbbc" TYPE="xfs"
/dev/sda2: UUID="11RlqN-023m-6aP0-4xYL-h2UD-TpXN-ZwZi1C" TYPE="LVM2_member"
/dev/mapper/centos-root: UUID="2a449bae-1021-4804-8a44-edfea4406f00" TYPE="xfs"
/dev/mapper/centos-swap: UUID="352f4bbe-5742-4ac0-b3ed-9ccea52efd20" TYPE="swap"
/dev/mapper/centos-home: UUID="274390c1-3251-470c-b397-0debc73edbc5" TYPE="xfs"
As you can see I have 2 partitions on my drive.
Partition 1 is my boot drive
Partition 2 has my mount points.
On partition 2 I also have UUID's for the different mount points also.

After you have this information you will want to look at the FSTAB file and see how your mount points are being mounted using the UUID or another way. FSTAB should be located at '/mount/etc/fstab' If using UUID then you are going to have to edit FSTAB and change the UUID information to match what you have discovered above.

Next you are going to have to go into your boot partition and look at how your system is booting. Your grub configuration should be located at '/mount/boot/grub2/grub.cfg'. This one is most likely using the UUID's so you are going to have to edit and replace the UUID's.

After you have finished doing this make sure you write down all the UUID's that were displayed so that you can get your system to boot. Now boot your system without the CD/DVD. Once you get the grub menu highlight the ubuntu and hit the 'e' key. There look for the UUID and replace this with your new UUID's Hit CTL=X to get out and allow the system to continue to boot.

Once you are back in your ubuntu system run 'sudo update-grub' so it reconfigures your boot options to use the correct disk. next boot. This we fixed when we edited the grub.cfg file.

Now I have seen on line a 'Boot-Repair-Disk' but I have never used it so I don't know if it works or not. It is located HERE I am the firm believer one should know how to fix their system via the CLI.

Good luck.
 
1 members found this post helpful.
Old 08-18-2016, 08:23 AM   #20
RCSMG
LQ Newbie
 
Registered: Aug 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
Sorry for not replying for a few days, I am also dealing with rotator cuff surgery complications. First of all, thank you to you all for your replies and the info you have given me. Your help is greatly appreciated. I am beginning to understand most of the information. I hope this is my last question. I am supposed to type that in terminal or cli? It looks like cli, but I want to make sure.
 
Old 08-18-2016, 09:06 AM   #21
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 3,079

Rep: Reputation: 531Reputation: 531Reputation: 531Reputation: 531Reputation: 531Reputation: 531
if you can boot off a usb live stick. then do so, then just mount that hard drive.

Code:
to get the hard drive ID
blkid 

then

#mount -rw /dev/sdax  /tmp
then go into /etc the modify your fstab. Have it mount the old fashion way using, /dev/sda1 /dev/sda2 etc. then try to boot it, then you can do your UUIDs if you like after you get into your system. like the others have explained, that is what I have had to do.

OR
if you can connect it to your USB and fire up the other system, hopefully linux, then you can mount it that way and do the same thing. that is How I actually do it.

Last edited by BW-userx; 08-18-2016 at 09:11 AM.
 
Old 08-18-2016, 09:57 AM   #22
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo
Posts: 132

Rep: Reputation: 46
Is the OP's system UEFI or BIOS? Also, is the original drive MBR or GPT? It makes a difference. If it is a BIOS system, you also need to clone the MBR from old to new, not just the partitions. UEFI is different. On UEFI/GPT, the boot code is just another partition which is cloned like all the rest.

I have a somewhat different experience from the OP. Using Clonezilla, I cloned a 1 TB Seagate drive to a 1 TB Mushkin SSD drive. This was a multiboot system with Windows 10, fedora, gentoo, debian, arch, and Centos. The source drive was internal and connected to a SATA port. I hooked up the target to a Bytec multiport interface and plugged it into a USB 2 port. Afterwards I disconnected the source and moved the target to internal and booted up. All of the OSes booted up without problems. The UUIDs were the same.

Usually with Clonezilla, the source and target drives should be about the same size. If the target is a bit smaller, it can still work. It will try to shrink to make it fit.

I never tried Acronis. Its gotten good reviews on the internet.

--- Edited 8/18/2016 ---

I did the same thing on a HP envy laptop, using Clonezilla to clone a 750 G Seagate spin drive onto a 500 G Samsung EVO SSD using a Bytec USB interface. There were some minor problems with the swap partition. Otherwise, everything booted up.

Last edited by plasmonics; 08-18-2016 at 01:10 PM.
 
Old 08-18-2016, 11:01 AM   #23
RCSMG
LQ Newbie
 
Registered: Aug 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
The system is BIOS and the drive is MBR.
 
Old 08-18-2016, 11:43 AM   #24
RCSMG
LQ Newbie
 
Registered: Aug 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
BW, I tried what you said but when I typed in /dev/sda1 /sda2 I got bash: /dev/sda1: Permission denied
I typed everything in the way that it is displayed in your post.
 
Old 08-18-2016, 12:35 PM   #25
RCSMG
LQ Newbie
 
Registered: Aug 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
Pic

Here is what I found.
Attached Thumbnails
Click image for larger version

Name:	0818161128a_resized.jpg
Views:	9
Size:	215.2 KB
ID:	22793  
 
Old 08-18-2016, 12:57 PM   #26
RCSMG
LQ Newbie
 
Registered: Aug 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
Here.is info I got off the original hard drive.
Attached Thumbnails
Click image for larger version

Name:	0818161252_resized.jpg
Views:	7
Size:	245.6 KB
ID:	22794  
 
Old 08-18-2016, 06:02 PM   #27
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,672

Rep: Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260
fstab is a file.

You need to read it with some editor or use command more or less.
 
Old 08-18-2016, 07:15 PM   #28
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 3,079

Rep: Reputation: 531Reputation: 531Reputation: 531Reputation: 531Reputation: 531Reputation: 531
Quote:
Originally Posted by RCSMG View Post
Here is what I found.
you do not mount fstab that is the file linux uses to know what the mount points are and where to mount them.

you edit fstab to place your mount points in it. example

Code:
[userx@voided ~]$ cat /etc/fstab

# comment out UUID then replace with old way of doing it using /dev

#UUID=ee8bca61-3837-47e3-8601-77e0ba20f446 / ext4 defaults 0 1
#UUID=2cbaed98-039f-45d4-bf0d-4eb200009ec4 /home ext4 defaults 0 2


/dev/sda1 / ext4 defaults 0 1
/dev/sad2  /home ext4 defaults 0 2


tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0

UUID=7d7f3aa1-c252-485b-8a19-1cab81ef85ed /media/data ext4 defaults 0 3
you can use nano , vi , geany etc...

Last edited by BW-userx; 08-18-2016 at 07:16 PM.
 
Old 08-19-2016, 12:43 PM   #29
appsforwindow
LQ Newbie
 
Registered: Aug 2016
Location: Anchorage, Alaska
Posts: 1

Rep: Reputation: Disabled
I also am having errors such as this one, are looking for solutions to my computer.I hope to find the necessary information in this section
 
Old 08-19-2016, 04:15 PM   #30
Troychad
LQ Newbie
 
Registered: Aug 2016
Posts: 4

Rep: Reputation: Disabled
This could possibly be a SSD alignment issue after the cloning process.

I read in numerous articles that cloning a mechanical disk drive to a SSD can have issues afterward. SSDs use different data blocks than mechanical drives. You'll need to do a SSD alignment. Not only will this fix the offset/misaligned of the partitions, it will optimize the reading and writing speed of your SSD. Read more about SSD alignment here http://lifehacker.com/5837769/make-s...ve-performance

BTW, from what I read in other articles -- cloning HDD to HDD or SDD to SDD don't have this alignment issue.
 
  


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
Looking for a Solid State Drive (SSD)? beachboy2 Linux - Hardware 13 02-10-2016 03:40 PM
Best way to wipe solid state drive jrdioko Linux - Software 6 05-15-2011 06:20 PM
[SOLVED] Solid State Drive - basic question taylorkh Linux - Hardware 7 05-21-2010 04:39 PM
Best io-scheduler for Solid State Drive? brentleary Linux - Kernel 2 03-25-2009 02:33 AM
Solid State Drive Performance Inquiry rocket357 General 2 08-29-2008 06:20 AM


All times are GMT -5. The time now is 03:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration