hda5 mounted - e2fsck: aborting
Carl Karsten
carl at personnelware.com
Sat Apr 15 23:12:09 BST 2006
I am trying to re-create this (so that I can confirm it fixed):
>
> /dev/hda5 /media/hda5 ext3 defaults 0 2
> /dev/hda5 none swap sw 0 0
>
but failing.
I run this script before the install:
# mkext3swap.sh
# sets up the partitions for:
# 0:14:20 AM) Kamion: CarlFK: what's happening is, /dev/hda5 was originally
ext3, and the installer automatically marked it to be mounted on /media/hda5
# (10:14:36 AM) Kamion: CarlFK: then you told partman to make it a swap
partition instead
# (10:15:17 AM) Kamion: CarlFK: but partman forgot to clear its notion of the
current filesystem for /dev/hda5 (acting_filesystem), which is what the fstab.d
generator scripts look at
# (10:15:30 AM) Kamion: CarlFK: so partman thought it was both swap *and*
mounted on /media/hda5#
set -x
# not sure what will be mounted, so unmount just incase
umount /dev/hda1
umount /dev/hda5
swapoff /dev/hda5
# wipe the old partition table
dd if=/dev/zero of=/dev/hda bs=512 count=1
# create ext3 on hda1 and 3
sfdisk --no-reread --force /dev/hda <<EOF
unit: sectors
/dev/hda1 : start= 63, size= 9500000, Id=83, bootable
/dev/hda2 : start= 9500063, size= 738990, Id= 5
/dev/hda3 : start= 0, size= 0, Id= 0
/dev/hda4 : start= 0, size= 0, Id= 0
/dev/hda5 : start= 9500065, size= 738927, Id=83
EOF
mke2fs -j /dev/hda1
mke2fs -j /dev/hda5
Then install using
http://cdimages.ubuntu.com/releases/dapper/flight-6/dapper-install-i386.iso
29-Mar-2006
It shows hda1 and hda5 as ext3, I set 1 to / and 5 to swap.
I don't get:
> /dev/hda5 /media/hda5 ext3 defaults 0 2
Here are the files from the box that had the 2 entries:
http://dev.personnelware.com/carl/temp/Apr03/d/ (I bumpped the date to keep them
from being cleaned out by my temp cleaner-outer cron job)
Any idea what I need to do to get the two entries?
CarlFK
More information about the ubuntu-devel
mailing list