LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 11-06-2013, 04:27 AM   #1
applehalf
Member
 
Registered: Oct 2013
Posts: 33

Rep: Reputation: Disabled
mount command


Hello friends!
Today I have a problem with mounting the filesystem:

# mount /dev/mapper/fujitsu_test /u01
mount: you must specify the filesystem type
# mount -t ext4 /dev/mapper/fujitsu_test /u01
mount: wrong fs type, bad option, bad superblock on /dev/mapper/fujitsu_test,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Can anybody help me?
 
Old 11-06-2013, 04:43 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
Maybe it's not ext4 - unless you're sure of that try some other formats.
 
Old 11-06-2013, 04:48 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Maybe to obvious but is fujitsu_test already formatted to a specific FS?
 
Old 11-06-2013, 05:17 AM   #4
applehalf
Member
 
Registered: Oct 2013
Posts: 33

Original Poster
Rep: Reputation: Disabled
This filesystem was workable earlier. (It is my test system, on production system same filesystem mounted as ext4, so I decided that test filesystem is ext4 too.)

I founded something:
# ls -l /dev/disk/by-id|grep -i #my_uuid#
lrwxrwxrwx. 1 root root 10 Nov 1 16:18 dm-uuid-mpath-#my_uuid# -> ../../dm-2
lrwxrwxrwx. 1 root root 9 Nov 6 14:23 scsi-#my_uuid# -> ../../sdh
lrwxrwxrwx. 1 root root 9 Nov 6 14:23 wwn-0x#my_uuid# -> ../../sdh

# mount -t ext4 /dev/dm-2 /u01
mount: wrong fs type, bad option, bad superblock on /dev/mapper/fujitsu_test,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
# mount -t ext4 /dev/sdh /u01
mount: /dev/sdh already mounted or /u01 busy

# fuser -c /dev/sdh
/dev/sdh: 2336
# ps -ef | grep 2336
root 2336 1 0 Nov01 ? 00:00:44 /sbin/multipathd

what is it?
 
Old 11-06-2013, 06:02 AM   #5
redfox2807
Member
 
Registered: Jul 2012
Distribution: Debian testing/stable, Gentoo, CentOS 7, Sailfish OS, Android
Posts: 167

Rep: Reputation: 31
Is it a raid or LVM partition? What do you mean by same filesystem on production system? Is it a cloned partition?
 
Old 11-06-2013, 06:17 AM   #6
applehalf
Member
 
Registered: Oct 2013
Posts: 33

Original Poster
Rep: Reputation: Disabled
It's not clone, but long time ago two servers were created similarry.
This disk is not in lvm.
 
Old 11-06-2013, 06:53 AM   #7
redfox2807
Member
 
Registered: Jul 2012
Distribution: Debian testing/stable, Gentoo, CentOS 7, Sailfish OS, Android
Posts: 167

Rep: Reputation: 31
Please post the following commands' output (Run as root)
Code:
dmsetup -l
fdisk -l
 
Old 11-06-2013, 07:16 AM   #8
applehalf
Member
 
Registered: Oct 2013
Posts: 33

Original Poster
Rep: Reputation: Disabled
# dmsetup -l
dmsetup: invalid option -- 'l'
Couldn't process command line.
# fdisk -l

Disk /dev/sda: 146.8 GB, 146778685440 bytes
255 heads, 63 sectors/track, 17844 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00048103

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 17845 142825472 8e Linux LVM

Disk /dev/sdb: 3298.5 GB, 3298534883328 bytes
255 heads, 63 sectors/track, 401024 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

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

Disk /dev/sdc: 3298.5 GB, 3298534883328 bytes
255 heads, 63 sectors/track, 401024 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

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

Disk /dev/sdd: 3298.5 GB, 3298534883328 bytes
255 heads, 63 sectors/track, 401024 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

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

Disk /dev/sde: 3298.5 GB, 3298534883328 bytes
255 heads, 63 sectors/track, 401024 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

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

Disk /dev/sdf: 3298.5 GB, 3298534883328 bytes
255 heads, 63 sectors/track, 401024 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

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

Disk /dev/sdg: 3298.5 GB, 3298534883328 bytes
255 heads, 63 sectors/track, 401024 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

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

Disk /dev/sdh: 3298.5 GB, 3298534883328 bytes
255 heads, 63 sectors/track, 401024 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

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

Disk /dev/sdi: 3298.5 GB, 3298534883328 bytes
255 heads, 63 sectors/track, 401024 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

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

Disk /dev/mapper/vg_test-lv_root: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/vg_test-lv_root doesn't contain a valid partition table

Disk /dev/mapper/vg_tets-lv_swap: 36.0 GB, 35953573888 bytes
255 heads, 63 sectors/track, 4371 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/vg_test-lv_swap doesn't contain a valid partition table

Disk /dev/mapper/fujitsu_test: 3298.5 GB, 3298534883328 bytes
255 heads, 63 sectors/track, 401024 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/fujitsu_test doesn't contain a valid partition table

Disk /dev/mapper/fujitsu_back: 3298.5 GB, 3298534883328 bytes
255 heads, 63 sectors/track, 401024 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/fujitsu_back doesn't contain a valid partition table

Disk /dev/mapper/vg_oracle_backup-lv_backup: 3298.5 GB, 3298530689024 bytes
255 heads, 63 sectors/track, 401023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/vg_oracle_backup-lv_backup doesn't contain a valid partition table

Disk /dev/mapper/vg_test-lv_home: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/vg_test-lv_home doesn't contain a valid partition table

Disk /dev/mapper/vg_test-lv_oracle: 83.5 GB, 83454066688 bytes
255 heads, 63 sectors/track, 10146 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/vg_test-lv_oracle doesn't contain a valid partition table

Disk /dev/mapper/vg_test-lv_tmp: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/vg_test-lv_tmp doesn't contain a valid partition table
 
Old 11-06-2013, 07:27 AM   #9
redfox2807
Member
 
Registered: Jul 2012
Distribution: Debian testing/stable, Gentoo, CentOS 7, Sailfish OS, Android
Posts: 167

Rep: Reputation: 31
Quote:
Disk /dev/sdh doesn't contain a valid partition table
The disk is either empty or dead.

p.s. by empty I mean completely unformatted
 
Old 11-06-2013, 07:33 AM   #10
applehalf
Member
 
Registered: Oct 2013
Posts: 33

Original Poster
Rep: Reputation: Disabled
It is so sadly!
 
Old 11-06-2013, 07:57 AM   #11
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
@applehalf: Are you sure /dev/mapper/fujitsu_test isn't part of LVM/Raid?

What does pvdisplay show?

Also, what is the output of ls -l /dev/mapper/ and dmsetup ls
 
Old 11-06-2013, 08:04 AM   #12
applehalf
Member
 
Registered: Oct 2013
Posts: 33

Original Poster
Rep: Reputation: Disabled
# pvdisplay
--- Physical volume ---
PV Name /dev/mapper/fujitsu_back
VG Name vg_oracle_backup
PV Size 3.00 TiB / not usable 4.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 786431
Free PE 0
Allocated PE 786431
PV UUID ***************

--- Physical volume ---
PV Name /dev/sda2
VG Name vg_test
PV Size 136.21 GiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 34869
Free PE 0
Allocated PE 34869
PV UUID ***************

# ls -l /dev/mapper
total 0
crw-rw----. 1 root root 10, 62 Nov 1 16:18 control
lrwxrwxrwx. 1 root root 7 Nov 1 16:18 fujitsu_back -> ../dm-3
lrwxrwxrwx. 1 root root 7 Nov 1 16:18 fujitsu_test -> ../dm-2
lrwxrwxrwx. 1 root root 7 Nov 1 16:18 vg_test-lv_home -> ../dm-5
lrwxrwxrwx. 1 root root 7 Nov 1 16:18 vg_test-lv_oracle -> ../dm-6
lrwxrwxrwx. 1 root root 7 Nov 1 16:18 vg_test-lv_root -> ../dm-0
lrwxrwxrwx. 1 root root 7 Nov 1 16:18 vg_test-lv_swap -> ../dm-1
lrwxrwxrwx. 1 root root 7 Nov 1 16:18 vg_test-lv_tmp -> ../dm-7
lrwxrwxrwx. 1 root root 7 Nov 1 16:18 vg_oracle_backup-lv_backup -> ../dm-4
# dmsetup ls
vg_test-lv_home (253, 5)
vg_test-lv_swap (253, 1)
vg_test-lv_root (253, 0)
fujitsu_back (253, 3)
vg_oracle_backup-lv_backup (253, 4)
vg_test-lv_tmp (253, 7)
vg_test-lv_oracle (253, 6)
fujitsu_test (253, 2)
 
Old 11-06-2013, 08:16 AM   #13
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
It seems that /dev/mapper/fujitsu_test has been part of LVM/Raid (or it is, but not set-up/implemented correctly):

lrwxrwxrwx. 1 root root 7 Nov 1 16:18 fujitsu_test -> ../dm-2
fujitsu_test (253, 2)


However, I'm not sure how this happened or how to restore it to the original setup.
 
Old 11-06-2013, 11:44 PM   #14
applehalf
Member
 
Registered: Oct 2013
Posts: 33

Original Poster
Rep: Reputation: Disabled
OK, than the right way will be to format my disk and create new volume group.
Thank you.
 
  


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
command for mount Bharat Jarwal Linux - Newbie 2 02-26-2012 05:38 PM
[SOLVED] mount Iomega external hard drive on debian squeeze, how to use mount command Foxbat1155 Linux - Hardware 15 02-21-2012 04:55 PM
How to allow any user to mount disks with the mount command Windows to Linux Linux - Software 6 11-29-2010 06:21 PM
I'm working with symlinks with mount command to mount remote shares lhorace Linux - Newbie 1 11-21-2009 04:05 PM
Execute command on mount and integrate with gnome-mount / umount Peter Rhone Linux - Newbie 4 11-18-2008 05:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:45 AM.

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