View previous topic :: View next topic |
Author |
Message |
pentium10 n00b
Joined: 14 Jan 2008 Posts: 22
|
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9877 Location: almost Mile High in the USA
|
Posted: Thu Jan 17, 2008 8:40 am Post subject: |
|
|
it's possible a RO filesystem could cause these symptoms but most likely something corrupted run state.
You could try reboot -f (or reboot -n -f) to force an emergency reboot as your machine has already gone down due to mounting the disk read only. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
schachti Advocate
Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
Posted: Thu Jan 17, 2008 9:17 am Post subject: |
|
|
If all other attempts fail, you can use the magic sysrq key (if it is compiled into the kernel). If you have physical access to the machine press
ALT and SysRq and u (at the same time) to remount all partitions read-only
ALT and SysRq and b (at the same time) to reboot the computer
If you do not have physical access to the machine, you can do
Code: |
echo u > /proc/sysrq-trigger
echo b > /proc/sysrq-trigger
|
_________________ Never argue with an idiot. He brings you down to his level, then beats you with experience.
How-To: Daten verschlüsselt auf DVD speichern. |
|
Back to top |
|
|
pentium10 n00b
Joined: 14 Jan 2008 Posts: 22
|
Posted: Thu Jan 17, 2008 9:19 am Post subject: |
|
|
I want to remount read-write not read-only.
Can I run an fsck before reboot? |
|
Back to top |
|
|
schachti Advocate
Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
Posted: Thu Jan 17, 2008 9:23 am Post subject: |
|
|
pentium10 wrote: | I want to remount read-write not read-only. |
You tried to reboot, and what I wrote there is how to reboot if other attempts fail. It in generell is a good idea to umount (or at least re-mount read-only) all mounted file systems before rebooting. If you reboot the machine via the magic sysrq key, it won't do that, so you manually have to take care of it to prevent data loss on partitions that are mounted rw. That is why I added how to remount all partitions read-only. _________________ Never argue with an idiot. He brings you down to his level, then beats you with experience.
How-To: Daten verschlüsselt auf DVD speichern. |
|
Back to top |
|
|
pentium10 n00b
Joined: 14 Jan 2008 Posts: 22
|
Posted: Thu Jan 17, 2008 9:25 am Post subject: |
|
|
I think it's already mounted read-only because I cannot alter the files. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9877 Location: almost Mile High in the USA
|
Posted: Thu Jan 17, 2008 9:51 am Post subject: |
|
|
if you do run fsck on the disk you _must_ reboot the machine immediately after fscking so you'll still need to find a way to reboot the machine.
Either way you should not remount the disk r/w until you know that memory cache/buffers match what's on the disk (which is not due to failure).
Do you have serial console access to the machine?
Sometimes x86 machines are annoying due to this... hmm. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
pentium10 n00b
Joined: 14 Jan 2008 Posts: 22
|
Posted: Thu Jan 17, 2008 9:53 am Post subject: |
|
|
For now I can only SSH with Putty, or call the company to reset the PC. |
|
Back to top |
|
|
schachti Advocate
Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
Posted: Thu Jan 17, 2008 9:55 am Post subject: |
|
|
Do you have write access to /boot? Then you could set up a little rescue system there, reboot into the rescue system, do the fsck on the / partition and then reboot again. _________________ Never argue with an idiot. He brings you down to his level, then beats you with experience.
How-To: Daten verschlüsselt auf DVD speichern. |
|
Back to top |
|
|
pentium10 n00b
Joined: 14 Jan 2008 Posts: 22
|
Posted: Thu Jan 17, 2008 9:58 am Post subject: |
|
|
I can write to /boot
but I don't know what commands or files to put there, I don't have any knowledge of this. I know a few things but those are limited to the following commands (cd,mc,vi,cp,tar,mysql,chmod ) small things.
Can you help me what shall I put there?
the /var is mounted, and that is read-only
Code: |
europa_e_serv boot # df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md/2 48070408 37995404 7633132 84% /
udev 777096 204 776892 1% /dev
/dev/md/1 68017608 41951260 22611176 65% /var
shm 777096 0 777096 0% /dev/shm
|
|
|
Back to top |
|
|
schachti Advocate
Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
Posted: Thu Jan 17, 2008 10:15 am Post subject: |
|
|
What might be helpfull: https://forums.gentoo.org/viewtopic.php?t=265905. That is a thread about how to boot a LiveCD image from a vfat partition using grub. I think you've already installed grub, and instead of a vfat partition, you can put the LiveCD image to your /boot partition where you still have write access. It won't be easy, especially if you are not familiar with linux, but if you do not have physical access to the machine, you do not have many alternatives. _________________ Never argue with an idiot. He brings you down to his level, then beats you with experience.
How-To: Daten verschlüsselt auf DVD speichern. |
|
Back to top |
|
|
|