fsck /dev/mmcblk0p2 at boot?

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

fsck /dev/mmcblk0p2 at boot?

Postby lumpynose » Fri Mar 22, 2013 6:44 am

How can I make the system run an fsck on /dev/mmcblk0p2 when the system boots?
lumpynose
 
Posts: 22
Joined: Fri Mar 22, 2013 3:01 am

Re: fsck /dev/mmcblk0p2 at boot?

Postby pepedog » Fri Mar 22, 2013 9:55 am

You just resized partition? Do it while mounted
e2fsck -y -f /dev/mmcblk0p2
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: fsck /dev/mmcblk0p2 at boot?

Postby lumpynose » Sat Mar 23, 2013 12:36 am

Ok, thanks, I was able to do that after resizing it.

But I'd also like to run fsck on each boot. As far as I could tell it never did it even with /forcefsck or fiddling with tune2fs max mounts.
lumpynose
 
Posts: 22
Joined: Fri Mar 22, 2013 3:01 am

Re: fsck /dev/mmcblk0p2 at boot?

Postby pepedog » Sat Mar 23, 2013 12:49 am

Don't think you are going to do this without an initrd
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: fsck /dev/mmcblk0p2 at boot?

Postby lumpynose » Sat Mar 23, 2013 12:53 am

Is this an arch linux thing (no fsck on boot)?

Is the filesystem robust enough that periodic fsck runs aren't needed?
lumpynose
 
Posts: 22
Joined: Fri Mar 22, 2013 3:01 am

Re: fsck /dev/mmcblk0p2 at boot?

Postby WarheadsSE » Sat Mar 23, 2013 1:19 am

The ms would need to be mounted RO to do an fsck on it
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 1 guest