<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Stuck in runlevel 3 with / as read only in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037065#M48387</link>
    <description>Thanks xyko,&lt;BR /&gt;&lt;BR /&gt;I cannot telnet or ssh to that server so getting those files is going to be hard...&lt;BR /&gt;I will try to post what seems the mos relevant entries.&lt;BR /&gt;&lt;BR /&gt;Ta</description>
    <pubDate>Wed, 28 Mar 2007 11:35:42 GMT</pubDate>
    <dc:creator>Oscar Garcia</dc:creator>
    <dc:date>2007-03-28T11:35:42Z</dc:date>
    <item>
      <title>Stuck in runlevel 3 with / as read only</title>
      <link>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037063#M48385</link>
      <description>Hi Guys,&lt;BR /&gt;&lt;BR /&gt;I am running Suse SLES 8 in an HP proliant DL385 and after trying to configure nfs and samba I ended up with an unusable machine.&lt;BR /&gt;Basically all the filesystems are readonly. I tried to mount / in single user mode, but it comes with:&lt;BR /&gt;mount: can't find / in /etc/fstab or /etc/mntab&lt;BR /&gt;&lt;BR /&gt;Any ideas how to make it available? Any thing I tried to do just tells me is read-only...&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Wed, 28 Mar 2007 10:32:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037063#M48385</guid>
      <dc:creator>Oscar Garcia</dc:creator>
      <dc:date>2007-03-28T10:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck in runlevel 3 with / as read only</title>
      <link>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037064#M48386</link>
      <description>Hi Oscar,&lt;BR /&gt;&lt;BR /&gt;would you please attach boot.log, boot.msg and messages from /var/log ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Xyko</description>
      <pubDate>Wed, 28 Mar 2007 10:36:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037064#M48386</guid>
      <dc:creator>xyko_1</dc:creator>
      <dc:date>2007-03-28T10:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck in runlevel 3 with / as read only</title>
      <link>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037065#M48387</link>
      <description>Thanks xyko,&lt;BR /&gt;&lt;BR /&gt;I cannot telnet or ssh to that server so getting those files is going to be hard...&lt;BR /&gt;I will try to post what seems the mos relevant entries.&lt;BR /&gt;&lt;BR /&gt;Ta</description>
      <pubDate>Wed, 28 Mar 2007 11:35:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037065#M48387</guid>
      <dc:creator>Oscar Garcia</dc:creator>
      <dc:date>2007-03-28T11:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck in runlevel 3 with / as read only</title>
      <link>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037066#M48388</link>
      <description>Well to make things worst, there is not /var/log only /var/lib and /var/run...&lt;BR /&gt;&lt;BR /&gt;The only filesystems that appear in the fstab are nfs ones.&lt;BR /&gt;&lt;BR /&gt;I think is important to mention that I am using LVM and I have defined only one vg00, where everythings hangs of except /boot and swap.&lt;BR /&gt;One of the first errors I notice is something like:&lt;BR /&gt;Can't fsck because root is not read-only&lt;BR /&gt;&lt;BR /&gt;and these are the last lines of the boot:&lt;BR /&gt;Failed services in runlevel 5: random hotplug sshd nfs xdm&lt;BR /&gt;Skipped services in run level 5: isdn nmb sshd cups hwscon postfix smb atd cron nscd inetd&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Mar 2007 12:17:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037066#M48388</guid>
      <dc:creator>Oscar Garcia</dc:creator>
      <dc:date>2007-03-28T12:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck in runlevel 3 with / as read only</title>
      <link>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037067#M48389</link>
      <description>Oscar,&lt;BR /&gt;&lt;BR /&gt;show us the result of the command&lt;BR /&gt;&lt;BR /&gt;#mount&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Xyko</description>
      <pubDate>Wed, 28 Mar 2007 12:24:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037067#M48389</guid>
      <dc:creator>xyko_1</dc:creator>
      <dc:date>2007-03-28T12:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck in runlevel 3 with / as read only</title>
      <link>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037068#M48390</link>
      <description>Yeah, the major issue is that you've fried your '/etc/fstab'.&lt;BR /&gt;&lt;BR /&gt;There should be (at a minimum) a '/' and 'swap' entry in there for local devices.&lt;BR /&gt;&lt;BR /&gt;You've also mentioned that '/boot' is missing.&lt;BR /&gt;&lt;BR /&gt;Now, assuming you've got all your LVM modules loaded, and the machine does a 'vgscan' (and 'vgchange -a y')on boot-up, you can probably try the following:&lt;BR /&gt;&lt;BR /&gt;mount LABEL=/boot /boot&lt;BR /&gt;&lt;BR /&gt;(as a test).  Most modern distro's "LABEL" the filesystems so you can use this method.&lt;BR /&gt;&lt;BR /&gt;If that works, then add entries similar to:&lt;BR /&gt;&lt;BR /&gt;LABEL=/ / ext3 defaults 1 1&lt;BR /&gt;LABEL=/boot /boot ext3 defaults 1 2&lt;BR /&gt;&lt;BR /&gt;to your '/etc/fstab', and reboot.&lt;BR /&gt;&lt;BR /&gt;Going back a bit, to explain why you're seeing what you are seeing...&lt;BR /&gt;&lt;BR /&gt;As the system boots (of an initrd etc.), it creates a fake-root of the initrd's details.  It then 'pivot_root's to your real '/' device, and continues the booting from there.  This then uses your '/etc/fstab' to correctly mount the remainder of your filesystems, usually in '/etc/rc.d/rc.sysinit', including the re-mounting of root (with a command similar to "mount -n -o remount,rw /") into read-write mode.  As '/etc/fstab' doesn't exist, the short-hand method of mount (using only the existing mount-point) doesn't work, as there's no map-entry in the fstab.&lt;BR /&gt;&lt;BR /&gt;Unf... yay...&lt;BR /&gt;&lt;BR /&gt;Fix fstab, reboot, all should be well.</description>
      <pubDate>Wed, 28 Mar 2007 18:30:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037068#M48390</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-03-28T18:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck in runlevel 3 with / as read only</title>
      <link>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037069#M48391</link>
      <description>Note that the list of mounted disks provided by "mount" command comes from /etc/mnttab, which might have stale data if the root filesystem is in read-only state.&lt;BR /&gt;&lt;BR /&gt;In a situation like this, you should check /proc/mounts. It may not have all the details /etc/mnttab has, but if /proc is properly mounted by the startup scripts, the data will be current (/proc is a pseudo-filesystem; its data is generated from the kernel memory structures on demand).&lt;BR /&gt;&lt;BR /&gt;To make the root filesystem writeable, you should run "mount -o remount,rw /". This is often the first command you'll need to use when booting to the single user mode, so it's good to remember it.</description>
      <pubDate>Thu, 29 Mar 2007 01:34:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037069#M48391</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2007-03-29T01:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck in runlevel 3 with / as read only</title>
      <link>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037070#M48392</link>
      <description>Thanks guys for your replies.&lt;BR /&gt;&lt;BR /&gt;The result of mount is:&lt;BR /&gt;proc on /proc type proc(rw)&lt;BR /&gt;&lt;BR /&gt;The result of mount LABEL=/boot /boot&lt;BR /&gt;mount:no such partition&lt;BR /&gt;&lt;BR /&gt;and this is what I have in /proc/mounts :&lt;BR /&gt;rootfs / rootfs rw 0 0&lt;BR /&gt;/dev/root / reiserfs ro 0 0&lt;BR /&gt;proc /proc proc rw 0 0&lt;BR /&gt;devpts /dev/pts devpts rw 0 0&lt;BR /&gt;shmfs /dev/shm shm rw 0 0&lt;BR /&gt;lindev7:/my_remote_dir /my_local nfs rw, v2, reserved,hard,udp,lock, addr=... 0 0&lt;BR /&gt;&lt;BR /&gt;I have changed to init 1 and when trying to mount -o remount,rw / it comes back with this:&lt;BR /&gt;mount: can't find / in /etc/fstab or /etc/mtab&lt;BR /&gt;&lt;BR /&gt;So it seems that the only hope is to use /proc, but I do not know what to put there...&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Thu, 29 Mar 2007 04:40:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037070#M48392</guid>
      <dc:creator>Oscar Garcia</dc:creator>
      <dc:date>2007-03-29T04:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck in runlevel 3 with / as read only</title>
      <link>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037071#M48393</link>
      <description>OK, so you'll need to figure out your disk structure first...&lt;BR /&gt;&lt;BR /&gt;Begin by checking out /proc/partitions: it's a list of all disk partitions the system currently has detected. Do you see any "dm-&lt;NUMBER&gt;" -style entries? If you do, LVM might already be active. If not, you must activate it manually.&lt;BR /&gt;&lt;BR /&gt;As you have a LVM-based system, a "vgscan -v" might help to understand the current situation. Then activate all available volume groups with "vgchange -a y". If the LVM device nodes are missing, "vgscan --mknodes" should fix that. (None of these commands should do any harm, even if they aren't needed.)&lt;BR /&gt;&lt;BR /&gt;You currently seem to have both /etc/fstab and /etc/mtab in unusable state. First you need to try to reconstruct the /etc/fstab, I think.&lt;BR /&gt;&lt;BR /&gt;Have you already checked whether there is a backup version of /etc/fstab still available in the system? (ls -l /etc/fstab*)&lt;BR /&gt;&lt;/NUMBER&gt;</description>
      <pubDate>Thu, 29 Mar 2007 05:51:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037071#M48393</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2007-03-29T05:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck in runlevel 3 with / as read only</title>
      <link>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037072#M48394</link>
      <description>Matti,&lt;BR /&gt;&lt;BR /&gt;I cannot see any "dm-&lt;NUMBER&gt;" -style entry. However there is a list of what seems to be the partition map. It has 15 columns and start with "major minor #blocks name ..."&lt;BR /&gt;the first entry is&lt;BR /&gt;58 0 1048576 lvma and 11 columns with 0&lt;BR /&gt;&lt;BR /&gt;the last 4 entries show what it seems to be the partitions for c0d0, c0d0p1 /boot, c0d0p2 swap and c0d0p3 lvm.&lt;BR /&gt;&lt;BR /&gt;I ran vgchange -ay with "vgchange -- volume group "vg00" already active" as result.&lt;BR /&gt;&lt;BR /&gt;I also found a /etc/fstab.orig file. I think there are a couple of filesystems missing, but I can afford to loose them.&lt;BR /&gt;&lt;BR /&gt;Ta&lt;/NUMBER&gt;</description>
      <pubDate>Thu, 29 Mar 2007 07:20:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037072#M48394</guid>
      <dc:creator>Oscar Garcia</dc:creator>
      <dc:date>2007-03-29T07:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck in runlevel 3 with / as read only</title>
      <link>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037073#M48395</link>
      <description>My mistake. SLES8 is apparently kernel 2.4-based, so it uses "lvm*" naming style in /proc/partitions instead of "dm-*". No problem.&lt;BR /&gt;&lt;BR /&gt;Good thing you found the fstab.orig file.&lt;BR /&gt;&lt;BR /&gt;Now the first thing to do would be to create a valid "basic" /etc/fstab. Even just having a correct line for the root filesystem would be an improvement, but I think you have more than that in there. &lt;BR /&gt;&lt;BR /&gt;To make your root filesystem writeable when /etc/fstab is incorrect, you need the device name of the partition or logical volume that contains the root filesystem.&lt;BR /&gt;&lt;BR /&gt;"ls -l /dev/vg00" should display the names of all the logical volumes of vg00, in case you've forgotten and the fstab.orig does not mention that. "vgdisplay -v" might be useful too.&lt;BR /&gt;&lt;BR /&gt;If you only have LABELs in the fstab.orig file, they *should* work instead of device name at this point... but in case they don't, the way to peek at the LABELs of each is to use the appropriate "tunefs" command.&lt;BR /&gt;For reiserfs, the command seems to be "reiserfstune &lt;DEVICE&gt;"; for ext2 and ext3 filesystems, the command is "tune2fs -l &lt;DEVICE&gt;".&lt;BR /&gt;&lt;BR /&gt;(Disclaimer: I've never had to use the reiserfstune command, and don't have a system with reiserfs available for checking. But as I understand the man page, this would be the correct syntax to view the filesystem parameters, including the LABEL.)&lt;BR /&gt;&lt;BR /&gt;The command to explicitly remount the root filesystem to writeable state, without needing to refer to /etc/fstab and without writing /etc/mtab would be:&lt;BR /&gt;&lt;BR /&gt;mount -n -o remount,rw &lt;CORRECT_ROOT_DEVICE&gt; /&lt;BR /&gt;&lt;BR /&gt;When you get the root filesystem to writeable state, replace the option "-n" (don't update /etc/mtab) with "-f" (do everything but the actual mount) and run the command again to get the root filesystem line of your /etc/mtab up to date.&lt;BR /&gt;&lt;BR /&gt;Now you should be able to fix the /etc/fstab file!&lt;BR /&gt;&lt;BR /&gt;Remember: if you lose only /etc/fstab, it only means the system does not mount your partitions and logical volumes automatically. The data is still there on the disks, you just need to tell the system the correct places to mount the volumes.&lt;BR /&gt;&lt;BR /&gt;When your root filesystem is mounted read-only and nothing else is mounted, you may be restricted to a limited set of commands (if /usr is a separate filesystem and still unmounted). When you get the root filesystem and /usr back to normal state, it should be much easier to identify and mount the rest.&lt;/CORRECT_ROOT_DEVICE&gt;&lt;/DEVICE&gt;&lt;/DEVICE&gt;</description>
      <pubDate>Thu, 29 Mar 2007 16:45:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037073#M48395</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2007-03-29T16:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck in runlevel 3 with / as read only</title>
      <link>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037074#M48396</link>
      <description>Matti you are a wizard!&lt;BR /&gt;I've got all the information I needed from the commands/files you recommended and I executed the mount -n -o remount,rw &lt;CORRECT_ROOT_DEVICE&gt; / followed by the -f command.&lt;BR /&gt;It worked as a dream! I was able to edit the /etc/fstab and put all the filesystems back.&lt;BR /&gt;After re-starting the server I noticed that / was full as somebody created a tmpswap for an oracle installation...&lt;BR /&gt;I have also noticed that creating lvms on the fly is not the best practice as it is only after reboot that something goes wrong.&lt;BR /&gt;&lt;BR /&gt;By the way, I did not run the reiserfstune &lt;DEVICE&gt; command.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot!&lt;/DEVICE&gt;&lt;/CORRECT_ROOT_DEVICE&gt;</description>
      <pubDate>Fri, 30 Mar 2007 11:41:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/stuck-in-runlevel-3-with-as-read-only/m-p/5037074#M48396</guid>
      <dc:creator>Oscar Garcia</dc:creator>
      <dc:date>2007-03-30T11:41:34Z</dc:date>
    </item>
  </channel>
</rss>

