LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-30-2012, 04:04 AM   #1
yahoosam
Member
 
Registered: Jun 2012
Posts: 79

Rep: Reputation: Disabled
To change UUID of my swap partition


I am fed up googling on this thing
i used tune2fs but it is saying bad magic word
after that i got tune2fs is not for swap-partition

can any one help
 
Old 08-30-2012, 04:10 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
tune2fs is for ext2/3/4 filesystems. Swap is its own filesystem. What do you actually want to achieve? To change a UUID on swap, recreate it with mkswap -U <UUID>
 
Old 08-30-2012, 04:48 AM   #3
yahoosam
Member
 
Registered: Jun 2012
Posts: 79

Original Poster
Rep: Reputation: Disabled
Actually i am using two hard disks with one server..
the second one is having same replica of currently running HD..

i changed UUID of LABEL="/boot" & LABEL="/" successfully
but in case of swap partition it is saying

Code:
tune2fs: Bad magic number in super-block while trying to open /dev/sdb2
Couldn't find valid filesystem superblock.
so i got that tune2fs is not for swap partition..

can you assist me other way to change UUID of swap-partition.
 
Old 08-30-2012, 05:20 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i already did, please read my comments again
 
Old 09-03-2012, 07:38 AM   #5
yahoosam
Member
 
Registered: Jun 2012
Posts: 79

Original Poster
Rep: Reputation: Disabled
thnx sir..
that was the way..After searching on Manual i found that..
thnx again
 
  


Reply



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] How do I change the UUID of a partition? widget Debian 9 08-30-2012 02:12 AM
[SOLVED] Getting the UUID of a swap partition eldiener Linux - Software 11 07-30-2012 05:38 PM
can I label a swap partition or find its UUID ? centguy Linux - Software 3 09-12-2010 01:37 PM
Swap partition UUID changed. What do I do? searcher1 Linux - Newbie 12 06-05-2010 10:15 AM
Change Partition Number, does UUID change? aragon127 Linux - Software 1 11-24-2006 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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