LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-30-2014, 04:07 AM   #1
postcd
Member
 
Registered: Oct 2013
Posts: 531

Rep: Reputation: Disabled
Server suddenly lost mount - /dev/sda doesn't contain a valid partitio


Hello,

can You please give me an advice why my named dont want to start suddenly?

Please check this kindly:

[root@serv ~]#*service named restart
Stopping named: [ OK ]
Locating /var/named/chroot//etc/named.conf failed:
[FAILED]
*
[root@serv ~]# locate named.conf
/etc/dbus-1/system.d/named.conf
/usr/share/doc/bind-9.3.6/sample/etc/named.conf
/usr/share/logwatch/default.conf/services/named.conf
/usr/share/man/man5/named.conf.5.gz
[root@serv ~]# cp /usr/share/doc/bind-9.3.6/sample/etc/named.conf /var/named/chroot/etc
cp: cannot create regular file `/var/named/chroot/etc/named.conf': Read-only file system

[root@serv ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
1866322480 554196528 1215792948 32% /
/dev/sda1 101086 38675 57192 41% /boot
tmpfs 12312444 0 12312444 0% /dev/shm

[root@serv ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

mount: warning: /etc/mtab is not writable (e.g. read-only filesystem).
It's possible that information reported by mount(8) is not
up to date. For actual information about system mount points
check the /proc/mounts file.
*
[root@serv ~]# fdisk -l
*
Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
*
Disk /dev/sda doesn't contain a valid partition table
*

[root@serv ~]# blkid
/dev/mapper/VolGroup00-LogVol01: TYPE="swap"
/dev/mapper/VolGroup00-LogVol00: UUID="9a2e6ab0-00b5-46c0-bbc6-e0bcc41f1315" TYPE="ext3"
/dev/sda1: LABEL="/boot" UUID="722940e7-59fd-417f-8b31-fbf574090120" TYPE="ext3" SEC_TYPE="ext2"
/dev/VolGroup00/LogVol00: UUID="9a2e6ab0-00b5-46c0-bbc6-e0bcc41f1315" TYPE="ext3"
/dev/VolGroup00/LogVol01: TYPE="swap"

*
How can i try to fix this please?
 
Old 10-30-2014, 04:27 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Locating /var/named/chroot//etc/named.conf failed:
[FAILED]
maybe the double slashes are wrong?
have you checked whether the file /var/named/chroot/etc/named.conf actually exists?
shouldn't it be /etc/named.conf?
 
Old 10-30-2014, 04:39 AM   #3
postcd
Member
 
Registered: Oct 2013
Posts: 531

Original Poster
Rep: Reputation: Disabled
thanks, no the whole filesystem is read only :-(
(Disk /dev/sda doesn't contain a valid partition table)

i dont know what to do?

fdisk /dev/sda
invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

mount: warning: /etc/mtab is not writable (e.g. read-only filesystem).
 
Old 10-30-2014, 04:38 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
somehow what you answered has nothing to do with what i asked...?

wait, are you saying the root filesystem is read-only? that usually means something went haywire very early in the boot process...
 
1 members found this post helpful.
Old 10-30-2014, 04:47 PM   #5
postcd
Member
 
Registered: Oct 2013
Posts: 531

Original Poster
Rep: Reputation: Disabled
Quote:
you saying the root filesystem is read-only? that usually means something went haywire very early in the boot process...
yes, it appears there misteriously happend some filesystem based error, like empty partition table or something that way. Alas i did that mistake to reset server because someone told me that filesystem should be recovered automatically at boot. it was not, and i ended up on IPMI console with messages:
Quote:
Reboot and select proper boot device or insert boot media in selected boot device
No DHCP or proxyDHCP offers were received
Media test failure, check cable
Exitting intel boot agent
im now stuck not knowing how to proceed, hosting provider suggests that i "boot a rescue ISO through the IPMI, connect to the internet from that live CD and back up anything you need (If it's still available)" and also says "Your initial replies showed that the partition table was missing, we don't know what caused this. But until you can restore that, recovering anything might be impossible.". I really dont know how i can somehow simply (im super noob) make it boot, i cant spend two weeks of reading and trying and renewing this server hoping i will recover it. Thats why im asking there if anyone know the steps to do, can suggest or help? Thank You

Last edited by postcd; 10-30-2014 at 04:49 PM.
 
Old 10-30-2014, 05:06 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,961
Blog Entries: 46

Rep: Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188
Member Response

Hi,

Be sure to have a backup.

You can boot into 'single user mode ' using your install media. Then perform a 'fsck' on the filesystem;
Quote:
fsck - check and repair a Linux filesystem

SYNOPSIS
fsck [-lsAVRTMNP] [-C [fd]] [-t fstype] [filesys...] [--] [fs-specific-options]

DESCRIPTION
fsck is used to check and optionally repair one or more Linux filesystems. filesys can be a device name (e.g. /dev/hdc1, /dev/sdb2), a mount point
(e.g. /, /usr, /home), or an ext2 label or UUID specifier (e.g. UUID=8868abf6-88c5-4a83-98b8-bfc24057f7bd or LABEL=root). Normally, the fsck pro-
gram will try to handle filesystems on different physical disk drives in parallel to reduce the total amount of time needed to check all of them.

If no filesystems are specified on the command line, and the -A option is not specified, fsck will default to checking filesystems in /etc/fstab
serially. This is equivalent to the -As options.

The exit code returned by fsck is the sum of the following conditions:

0 No errors
1 Filesystem errors corrected
2 System should be rebooted
4 Filesystem errors left uncorrected
8 Operational error
16 Usage or syntax error
32 Fsck canceled by user request
128 Shared-library error

The exit code returned when multiple filesystems are checked is the bit-wise OR of the exit codes for each filesystem that is checked.

In actuality, fsck is simply a front-end for the various filesystem checkers (fsck.fstype) available under Linux. The filesystem-specific checker is
searched for in /sbin first, then in /etc/fs and /etc, and finally in the directories listed in the PATH environment variable. Please see the
filesystem-specific checker manual pages for further details.
By using 'single user mode' you are insuring no other activity on the system when performing the file system check/repair.
Hope this helps.
Have fun & enjoy!
 
1 members found this post helpful.
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/sda is not a valid block device C++ Linux - Hardware 23 03-24-2008 11:07 AM
/dev/sda is not a valid block device !!help!! akjafry Linux - Newbie 3 10-09-2007 11:00 AM
Can't mount /dev/sda-e on Debian Server canegames Debian 7 04-01-2006 04:47 PM
/dev/sda is not a valid block device craig467 Linux - General 23 02-17-2006 05:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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