Debian :: Run Fsck During A Shutdown Sequence?

Nov 27, 2010

I want to be able to run fsck at, or near, shutdown at the end of the day, and not have to wait for it when booting (important now that I have 1TB drives!). As far as I can tell, the only way to arrange to run fsck on the root partition is if it is unmounted and I believe that only occurs at reboot time.

So, I thought of using the /forcefsck file that, when exists, will force file system check upon the next boot. So I envision having a script that touches that file, or issues the right shutdown command, then lets the system reboot and thus forcing a fsck of the root partition. However, I then want the system to turn right around and then shutdown, so that when I cold boot the system in the morning, I won't see the fsck run at that time, ever.

So I think this boils down to being able to run a one-time init script or something like that. Is there an established way or idiom for running an init script only one time? I know I can create a non-standard init-script that looks for a special file like is done for /forcefsck, and only shutdown if that file is seen, but surely someone else has already come up with a canned solution/init-script to what I want to do.

View 5 Replies


ADVERTISEMENT

Ubuntu :: Run Fsck At Shutdown?

Jun 29, 2010

Every 32 boot ups, the fsck runs automaticall on my drives.Iould like it to run at shutdown and was looking for a solution.I saw an app call autofsck but not find it in synaptic.Can someone help me find a solution to this. I am running a laptop with 9.10 and a desktop with 8.10.

View 3 Replies View Related

Ubuntu Servers :: Run Fsck If Last Shutdown Wasn't Clean?

Jun 13, 2010

I have a file server that has a raid array with a jfs file system attached. Whenever there is a power cut (quite frequently in our house), and the server is not shutdown cleanly, then the raid array is not automatically mounted since ubuntu doesn't know if the journal is clean. I have to then manually run fsck and remount the partition by hand which is a bit annoying. Basically, does anybody know if fsck can be setto run if a non-clean shutdown has been detected, or failing that, on every boot?

View 2 Replies View Related

Slackware :: Large Partition Fsck On Shutdown Instead Of Boot?

Sep 15, 2010

Got tired of long waits for fsck on very large partitions.Here's a script to fsck selected partitions every 'N' shutdowns. No more boot delays for fsck (unless something is really wrong

Update1: On my system '/usr/libexec/gam_server' (gamin component used by xfce) prevented /home from being unmounted. I changed
Code:

[code]...

View 4 Replies View Related

CentOS 5 :: FSCK: Generate Log File For A Forced Fsck?

Sep 25, 2009

When I do a forced fsck, I would like to have a log file to look at after boot.

When I check /var/log/ there are no files there with fsck output

I've run force fsck in these ways:

shutdown -rF now

-and-

touch /forcefsck

View 1 Replies View Related

Debian :: How To Continue Booting Debian After Fsck Is Failed?

Dec 31, 2010

I have bunch of partitions on my Debian server installation, so I was experimenting with partitions and saw that is one partition fails fsck on booting time, system waits for root password or CTRL+D key combination. The problem is that my Debian machine is headless and I use only SSH to it. So if fsck fails, I can't to login to SSH (off course, because it is not loaded at this time). So I need to go with monitor and keyboard to machine and press CTRL+D.One option is to disable disk checking at startup by changing fstab file. I don't like this option. Is there any possibility to auto continue booting Debian machine ?

View 2 Replies View Related

Debian :: C201 Chromebook / Boot Sequence After Kernel

Aug 29, 2015

I am trying to setup a debian sid on my Chromebook (Asus C201 / Rockchip ARM).I've followed the howto here : URL.....Debootstrap ok, config ok, kernel repack ok... everything went fine until the first boot.When i boot from the sd card, nothing seem to happen. The screen stay black, no text appear.Back in chromeos, i check the syslog and the kernel did load successfully.

Code: Select allAug 29 16:10:32 armbox systemd[1]: Startup finished in 2.256s (kernel) + 1.798s (userspace) = 4.054s.

It seems after the kernel loads, nothing happen next.

Kernel is on mmcblk1p1
Rootfs is on mmcblk1p2
My kernel config is :
Code: Select allconsole=tty1 printk.time=1 nosplash rootwait root=/dev/mmcblk1p2 rw rootfstype=ext2 lsm.module_locking=0

View 13 Replies View Related

Debian :: Usplash Causing Booting Sequence To Stop

Sep 4, 2010

