LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-14-2013, 01:48 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
how to change uuid


My box is scientific linux, and I got this error screen.

Click image for larger version

Name:	20130214__1_kernelpanic.jpg
Views:	30
Size:	123.5 KB
ID:	11831

I try to change uuid of this disk, and I got this syntax.
Code:
blkid /dev/sda2 >> /boot/grub/grub.conf
But my hard disk has ext4 partitiona and lvm partition.
Click image for larger version

Name:	20130214__3_uuid.jpg
Views:	31
Size:	163.3 KB
ID:	11836

For this case, it this right?
Code:
blkid /dev/sda >> /boot/grub/grub.conf
Thanks in advance.

Last edited by windstory; 02-14-2013 at 03:12 AM.
 
Old 02-14-2013, 04:31 AM   #2
ali.abry
Member
 
Registered: Feb 2013
Posts: 74

Rep: Reputation: Disabled
I don't understand the problem clearly but for changing UUID of ext4 partition use tune2fs command with -U option

Code:
                   -U UUID
                          Set  the universally unique identifier (UUID) of the filesys‐
                          tem to UUID.  The format of the UUID is a series of hex  dig‐
                          its      separated      by      hyphens,      like      this:
                          "c1b9d5a2-f162-11cf-9ece-0020afc76f16".  The  UUID  parameter
                          may also be one of the following:

                               clear  clear the filesystem UUID

                               random generate a new randomly-generated UUID

                               time   generate a new time-based UUID

                          The  UUID may be used by mount(8), fsck(8), and /etc/fstab(5)
                          (and possibly others) by specifying UUID=uuid  instead  of  a
                          block special device name like /dev/hda1.

                          See  uuidgen(8) for more information.  If the system does not
                          have a good random number generator such  as  /dev/random  or
                          /dev/urandom,  tune2fs  will  automatically  use a time-based
                          UUID instead of a randomly-generated UUID.
 
1 members found this post helpful.
Old 02-14-2013, 04:39 AM   #3
hilyard
Member
 
Registered: Jan 2010
Location: Inland PNW
Distribution: Lite | siduction
Posts: 291

Rep: Reputation: 66
In addition, gparted has option to change uuid.
I then manually change fstab and do <update-grub>
If something out there will do it for me, so I do not have to suject system to hunan error on copying a uuid, I'm all ears.
 
1 members found this post helpful.
Old 02-14-2013, 10:41 AM   #4
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
hilyard/

Please let me know hot to change uuid with gparted.

I opened gparted with Livecd, and created new uuid.

Click image for larger version

Name:	20130215__5_uuid.jpg
Views:	19
Size:	135.3 KB
ID:	11838

Please let me know where fstab is.
 
Old 02-14-2013, 01:08 PM   #5
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,674

Rep: Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485
It's at /etc/fstab.
 
1 members found this post helpful.
Old 02-14-2013, 02:03 PM   #6
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
DavidMcCann/

Thanks, but unfortunately I could not open "/etc/fstab" at this stage.

Click image for larger version

Name:	20130215__5_uuid2.jpg
Views:	19
Size:	93.0 KB
ID:	11840

Last edited by windstory; 02-14-2013 at 02:05 PM.
 
Old 02-14-2013, 02:37 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,334

Rep: Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907
Quote:
blkid /dev/sda2 >> /boot/grub/grub.conf
No, it is not correct.

Please tell us exactly what you are trying to accomplish. What were you doing when the already mounted error occurred.

/dev/sda2 in a nutshell is a container for logical volumes and does not have a UUID since it is not a file system. /dev/sda2 should contain logical volumes for /(root) and maybe swap.

Last edited by michaelk; 02-14-2013 at 02:42 PM.
 
  


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
[SOLVED] Kernel panic - not syncing cmccullo Linux - Newbie 3 01-22-2012 11:29 AM
Kernel Panic-Not Syncing antonfred Linux - Kernel 3 02-26-2010 06:51 AM
kernel panic not syncing nixdunce Linux - Newbie 5 11-03-2009 04:04 PM
kernel panic not syncing 4TElevn Linux - Kernel 2 12-01-2007 02:51 PM
Kernel panic not syncing n6rob Linux - General 3 02-15-2006 07:13 AM

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

All times are GMT -5. The time now is 06:12 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