You are not logged in.

#1 2006-07-29 11:03:58

Majkijin
Member
From: AGH-UST Krakow, Poland
Registered: 2005-08-03
Posts: 18

Remounting Root Filesystem Read-only, what for?

Hi.
I have question. What really for while rebooting/halting system root filesystem is remounted? One second before all filesystems are unmounted. Why it has to be mounted when shutting off the computer.
Thanks in advance.

Offline

#2 2006-07-29 11:43:53

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Remounting Root Filesystem Read-only, what for?

It's mounted read-only during boot so that a filesystem check can be performed. During shutdown its remounted read-only before the reboot or  poweroff command because filesystem transactions can still occur at the point of the reboot or shutdown. Remount read-only tells the filesystem to finish up everything its doing now so these transaction no longer occur at the point of the shutdown or reboot, thus avoiding filesystem inconsistancies.

Offline

#3 2006-07-29 23:52:06

alexpnx
Member
From: Nicosia, Cyprus
Registered: 2006-06-10
Posts: 47

Re: Remounting Root Filesystem Read-only, what for?

I have a question on a similar topic... How unsafe is it if the system is rebooted or shutdown without unmounting samba shares? Can the shares be corrupted?

Offline

#4 2006-07-30 10:07:29

Majkijin
Member
From: AGH-UST Krakow, Poland
Registered: 2005-08-03
Posts: 18

Re: Remounting Root Filesystem Read-only, what for?

Thanks for the explanation.

Offline

#5 2006-08-02 16:35:09

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: Remounting Root Filesystem Read-only, what for?

alexpnx wrote:

I have a question on a similar topic... How unsafe is it if the system is rebooted or shutdown without unmounting samba shares? Can the shares be corrupted?

I think the  file(s) you're writing to during shutdown can be corrupted (not all corrupted, but simply unfinished saved), if you write there at all, but not anything else as the partition is still up on the host and the host takes care of metadata and stuff - it's worse with local partitions where metadata and stuff can be saved uncompletely, which can lead to files disappearing all over the filesystem, some old files showing up again etc.

Can someone else confirm this?

Offline

Board footer

Powered by FluxBB