I have debian/sid on my new hp/Compaq Presario CQ62 laptop. I installed usplash and started getting booting issues every fourth or 5th boot. The system stops responding till I power off the system by pressing the power switch. I checked the syslog and noticed that it also stopped without logging the cause.

By the way, except the above issue, every thing works great on my laptop with debian/sid including the wireless using the native linux driver which I obtained from hp website.

View 2 Replies View Related

Debian Hardware :: RK3288 Based Device - Boot Sequence

Jan 17, 2016

How to boot debian on an RK3288 based device (that isn't a chromebook?). Been trying to do so myself, but to no avail.

The closest match to my device is this one in the sense that it uses the same SoC - an RK3288. However my device is not a chromebook; instead it is called an "RKM MK902II". Unfortunately I cannot find any information on how to boot this device (it does have a micro sd card slot it can boot from, though I'm guessing it needs some sort of bootloader to be written onto a micro sd card in a specific way, but how!).

Interestingly the device I have is running some sort of version of ubuntu. Though how it boots it is an absolute mystery!

I've tried searching around on the 'net for a while now and apart from a script and a few "distros" distributed as image files, I can't really find anything at all. Looking for info about this device or RK3288 chipset?

View 8 Replies View Related

Server :: How To Start Sequence Of Applications At Specified Time Intervals In Debian

Nov 18, 2010

I am currently running debian lenny on an old mini ITX box (1GHZ 1GB ram OS on a 16GB CF card, 4 X 1TB sata drives) as a file server on my home network. I have modified /etc/inittab to auto log in a standard user, start X and start fluxbox. I would like the system to then start a couple of VM's using virtual Box but as this is not a high spec box I would like to start these automatically at 5 min intervals and about 5 min after the auto log in.

Does anyone have any suggestions on how i can achieve this or alternativley monitor the processor load and start each VM in sequence as the porcessor load drops below 20%.

View 2 Replies View Related

Debian Configuration :: Fsck On Boot Jessie 8.1

Jun 25, 2015

I use debian jessie 8.1 and when i boot it, pc start fsck block clean etc.. but the fsck control is activated every on boot?

View 14 Replies View Related

Debian Configuration :: How To Run Fsck On Mounted Drive

Apr 22, 2016

How to run a fsck on a mounted drive? I attempted unmount and it said no. I suddenly got an error 4 and trying to run a check, and it aborts with can't cause mounted.

View 10 Replies View Related

General :: Types Of Fsck Errors - Fsck Errors Are Found On A System?

Jul 22, 2010

Can anybody tell me what kind of fsck errors are found on a system?

View 5 Replies View Related

Debian :: SMART Reports Bad Sectors But Fsck Finds None

Nov 14, 2015

I am running Wheezy 7.9 (32 bit) and using Gnome Classic desktop. I have recently had several issues with system "crashes" and such, see some of my recent posts, and for now things seem to be working okay. As part of my attempts to "fix" the problems I looked at the hard drive using the SMART disk utility, and also ran "smartctl". The SMART utility reports that there are 3 bad sectors on the drive. When I run fsck, from a live CD, it does not report finding bad sectors. So why would fsck not find something that is reported by smartctl? Which one should I believe?

As a precaution I am now making daily backups of my /home directory and purchased a new HD just in case. Have not yet installed the new HD but at least I am prepared.

View 10 Replies View Related

Debian :: Automatically Continue Booting After Fsck Fails?

Dec 30, 2010

I've just migrated to Debian from Ubuntu on my server. So my first post here. I've had some problems and questions when installing and configuring Debian, now everything seems very smooth, but still I can't find answer to one question. My machine is headless and I allways use SSH to it. I have several partitions on machine so if one of them fails on booting time with fsck, I need to press CTRL+D combination to continue. In that case I need to go to the machine with monitor and keyboard and press that combination. Is there any way to automatically continue for example after 30 seconds ? Then I could log in to the system and check log files what is wrong. How can I do that ?

View 2 Replies View Related

Debian :: Dell Vostro 1710 - Fsck Failed During Boot

Jul 18, 2015

I have Debian Wheezy on my Dell Vostro 1710.

There is a fsck scan happening every 35 mounts on my laptop (i.e. when I boot)

It was fine until a few weeks ago when it started to fail.

Here is the error message :

What should I do to fix that ? I use my laptop to go on the Internet and I don't remember modifying/installing anything that could make this happen.

I found the answer : [URL] ....

I just had to type the root password and run fsck manually as follows : fsck /dev/sda7.

View 0 Replies View Related

Debian :: Fsck.ext3: Unable To Resolve 'UUID=theUUID'

Jun 24, 2011

Upon booting my LVM wheezy setup, I get

fsck.ext3: Unable to resolve 'UUID=theUUID'
where "theUUID" (without the quotes) is the UUID

I believe this is caused by me trying to get lvm to use the external /boot because when I had unmounted the external /boot, it was creating a /boot in root. So, I booted a live cd and mounted the external /boot where /boot in the root volume is supposed to be. Basically, I think the problem is that I need to make my /boot (which is the only ext3 partition in the entire system and I want it that way) "relate itself" to the lvm root so that it boots into the system. As mentioned earlier, in the live CD, I made the external /boot mount itself in the root's /boot but I don't know how to tell the system to do this on its own while booting without my assistance. I chrooted from the live cd which involved a lot of tedious stuff but basically the important stuff I did were:

grub-install /dev/sdb
update-grub
update-initramfs -u

P.S.I get the issue in the Subject of this topic by telling tune2fs to mark the external /boot, lvm / and /home partitions as "dirty."

View 2 Replies View Related

General :: Ubuntu/debian - How To - Fsck.ext3 /dev/hda1 - At The Next Reboot

Jan 11, 2010

I would like to do :

Code:

Code:

Warning: Partition 5 does not end on cylinder boundary.

How can this be possible at reboot (badblocks) ?

(I cannot gparted nor usb because nothing is working) it should fix itself linux (without usb live bootable)

View 2 Replies View Related

Debian :: (warning) Fsck Died With Exit Status 4 Failed (code 4)

Feb 19, 2013

My system has stopped to boot at all...

Code: Select alldone.
Setting parameters of disc: (none).
Setting preliminary keymap...done.
Activating swap...done.
Checking root file system...fsck from util-linux-ng 2.17.2

[Code] ....

An automatic file system check (fsck) of the root filesystem failed. A manual fsck must be performed, then the system restarted. The fsck should be performed in maintenance mode with the root filesystem mounted in read-only mode. ... failed!

The root filesystem is currently mounted in read-only mode. A maintenance shell will now be started. After performing system maintenance, press CONTROL-D to terminate the maintenance shell and restart the system. ... (warning).

Give root password for maintenance
(or type Control-D to continue): _

For now, I just don't know what I should to do next to my system has started to work again...

View 14 Replies View Related

Debian Configuration :: Change The Automatic Fsck Execution At Boot Time To Be Above 30 Boots?

Aug 27, 2010

How can I change the automatic fsck execution at boot time to be above 30 boots? I reboot the system sometimes 3 to 4 times a day. Intel 3 GHz, tower, i386 lenny vmlinuz-2.6.31-686

View 2 Replies View Related

Debian Hardware :: Boot Warning Fsck.ext4: Unable To Resolve UUIDs?

May 15, 2011

I have $ uname -a
Linux kub 2.6.32-5-amd64 #1 SMP Mon Mar 7 21:35:22 UTC 2011 x86_64 GNU/Linux

Most of the time when I boot my PC I get an error about fsck.ext4: Unable to resolve... I don't know why it's happening.

The problem is happening with my external drive that has 3 partitions:
/dev/sdc1
/dev/sdc3
/dev/sdc2

About 90% of the time I boot I do get the error. Sometimes after getting the error I can login and the external drive (/dev/sdc) is already mounted:
$ df -H
Filesystem             Size   Used  Avail Use% Mounted on
/dev/sda2               15G   8.0G   5.8G  58% /
tmpfs                  1.9G      0   1.9G   0% /lib/init/rw
udev                   1.9G   246k   1.9G   1% /dev
tmpfs                  1.9G   738k   1.9G   1% /dev/shm
code....

The UUID's in the error file match the output of the command blkid. And the UID's of blkid match the fstab UUID's. I don't know what to do at this point.

View 2 Replies View Related

Debian Multimedia :: Debian Wheezy Xfce4, No Reboot, No Shutdown?

Sep 3, 2011

i have fresh installed debian wheezy xfce4, and using slim to start it but i can't get reboot, shutdown and thunar can't open flash and others volumes. i using .xinitrc (exec ck-launch-session startxfce4)

View 3 Replies View Related

Server :: Shutdown The Nodes From The Master Terminal Using "shutdown -h Now" Get Shutdown?

Dec 10, 2010

I have installed a cluster computer with 10 nodes . The manufacturer is HP . All nodes and the master node have redhat enterprise linux installed in them . When I shutdown the nodes from the master terminal using "shutdown -h now" they get shutdown . But they dont get completely turned off . This issue bothers me when the power supply is given , all nodes boot up simultaneously generating a huge heat .

Thing to note : When we shutdown our PC they get completely turned off . When the power supply is given , a press on the Power On button is required to boot the system. But , why does it not happpen in the case of cluster? Is there any other way of completely turning off the nodes from the master terminal ?

View 1 Replies View Related

Debian Installation :: Errors On Boot: "fsck.ext2: No Such File"?

Jan 19, 2011

I've installed Debian Lenny from USB with the small 8MB netboot image. I only chose "Standard system" in Tasksel during install, to get a clean, minimal install. I also chose for LVM and a separate partition for /home. I have one 1.5TB SATA drive in this machine.

Now everything seems to install just fine, but when I reboot I get the following error:

fsck.ext2: No such file or directory while trying to open /dev/sdb1

I get offered to enter a maintenance shell, or press CTRL-D to resume booting. When I do, the system boots fine and nothing seems wrong. But it is inconvenient, because I can't reboot the machine without physically going to it to press CTRL-D on the keyboard

I have googled for this error and it is mentioned on several forums, but they were all related to other things specific to their installs/machines.

(ps. the only slightly strange thing during install is that the Debian installer included my 1GB USB thumbdrive when it shows all the drives and the partitions before formatting. I removed the USB thumbdrive directly after install, but if I plug it in, I still get the error)

These are the errors during boot:
code....

I've only installed Debian on my laptops, which never had any problems.

View 2 Replies View Related

Debian :: "fsck Died With Exit Status 6", Forcefsck?

Jun 19, 2010

The electricity got cut suddenly. So result on Debian: "fsck died with exit status 6"

The / is there

so I rebooted several time using

Code:
touch /forcefsck
The harddisk all are clean but linux prompt admin and says:
"fsck died with exit status 6"

View 3 Replies View Related

General :: Debian Says "fsck Failed" After Installed Pardus2009

Feb 1, 2010

I have debian testing installed on my system. I have a separate home partition which i shared with Pardus2009 which i installed later on a different partition.

Now pardus boots fine without errors, but debian says "filesystem check failed" because last mount time of / is in future. it gives a maintenance shell and after a manual fsck corrects this problem, debian reboots fine, but then says theres a problem with the /home partition (but this can be ignored)

View 2 Replies View Related

Debian :: Boot Failed - Code 126 - Fsck Failed ?

Jul 22, 2010

Booting up fails with code 126. I am greeted with the following error everyime I start up.

Checking root file system.../etc/rcS.d/S10checkroot.sh: line 174: /sbin/logsave: Permission denied
failed (code 126).

It then says an automatic fsck failed and a manual fsck must be performed, then the system restarted. I have done a manual fsck and it did nothing. I booted up the system with knoppix and did it, nothing.

View 1 Replies View Related

Debian :: Have To Shutdown Twice On Squeeze?

Jan 17, 2010

I searched the forum for this, but didn't find anything about it: when I try to shut down the computer, it returns to the login screen. When I log back in and shutdown again, it shuts down.Squeeze works perfectly, but this is the only thing that doesn't work like it should. Is this a setting I should change somewhere?

View 6 Replies View Related

Debian :: Mysqld Will Not Shutdown

Oct 17, 2010

On my squeeze installation, when I shutdown my computer, there is an error message saying that "...cannot shutdown mysqld". I ignored it and there does not seem to have any ill effect.

edit: here is the exact message: "Stopping msql-server: mysqld failed"

View 2 Replies View Related

Debian :: 8.2 Hangs On Shutdown

Jan 13, 2016

Working with 8.2 DVD installation for about 5 days, Debian newbie. As subject says, screen goes dark and hangs indefinitely.

This guide: [URL]... similar to others I've read. I've done everything there to section: Status and Logs of Services, and that's as far as I've gotten.

Guide suggested posting some files, so here they are:

Code: Select all#
# Grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

[Code] ....

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved