Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Model: Dell VIRTUAL DISK (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 263MB 262MB primary ext2 boot
2 263MB 1000GB 999GB primary lvm
Its a server that is running non-stop. I assume i do not need to run fsck or any such program on the filesystem/drive? I read i need to unmount filesystem before i run it (fsck /dev/sda). What would happen if i not unmount it?
If i unmount like: umount /dev/sda and then mount /dev/sda , will the partitions/filesystems return in same state before umount or i need to take a note of something before unmounting?
I assume i do not need to run fsck or any such program on the filesystem/drive?
Why then are you raising this query ?.
Quote:
I read i need to unmount filesystem before i run it (fsck /dev/sda). What would happen if i not unmount it?
Why have you not read the manpage for fsck.ext4 ?.
Quote:
If i unmount like: umount /dev/sda and then mount /dev/sda , will the partitions/filesystems return in same state before umount or i need to take a note of something before unmounting?
Model: Dell VIRTUAL DISK (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 263MB 262MB primary ext2 boot
2 263MB 1000GB 999GB primary lvm
Its a server that is running non-stop. I assume i do not need to run fsck or any such program on the filesystem/drive? I read i need to unmount filesystem before i run it (fsck /dev/sda). What would happen if i not unmount it?
If i unmount like: umount /dev/sda and then mount /dev/sda , will the partitions/filesystems return in same state before umount or i need to take a note of something before unmounting?
If you know how to check your RAID status and disk health, you then know if you need to run fsck. Again, since you've been using Linux for years now, and been asking such questions for years, this is hardly a 'newbie' thing for you. What are you confused about? If you tried running fsck on a mounted file system, it will warn you that it's not a good thing, and you can find MANY pages of documentation telling you this as well, with a simple search, as well as what will happen if you do NOT unmount a file system before running fsck. And, since the program itself is *ON* the root partition...how do you think you'll be able to run it, if you UNMOUNT it, and make it unavailable?
...a way to force your system to run fsck upon a reboot. You don't typically need to run it, unless you're getting errors...which you already know how to check for, based on your previous threads.
This is one compelling reason for using logical volumes.
A volume cannot be checked if it is mounted. Filesystem integrity checks that occur at boot-time take place in a special system state that was purposely contrived to support it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.