LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sudo blkid vs. sudo fdisk -l problems (http://www.linuxquestions.org/questions/linux-newbie-8/sudo-blkid-vs-sudo-fdisk-l-problems-696903/)

alienexplorers 01-12-2009 11:53 PM

sudo blkid vs. sudo fdisk -l problems
 
My normal setup of partitions is as followed:
Quote:

terminator@terminator-desktop:~$ sudo fdisk -l
[sudo] password for terminator:

Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0006db91

Device Boot Start End Blocks Id System
/dev/sda1 * 1 4865 39078081 c W95 FAT32 (LBA)

Disk /dev/sdb: 40.9 GB, 40981118976 bytes
255 heads, 63 sectors/track, 4982 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8f800000

Device Boot Start End Blocks Id System
/dev/sdb1 1 2713 21792141 83 Linux
/dev/sdb2 2714 4349 13141170 83 Linux
/dev/sdb3 4350 4982 5084572+ 82 Linux swap / Solaris
When I run sudo blkid I get a totally different partition listing:
Quote:

terminator@terminator-desktop:~$ sudo blkid
/dev/ramzswap0: TYPE="swap"
/dev/sda1: LABEL="WINDOWS" UUID="4CA7-E543" TYPE="vfat"
/dev/sdb1: UUID="f117c6ed-5497-4cfe-8333-7a531d64b98b" TYPE="ext3"
/dev/sdb2: UUID="2d15cb8a-cdb2-42db-8a9d-c467fb2f36a6" TYPE="ext3" SEC_TYPE="ext2"
/dev/sdb3: TYPE="swap" UUID="0442cde4-9687-4f59-a6fb-cbf55812a724"
/dev/sda2: UUID="f06f391b-5505-423a-853f-0bed711c04ff" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda3: UUID="fd5c5c3f-9748-4ddd-92e2-5f1b7e6e73d9" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda4: TYPE="swap" UUID="91821b84-bfeb-4017-a9d0-aa6b669ba1cd"

terminator@terminator-desktop:~$

Why am I getting /dev/sda2,3,and 4 when they have never existed. How would I go about getting rid of these non-existent partions from the sudo blkid printout.

catkin 01-13-2009 12:35 AM

Guessing ...

You are probably seeing the non-existent devices because they are listed in /etc/blkid.tab.

You can suppress them from the listing by using blkid -c /dev/null

You can suppress them permanently by deleting the /etc/blkid.tab file.

If my guess is correct then it's strange that the non existent devices got into the blkid.tab file if "they have never existed".


All times are GMT -5. The time now is 06:29 PM.