LinuxQuestions.org
Review your favorite Linux distribution.
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 01-12-2009, 11:53 PM   #1
alienexplorers
LQ Newbie
 
Registered: Jan 2009
Location: Hershey, PA, USA
Distribution: Ubuntu 10.04
Posts: 10

Rep: Reputation: 0
Question 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.
 
Old 01-13-2009, 12:35 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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".
 
  


Reply

Tags
fdisk


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
LXer: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
SUDO Problems! Need Help!! Md.Abul Quashem Linux - Newbie 1 10-27-2008 02:04 PM
LXer: sudo, or not sudo: that is the question LXer Syndicated Linux News 0 02-07-2008 05:40 PM
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
SUDO Problems da_tibmeister Linux - Security 5 08-03-2004 08:01 PM

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

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