LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-19-2014, 03:59 AM   #1
LiNuXMaN31509
LQ Newbie
 
Registered: Jun 2009
Location: Houston Texas (Born in Brooklyn NY)
Distribution: CentOS
Posts: 25

Rep: Reputation: 0
Mount Issues


Hello everyone,

I have installed Xencenter so I can create a few VMs to work on different things.

I have a 1TB drive that I used to same my media mostly movies. Before installing Xencenter on the new server, I had this drive working and mounted on a server using CentOS 6.4 with no problem all I had to do was install fuse and ntfs-3g and it mounted with out any issues.

When I try to mount it on the host that has Xencenter so I can share it with the VMs here is what I run into:

Code:
[root@localhost ~]# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sda doesn't contain a valid partition table

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
Code:
[root@localhost ~]# mount /dev/sda1 /mnt/media/
mount: you must specify the filesystem type
Code:
[root@localhost ~]# mount -t ntfs /dev/sda1 /mnt/media/
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
The above commands worked with NO problems on the other server MIND you I have installed Fuse and ntfs-3g on the Xenserver host and nothing.

I even tried the following:

Code:
[root@localhost ~]# parted /dev/sda print
Error: Unable to open /dev/sda - unrecognised disk label.                 
Information: Don't forget to update /etc/fstab, if necessary.
Is there anything else at all I can do to mount this drive? I always used /dev/sda1 and it worked and now it won't and I have attached it back to the old host and it works fine.

Any and all help would be greatly appreciated!!

Also, let me know if I need to provide any other information so I can do so as soon as possible.

Thank you
 
Old 10-19-2014, 06:34 PM   #2
simrika
LQ Newbie
 
Registered: Oct 2014
Posts: 6

Rep: Reputation: 0
Create a valid partition first. Then mount with ext4 partition type. NTFS is windows file system.
 
Old 10-19-2014, 09:05 PM   #3
LiNuXMaN31509
LQ Newbie
 
Registered: Jun 2009
Location: Houston Texas (Born in Brooklyn NY)
Distribution: CentOS
Posts: 25

Original Poster
Rep: Reputation: 0
Hello,

Does this delete the data already on the disk? I have about 500+ GB of movies on there. I was able to mount it on a different server and now it won't mount on this Xenserver.
 
Old 10-19-2014, 09:23 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by LiNuXMaN31509 View Post
Hello,

Does this delete the data already on the disk? I have about 500+ GB of movies on there. I was able to mount it on a different server and now it won't mount on this Xenserver.
Yes that would destroy any data on the drive - very bad advice!

If it mounts under the CentOS system then don't do anything to the drive itself - sort out the xenserver as that would seem to be where the problem is.

I don't know anything about xenserver, but presumably GNU/Linux and you said that you have installed ntfs-3g support... is this an external USB drive or internal? Are we sure it is /dev/sda under xencenter?

Last edited by astrogeek; 10-19-2014 at 09:28 PM.
 
Old 10-19-2014, 10:30 PM   #5
LiNuXMaN31509
LQ Newbie
 
Registered: Jun 2009
Location: Houston Texas (Born in Brooklyn NY)
Distribution: CentOS
Posts: 25

Original Poster
Rep: Reputation: 0
Hello,

It's a internal drive and the xencenter OS sees the drive:

[root@localhost ~]# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sda doesn't contain a valid partition table


[root@localhost ~]# cat /var/log/dmesg | grep sda
[ 4.370970] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[ 4.370997] sd 0:0:0:0: [sda] Write Protect is off
[ 4.370999] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 4.371021] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 4.371114] sda: detected capacity change from 0 to 1000204886016
[ 4.371118] sda:
[ 4.402807] sda1
[ 4.403021] sd 0:0:0:0: [sda] Attached SCSI disk


I wonder if there is something else I need to install on here besides fuse and ntfs-3g to get this working but I'm not sure.
 
Old 10-20-2014, 03:50 PM   #6
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
I see that now - the Xencenter machine does detect the drive, but thinks that it has no partition table.

Quote:
Originally Posted by LiNuXMaN31509 View Post
Code:
[root@localhost ~]# mount -t ntfs /dev/sda1 /mnt/media/
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
The above commands worked with NO problems on the other server MIND you I have installed Fuse and ntfs-3g on the Xenserver host and nothing.
The above would seem to be inconsistent with what you are seeing on the Xencenter machine. Can you please confirm that the CentOS machine really did mount the /dev/sda1 partition as indicated.

If so, then the Xencenter machine is not seeing the partition table. If not, then is it possible that the entire drive was formatted as ntfs without having been partitioned? (I seem to recall that is possible but I have not used ntfs for years).

Sorry for the delayed response, I am otherwise occupied most of this week.

Could others with ntfs and/or Xencenter help to offer please consider this a ++bump++ and help LiNuXMaN31509 if possible. Otherwise I'll respond as time permits.
 
Old 10-21-2014, 08:18 AM   #7
LiNuXMaN31509
LQ Newbie
 
Registered: Jun 2009
Location: Houston Texas (Born in Brooklyn NY)
Distribution: CentOS
Posts: 25

Original Poster
Rep: Reputation: 0
Hello,

Yes I can confirm the drive used to work on the old media server I used to have. I used to use Plex as the media server and this drive stored all of my movies.

Also, I checked the last back up of the old media server I had before I took it down and this is what I had in that systems fstab to auto mount the drive on a reboot:

/dev/sda1 /mnt/media ntfs defaults 0 0


The only problem I had is that I needed to install fuse and ntfs-3g on the system before it would mount the drive. I tried it on the new system but it's still not working. Do you think I should try and re-install fuse and ntfs-3g?

Thank You!
 
Old 10-22-2014, 09:39 AM   #8
vwtech
Member
 
Registered: Dec 2007
Distribution: Fedora, Oracle Linux & Centos
Posts: 197

Rep: Reputation: 26
Don't format the disk unless you want to lose all that data.

If the disk partition table was created with gpt you should be able to see it by using parted vice fdisk.
Review this link http://www.cyberciti.biz/faq/redhat-...tfs3g-support/
 
  


Reply



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
[SOLVED] mount issues bluegospel Linux - Newbie 7 06-21-2010 09:16 PM
NFS mount issues noir911 Linux - General 1 10-16-2006 07:58 AM
ntfs mount issues thebiggiantmouse Fedora 4 08-12-2006 07:33 PM
hd mount issues {sn!per} Linux - Newbie 8 12-09-2003 01:20 PM
CD Mount issues Twiggy794 Linux - Games 4 12-02-2003 10:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:56 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
Open Source Consulting | Domain Registration