Project

General

Profile

Actions

Bug #436

closed

mksd asks if sd had previous ext3 fs

Added by Hammel over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
00 - Basic Build Issues
Target version:
Start date:
29 Mar 2015
Due date:
% Done:

100%

Estimated time:
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.

Actions #1

Updated by Hammel over 9 years ago

  • Description updated (diff)
Actions #2

Updated by Hammel over 9 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

Actions #3

Updated by Hammel over 9 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.

Actions #4

Updated by Hammel over 9 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.

Actions

Also available in: Atom PDF