LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 08-01-2012, 12:47 AM   #1
FancY_Hat
LQ Newbie
 
Registered: Jan 2012
Posts: 8

Rep: Reputation: Disabled
Mounting a UFS volume on CentOS 6


Okay. so I've got a FileServer that I've put a lot of work into; I decided to have one HDD be the OS, and my brand new 1TB drive be my actual file serving volume.

I got it set up, however ran into a few problems regarding my domain name, BSD, and then a bug, which led me to change my OS to CentOS 6.3. the problem is, that my fileserver volume is UFS which CentOS doesn't recognize by default. I Did some online searching, and found and installed the proper kernel module from here. however now when I attempt to mount it, I get this:
Code:
[root@FileServer files]# mount -t ufs /dev/sda /mnt/FilServe/
mount: wrong fs type, bad option, bad superblock on /dev/sda,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
then I decided to follow my system's suggestion (I figured it knew what it was talking about). I got this:

Code:
[root@FileServer files]# dmesg | tail
ufs was compiled with read-only support, can't be mounted as read-write
however an ls -al of the directory returns:
Code:
[root@FileServer files]# ls -al /dev/sda*
brw-rw----. 1 root disk 8, 0 Aug  2 01:15 /dev/sda
brw-rw----. 1 root disk 8, 1 Aug  2 01:15 /dev/sda1
brw-rw----. 1 root disk 8, 2 Aug  2 01:15 /dev/sda2
so I'm a little worried here. I'm pretty sure, that the hard drive itself is intact, as it was working just fine before, however, I'm confused as to why this is being so uncooperative. I'm not sure why it's saying it's read only, when the permissions say it's not, and even if it is read only, I don't really know how to fix it. I REALLY don't want to have to reformat that volume, as I don't have anything with which to backup the data; so I'm hoping that I missed something, or typed something in wrong. Any help is appreciated
 
Old 08-01-2012, 01:39 AM   #2
roger_heslop
Member
 
Registered: Oct 2009
Location: Leander, TX
Distribution: CentOS
Posts: 81

Rep: Reputation: 31
A bit of a disclaimer, I'm not all familiar with UFS, so if what I'm saying sounds off, let me know. It looks like the mount command used only included the disk, not the partition. For example:

Code:
mount -t ufs /dev/sda /mnt/FilServe/
as opposed to

Code:
mount -t ufs /dev/sda1 /mnt/FilServe/
When you did a listing of /dev/sda*, it did show two partitions, have you tried mounting both partitions with the same result?
 
Old 08-01-2012, 05:00 PM   #3
FancY_Hat
LQ Newbie
 
Registered: Jan 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by roger_heslop View Post

When you did a listing of /dev/sda*, it did show two partitions, have you tried mounting both partitions with the same result?
yes. Sorry. I should have mentioned that before, I've tried both partitions with the same error returned
 
Old 08-01-2012, 05:03 PM   #4
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 433

Rep: Reputation: Disabled
I'm not sure if CentOS can mount UFS. I know the Linux kernel had modules for mounting UFS but last time I recall, it was read-only (and a warning about how dangerous it was also included). Perhaps the configuration is not set in the CentOS kernel?
 
Old 08-01-2012, 05:18 PM   #5
FancY_Hat
LQ Newbie
 
Registered: Jan 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
That would support the error message. "kernel compiled as read only". Even so, It should at least MOUNT, if even as a read only file As for ufs being dangerous, I can't speak for that. I hadn't heard of the that type of file system until I installed freeNAS. But that said, freeNAS had absolutely no problems with it for about a month and a half

Last edited by FancY_Hat; 08-01-2012 at 05:25 PM.
 
Old 08-01-2012, 09:12 PM   #6
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 433

Rep: Reputation: Disabled
UFS isn't dangerous or anything, mounting it using the Linux kernel is what's dangerous.
 
  


Reply

Tags
centos, kmod, mount, ufs


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
Mounting a UFS disk in Solaris Mark_667 Solaris / OpenSolaris 7 05-28-2012 12:35 PM
Trouble mounting external usb hard drive ufs formatted hexstar Linux - Hardware 1 05-24-2007 04:13 PM
mounting a UFS partition in linux newpenguin *BSD 5 02-22-2006 07:56 AM
Mounting UFS in RW mode sstallion Linux - General 1 01-24-2006 06:10 AM
Mounting Solaris UFS volumes under Linux? ldieter Linux - General 1 02-20-2005 08:19 AM


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