LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] blkid vs fdisk problem

[ILUG] blkid vs fdisk problem

Ivan Griffin ivan at skynet.ie
Mon Apr 6 16:27:10 IST 2009


Hi,

I have a weird problem that I have not been able to resolve.

Without thinking, I created a RAID0 device of 2 4GB partitions to give me 
a 8GB swap space - /dev/sda2 and /dev/sdb2 became /dev/md2. Obviously, 
this is a redundant thing to do, as the kernel is smart enough to manage 
its own swap space.

I have subsequently tried to back out these changes, and add two separate 
partitions instead

I've changed the types of /dev/sda2 and /dev/sdb2 to Linux swap (0x82) 
with fdisk, and I've run mkswap -L on them, and I've enabled them with 
swapon.

All fine.

I rebooted at this point to ensure the kernel picked up the  correct 
partition table.

However, I noticed /etc/blkid/blkid.tab* was incorrect - it still showed 
them as RAID
/dev/sda2: UUID="ec87d46f-e0af-c9a8-7653-8e1ed3c3b2e5" TYPE="mdraid"
/dev/sdb2: UUID="ec87d46f-e0af-c9a8-7653-8e1ed3c3b2e5" TYPE="mdraid"

No problem, or so I thought. I rm'd /etc/blkid/blkid.tab* and then ran 
blkid -c /dev/null

However, they are still being created as before:
/dev/sda2: UUID="ec87d46f-e0af-c9a8-7653-8e1ed3c3b2e5" TYPE="mdraid"
/dev/sdb2: UUID="ec87d46f-e0af-c9a8-7653-8e1ed3c3b2e5" TYPE="mdraid"


Where is blkid getting this UUID and these partition types?

This is on a Fedora-8 system.

Cheers,
Ivna.



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell