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
 
Search this Thread
Old 05-12-2010, 02:26 PM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,561

Rep: Reputation: 37
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, 02:46 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791
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, 02:51 PM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,561

Original Poster
Rep: Reputation: 37
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, 07:39 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Try

/sbin/tune2fs

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

Original Poster
Rep: Reputation: 37
thanks Chris, much appreciated.
 
Old 05-13-2010, 08:43 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,483

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
<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, 09:07 AM   #7
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791
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, 09:08 AM   #8
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791
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, 09:22 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,483

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
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


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


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

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