Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

fsck on boot
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
fsck on boot
29th Dec, 2012, 03:03 PM
Post: #1
aot2002 Offline
Registered
Posts: 2
Joined: Dec 2012
Reputation: 0
fsck on boot
I have had a fresh install of Alpha 3 on my r pi.
My setup requires the ability to power off at any moment because it's running inside of a car using the accessory ignition.

Today when it powered off I had a problem where it wanted to go into maintenance mode and waiting for Control D or the root password.

Because I do not have a keyboard hooked up it makes the setup a bit complicated.
Any way to prevent or automate this again in the future. I don't really want to have it prompting me for a fsck or maintenance mode I prefer it to just do it and reboot.
Find all posts by this user
Quote this message in a reply
29th Dec, 2012, 05:12 PM
Post: #2
Enigmach Offline
Registered
Posts: 17
Joined: Dec 2012
Reputation: 4
RE: fsck on boot
Going into maintenance mode would indicate that there are some serious errors/corruptions on the SD-card. Are you using an overclock? I've had this issue when using overclocks with overvoltage when I simply pulled the power instead of shutting down.
Find all posts by this user
Quote this message in a reply
30th Dec, 2012, 06:02 AM
Post: #3
aot2002 Offline
Registered
Posts: 2
Joined: Dec 2012
Reputation: 0
RE: fsck on boot
Yes I have it at 840 or 850 but no overvoltage applied. I think it's the default xbian setup.
I need stability though if it powers off so that I am not required to hit control D, I realize fscking the SD was needed but it should do it and then reboot.
Maybe I should opt for a battery backup and have it detect that it's on battery and safely shut itself down.
Find all posts by this user
Quote this message in a reply
30th Dec, 2012, 06:08 AM
Post: #4
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
Re: fsck on boot
seems to be a good idea Wink
or get it connected under permanent power but than have to be careful not to leave it on accidentally anf drain your battery Smile

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
30th Dec, 2012, 06:24 AM
Post: #5
namtih Offline
Tester
Posts: 269
Joined: Dec 2012
Reputation: 28
RE: fsck on boot
Perhaps you could also give the following 2 options a try:
1. sync parameter
You can try to add the sync option in the mount table to the root partition, so it might help to prevent a corrupt filesystem. So try to add ",sync" in the following file.
Code:
sudo nano /etc/fstab
/dev/mmcblk0p1  /boot        vfat     defaults,sync 0 2
/dev/mmcblk0p2  /              ext4    defaults,sync 0 1

2. disbale fsck on boot when the sync option doesn't help
Also in the file you could disable fsck on boot. I think 1 means 'Do a fsck' and 2 means "Do also a fsck, but after 1".
So you could try to set both to 0.
Code:
sudo nano /etc/fstab
/dev/mmcblk0p1  /boot        vfat     defaults,sync 0 0
/dev/mmcblk0p2  /              ext4    defaults,sync 0 0
But perhaps it will result in an corrupt filesystem. So don't store important files on it or at least have a backup.
Hope it helps.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 22nd May, 2025, 01:59 AM Powered By MyBB, © 2002-2025 MyBB Group.