LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 05-12-2010, 01:26 PM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,320

Rep: Reputation: 36
tune2fs says Couldn't find valid filesystem superblock


I'm logged into a server through the CLI and did a df -T and confirmed all my volumes are ext3. but when I do a tune2fs -l /dev/sde it tells me
tune2fs 1.39 (29-May-2006)
tune2fs: Permission denied while trying to open /dev/sde
Couldn't find valid filesystem superblock.

I don't have root access on the server, but is that why it's complaining, or is my syntax incorrect?
 
Old 05-12-2010, 01:46 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,770
Blog Entries: 4

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
First error was:
Quote:
tune2fs: Permission denied while trying to open /dev/sde
Typically you should focus on the first error as it may be the source of later errors. In this case it told you it couldn't open the device due to a permission error which suggests that the most likely reason it couldn't find the superblock is is couldn't search for it in the first place.

Does /dev/sde exists?

What permissions are on the file?

Are you running your tune2fs command as root?

Does fdisk -l /dev/sde show you anything?
 
Old 05-12-2010, 01:51 PM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,320

Original Poster
Rep: Reputation: 36
I dont have root access on the server unfortunately, which was my guess as to why it wasn't working, which I think you've just confirmed by your questioning. Thanks!
 
Old 05-12-2010, 06:39 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
Try

/sbin/tune2fs

should work even as non-root, at least for read-only ops
 
Old 05-13-2010, 07:17 AM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,320

Original Poster
Rep: Reputation: 36
thanks Chris, much appreciated.
 
Old 05-13-2010, 07:43 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,807

Rep: Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923
<rant>
Security by obscurity is mind-numbingly inane.
Not quite as stupid as requiring root/sudo as Ubuntu tend to even for something as innocuous as "fdisk -l", but bloody close.
</rant>
 
Old 05-13-2010, 08:07 AM   #7
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,770
Blog Entries: 4

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Quote:
Originally Posted by chrism01 View Post
Try

/sbin/tune2fs

should work even as non-root, at least for read-only ops
Didn't work for me on CentOS5. It ran the command but got the permission error. I don't think his issue was finding tune2fs but rather that /dev/sde doesn't have permissions for him to read the device directly.

Typically disk files are owned by root and grouped to disk and no permissions are given to non-root users. There isn't much reason non-root users should be directly accessing disk devices especially if filesystems have been laid out on them. If they're being used for raw devices then one should be using /dev/raw paths rather than the device itself.

Also I missed it in the first reply: /dev/sde would be the entire disk - typically filesystems are laid out on disk partitions rather than the entire disk so it seems you should be looking at something like /dev/sde1 (first partition) rather than /dev/sde even if it were root. (Of course this assumes it isn't on an LVM Logical Volume or Metadisk software raid.) Run "df -h <filesystem_directory_mount>" to see what the device for the filesystem is.
 
Old 05-13-2010, 08:08 AM   #8
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,770
Blog Entries: 4

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Quote:
Originally Posted by syg00 View Post
<rant>
Security by obscurity is mind-numbingly inane.
Not quite as stupid as requiring root/sudo as Ubuntu tend to even for something as innocuous as "fdisk -l", but bloody close.
</rant>
I don't see this as a case of obscurity. As noted in my post above I don't believe the issue was lack of full path. The OP's original results show he had tune2fs in his PATH.
 
Old 05-13-2010, 08:22 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,807

Rep: Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923
Point taken - I was in a particularly cranky mood with distro devs at the time. Not an unusual situation it must be said.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Did I screw up my filesystem with tune2fs? Thaidog Linux - General 2 02-19-2008 03:21 PM
ext2 filesystem and superblock problem. Unknown_User Linux - Server 2 02-28-2007 04:27 PM
hfs: unable to find HFS+ superblock VFS: Can't find ext3 filesystem on dev sdb. macroron Linux - Hardware 3 11-20-2006 09:50 PM
Corrupted superblock/filesystem? (Ext3) elrohir_telperi Linux - General 2 05-04-2004 05:29 AM
what is superblock in filesystem? ramya272 Linux - Newbie 5 02-27-2004 06:14 PM


All times are GMT -5. The time now is 09:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration