New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 809655 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Feb 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

fix e2fsk based on gwendal input, change from -y to -p

Project Member Reported by haddowk@chromium.org, Feb 6 2018

Issue description

View Change

1 comment:

File project-moblab/chromeos-base/chromeos-bsp-moblab/files/init/moblab-external-storage-init.conf:

Patch Set #3, Line 25: /sbin/e2fsck -y "${usb_drive}"

-y is usually reserved for user interaction [-p for Automatically  repair]. While -y will repair your FS, you allow e2fsck to lose a lot of data.
 
We might want to look at doing the /sbin/e2fsck check on the main drive too - fizz only has a single drive.
Status: Started (was: Assigned)
We would need to look into another approach to check the main drive. I did a quick test and found that you can't check a mounted drive.

localhost moblab # /sbin/e2fsck -p /dev/sda               
e2fsck 1.43.6 (29-Aug-2017)
/dev/sda is in use.
e2fsck: Cannot continue, aborting.

Project Member

Comment 3 by bugdroid1@chromium.org, Feb 17 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/board-overlays/+/7138f3d18d4c5b72d47f434342552f24745faaa6

commit 7138f3d18d4c5b72d47f434342552f24745faaa6
Author: Keith Haddow <haddowk@chromium.org>
Date: Sat Feb 17 23:00:02 2018

[moblab] Use auto repair flag for e2fsck on boot

Changing the flag used on check disk on boot from -y to -p, which
changes the operations run to only those that can be safely fixed
without human intervention.

BUG= chromium:809655 
TEST=tested on a local device and verified that the command
/sbin/e2fsck -p /drive/name appeared in the bootup logs

Change-Id: I11abffa7326f3c916857dab3591c62d222a90937
Reviewed-on: https://chromium-review.googlesource.com/909529
Commit-Ready: Keith Haddow <haddowk@chromium.org>
Tested-by: Keith Haddow <haddowk@chromium.org>
Reviewed-by: Keith Haddow <haddowk@chromium.org>

[modify] https://crrev.com/7138f3d18d4c5b72d47f434342552f24745faaa6/project-moblab/chromeos-base/chromeos-bsp-moblab/files/init/moblab-external-storage-init.conf

Project Member

Comment 4 by bugdroid1@chromium.org, Feb 17 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/board-overlays/+/7138f3d18d4c5b72d47f434342552f24745faaa6

commit 7138f3d18d4c5b72d47f434342552f24745faaa6
Author: Keith Haddow <haddowk@chromium.org>
Date: Sat Feb 17 23:00:02 2018

[moblab] Use auto repair flag for e2fsck on boot

Changing the flag used on check disk on boot from -y to -p, which
changes the operations run to only those that can be safely fixed
without human intervention.

BUG= chromium:809655 
TEST=tested on a local device and verified that the command
/sbin/e2fsck -p /drive/name appeared in the bootup logs

Change-Id: I11abffa7326f3c916857dab3591c62d222a90937
Reviewed-on: https://chromium-review.googlesource.com/909529
Commit-Ready: Keith Haddow <haddowk@chromium.org>
Tested-by: Keith Haddow <haddowk@chromium.org>
Reviewed-by: Keith Haddow <haddowk@chromium.org>

[modify] https://crrev.com/7138f3d18d4c5b72d47f434342552f24745faaa6/project-moblab/chromeos-base/chromeos-bsp-moblab/files/init/moblab-external-storage-init.conf

Project Member

Comment 5 by bugdroid1@chromium.org, Feb 21 2018

Labels: merge-merged-release-R65-10323.B
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/board-overlays/+/5a7eeee9db7c4501a64d35ae611678c649e69c66

commit 5a7eeee9db7c4501a64d35ae611678c649e69c66
Author: Keith Haddow <haddowk@chromium.org>
Date: Wed Feb 21 18:59:31 2018

[moblab] Use auto repair flag for e2fsck on boot

Changing the flag used on check disk on boot from -y to -p, which
changes the operations run to only those that can be safely fixed
without human intervention.

BUG= chromium:809655 
TEST=tested on a local device and verified that the command
/sbin/e2fsck -p /drive/name appeared in the bootup logs

Change-Id: I11abffa7326f3c916857dab3591c62d222a90937
Reviewed-on: https://chromium-review.googlesource.com/909529
Commit-Ready: Keith Haddow <haddowk@chromium.org>
Tested-by: Keith Haddow <haddowk@chromium.org>
Reviewed-by: Keith Haddow <haddowk@chromium.org>
(cherry picked from commit 7138f3d18d4c5b72d47f434342552f24745faaa6)
Reviewed-on: https://chromium-review.googlesource.com/929444
Commit-Queue: Matt Mallett <mattmallett@chromium.org>
Tested-by: Matt Mallett <mattmallett@chromium.org>
Trybot-Ready: Matt Mallett <mattmallett@chromium.org>

[modify] https://crrev.com/5a7eeee9db7c4501a64d35ae611678c649e69c66/project-moblab/chromeos-base/chromeos-bsp-moblab/files/init/moblab-external-storage-init.conf

Project Member

Comment 6 by bugdroid1@chromium.org, Feb 21 2018

Labels: merge-merged-release-R64-10176.B
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/board-overlays/+/e1b195dbe9f7b7e4b186a63e88d7138bac95e298

commit e1b195dbe9f7b7e4b186a63e88d7138bac95e298
Author: Keith Haddow <haddowk@chromium.org>
Date: Wed Feb 21 18:59:34 2018

[moblab] Use auto repair flag for e2fsck on boot

Changing the flag used on check disk on boot from -y to -p, which
changes the operations run to only those that can be safely fixed
without human intervention.

BUG= chromium:809655 
TEST=tested on a local device and verified that the command
/sbin/e2fsck -p /drive/name appeared in the bootup logs

Change-Id: I11abffa7326f3c916857dab3591c62d222a90937
Reviewed-on: https://chromium-review.googlesource.com/909529
Commit-Ready: Keith Haddow <haddowk@chromium.org>
Tested-by: Keith Haddow <haddowk@chromium.org>
Reviewed-by: Keith Haddow <haddowk@chromium.org>
(cherry picked from commit 7138f3d18d4c5b72d47f434342552f24745faaa6)
Reviewed-on: https://chromium-review.googlesource.com/929443
Commit-Queue: Matt Mallett <mattmallett@chromium.org>
Tested-by: Matt Mallett <mattmallett@chromium.org>
Trybot-Ready: Matt Mallett <mattmallett@chromium.org>

[modify] https://crrev.com/e1b195dbe9f7b7e4b186a63e88d7138bac95e298/project-moblab/chromeos-base/chromeos-bsp-moblab/files/init/moblab-external-storage-init.conf

Status: Fixed (was: Started)

Sign in to add a comment