Bug #436

mksd asks if sd had previous ext3 fs

Added by Hammel over 2 years ago. Updated about 2 years ago.

Status:ClosedStart date:29 Mar 2015
Priority:ImmediateDue date:
Assignee:Hammel% Done:

100%

Category:00 - Basic Build Issues
Target version:0.11.0
Severity:01 - Critical

Description

On F20, the mksd script is prompting to "Proceed anyway" if an ext3 fs is found where the rootfs was previously installed. This must be a change to the way parted works.

Associated revisions

Revision cac9af63
Added by Hammel about 2 years ago

RM #436: Added double -F option to mkfs commands to force file system creation even if there is already a filesystem. Cleaned up parted usage.

History

#1 Updated by Hammel over 2 years ago

  • Description updated (diff)

#2 Updated by Hammel about 2 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 10

To make the partitions (now with 3: boot, rootfs, data):

parted <dev> mkpart p fat32 1 64
parted <dev> mkpart p ext2 65 1000
parted <dev> mkpart p ext2 1001 -1

To remove any previous partitions:

parted <dev> -- rm 1
parted <dev> -- rm 2
parted <dev> -- rm 3

Removal should come first, then the partitions can be created without prompts.

Formatting is the same as before:

sudo mkfs.vfat -F 16 ${DEV}1 -n boot
sudo mkfs.ext4 -L rootfs ${DEV}2

If the device is an mmc:

sudo mkfs.vfat -F 16 ${DEV}p1 -n boot
sudo mkfs.ext4 -L rootfs ${DEV}p2

#3 Updated by Hammel about 2 years ago

  • % Done changed from 10 to 30

These updates are in my tree and ready for testing. The script needs to be copied to the pkg directory before testing.

#4 Updated by Hammel about 2 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 30 to 100

There were some additional problems. The main fix is to use double -F options to mkfs when creating the file systems. I also cleaned up the use of parted as well as added removing partitions before starting. Finally, I added a data partition for later use, mainly for use in future upgrade paths.

Changes tested, committed and pushed.

Closing issue.

Also available in: Atom PDF