Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
reboot not working with root
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pentium10
n00b
n00b


Joined: 14 Jan 2008
Posts: 22

PostPosted: Wed Jan 16, 2008 5:59 pm    Post subject: reboot not working with root Reply with quote

can be related to a Read-only filesystem that with root access
even if I type

1. reboot
2. /sbin/shutdown -r now

doesn't work?

the system has read only file system issues read this thread
https://forums.gentoo.org/viewtopic-t-645770-start-0-postdays-0-postorder-asc-highlight-.html
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9877
Location: almost Mile High in the USA

PostPosted: Thu Jan 17, 2008 8:40 am    Post subject: Reply with quote

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
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Thu Jan 17, 2008 9:17 am    Post subject: Reply with quote

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
View user's profile Send private message
pentium10
n00b
n00b


Joined: 14 Jan 2008
Posts: 22

PostPosted: Thu Jan 17, 2008 9:19 am    Post subject: Reply with quote

I want to remount read-write not read-only.

Can I run an fsck before reboot?
Back to top
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Thu Jan 17, 2008 9:23 am    Post subject: Reply with quote

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
View user's profile Send private message
pentium10
n00b
n00b


Joined: 14 Jan 2008
Posts: 22

PostPosted: Thu Jan 17, 2008 9:25 am    Post subject: Reply with quote

I think it's already mounted read-only because I cannot alter the files.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9877
Location: almost Mile High in the USA

PostPosted: Thu Jan 17, 2008 9:51 am    Post subject: Reply with quote

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
View user's profile Send private message
pentium10
n00b
n00b


Joined: 14 Jan 2008
Posts: 22

PostPosted: Thu Jan 17, 2008 9:53 am    Post subject: Reply with quote

For now I can only SSH with Putty, or call the company to reset the PC.
Back to top
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Thu Jan 17, 2008 9:55 am    Post subject: Reply with quote

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
View user's profile Send private message
pentium10
n00b
n00b


Joined: 14 Jan 2008
Posts: 22

PostPosted: Thu Jan 17, 2008 9:58 am    Post subject: Reply with quote

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
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Thu Jan 17, 2008 10:15 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum