LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   To change UUID of my swap partition (https://www.linuxquestions.org/questions/linux-server-73/to-change-uuid-of-my-swap-partition-4175424728/)

yahoosam 08-30-2012 04:04 AM

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

acid_kewpie 08-30-2012 04:10 AM

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>

yahoosam 08-30-2012 04:48 AM

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.

acid_kewpie 08-30-2012 05:20 AM

i already did, please read my comments again

yahoosam 09-03-2012 07:38 AM

thnx sir..
that was the way..After searching on Manual i found that..
thnx again


All times are GMT -5. The time now is 10:14 AM.