Steps to mount a drive with an xfs file system

I booted OpenSuse version 12.2 from a DVD and would like to mount a drive with an xfs file system. what are the steps?

Are you using a desktop? If so just open the file manager for the desktop and mount the drive (usually from a side panel). If you are using the command line just make a mount point and mount the drive to it. It would be more useful to know what you are trying to accomplish.

If you just want to view the files then the following should suffice from command line:

  1. Login as root. **su -
    **2. Find the device name using: fdisk -l
  2. Create a mount point. **mkdir /mnt/mydrive
    **4. Mount the drive. Please use the device name you found in step 2 (such as /dev/sdb1). mount /dev/devicename
  3. You can navigate to it using **cd /mnt/mydrive **and list files using ls

Again this is probably easiest using a desktop file manager. The kernel should have built in support for xfs so nothing special needed.

Thank you so much for your prompt and thorough response. I am using a desktop and did try to open the file manager, but the drive wouldn’t mount. When I tried to mount it by right clicking, it gave me an error message. My goal is to just get the files off the drive (the drive was part of an Iomega NAS that “fell off” my network - I assume that the controller on the NAS went bad).

I will try the commands you gave me, but I am concerned that they will not work as it did not appear as if the drive mounted properly. Any other information I should keep in mind?

Is the openSUSE DVD 64 bit?
This link says that XFS is a 64 bit filesystem SGI - Developer Central Open Source | XFS

Please excuse my ignorance on this, but I am not sure whether it is 32 bit or 64 bit. I got the DVD from a UK bagazine called Linux Format and the DVD came free with the magazine. I am looking at the DVD packaging as well as the page in the magazine and I don’t see any indication as to whether it is 32 bit or 64 bit.

Could the openSuse DVD be the problem? Would you have any other advice as to how I can run Linux on my PC (either Mac OS X or Windows 7) in a way that might mount the drive with better success?

it is easy to check whether the DVD is 64 or 32 bit
On booting use the command “arch” in gnome-terminal(gnome) or konsole - KDE Terminal

If the output is similar to this if DVD is 64 bit

$arch
x86_64
$

If the output is similar to this if DVD is 32 bit

$arch
i686
$

Oh darn. I was preoccupied so I failed to finish one of the commands. It needs to be
**mount /dev/devicename /mnt/mydrive

**I have to apologize as this is a horrible mistake for someone like me. I use the mount command several times a day. :frowning:

On 2012-12-26 04:46, scientist1962 wrote:
>
> I booted OpenSuse version 12.2 from a DVD and would like to mount a
> drive with an xfs file system. what are the steps?

The same as for any other filesystem, that it is XFS makes no difference.

On 2012-12-26 05:36, scientist1962 wrote:

> Thank you so much for your prompt and thorough response. I am using a
> desktop and did try to open the file manager, but the drive wouldn’t
> mount.

Why? what did it say?

> When I tried to mount it by right clicking, it gave me an error
> message.

And the error was…?

If you keep those details to yourself, we can not help.

On 2012-12-26 05:56, vazhavandan wrote:>
> Is the openSUSE DVD 64 bit?
> This link says that XFS is a 64 bit filesystem ‘SGI - Developer Central
> Open Source | XFS’ (http://oss.sgi.com/projects/xfs/)

That is not relevant. XFS works the same in 32 bit or 64 bit Linux.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

That is not relevant. XFS works the same in 32 bit or 64 bit Linux.

Did one more search and internet begs to differ
[CentOS] 32-bit kernel+XFS+16.xTB filesystem = potential disaster (was:Re: ZFS @ centOS)]([CentOS] 32-bit kernel+XFS+16.xTB filesystem = potential disaster (was:Re: ZFS @ centOS))
https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/xfsmounting.html

Q: What is the inode64 mount option for? 
By default, with 32bit inodes, XFS places inodes only in the first  1TB of a disk. If you have a disk with 100TB, all inodes will be stuck  in the first TB. This can lead to strange things like "disk full" when  you still have plenty space free, but there's no more place in the first  TB to create a new inode. Also, performance sucks. 

To come around this, use the inode64 mount options for  filesystems >1TB. Inodes will then be placed in the location where  their data is, minimizing disk seeks. 

Beware that some old programs might have problems reading 64bit  inodes, especially over NFS. Your editor used inode64 for over a year  with recent (openSUSE 11.1 and higher) distributions using NFS and Samba  without any corruptions, so that might be a recent enough distro.

Source:- XFS FAQ - XFS.org

On 2012-12-26 17:36, vazhavandan wrote:
>
>> That is not relevant. XFS works the same in 32 bit or 64 bit Linux.
> Did one more search and internet begs to differ

Ah, well, there may be some differences related to indexing. Up till
recently, 1TiB sizes were rare. :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

Soon inode64 will be the default mount option. XFS status update for 2012 - XFS.org

Linux 3.7 will be a fairly boring release as far as XFS is concerned, the biggest user visible changes are an intelligent implementation of the lseek SEEK_HOLE/SEEK_DATA calls, and finally the switch to use the inode64 allocator by default.