Subject: Re: port-i386/37009: unable to use swap partition found on USB drive
To: None <gnats-bugs@NetBSD.org, port-i386-maintainer@NetBSD.org,>
From: John Nemeth <jnemeth@victoria.tc.ca>
List: netbsd-bugs
Date: 09/20/2007 03:39:05
On Jan 5, 10:22pm, jjhartley@gmail.com wrote:
}
} >Number:         37009
} >Synopsis:       unable to use swap partition found on USB drive
} >Arrival-Date:   Thu Sep 20 10:15:00 +0000 2007
} >Originator:     James Hartley
} >Release:        4.0_RC1
} >Description:
} Additional swap partition on an attached USB drive specified in /etc/fstab will not be mounted properly at boot.
} >How-To-Repeat:
} Create a swap partition on a USB drive, eg. /dev/sd1b & add an entry to this swap partition to /etc/fstab:
} 
} /dev/sd1b none swap sw 0 0
} 
} Leave the USB drive attached & reboot.
} 
} The order of initialization is:
} 0.  run swapctl -A
} 1.  mount other partitions defined in /etc/fstab & check via fsck
} 2.  detect USB devices
} 
} Other kinds of partitions on a USB drive can be specified in /etc/fstab, & successfully mounted by adding the following to /etc/rc.conf.d/fsck:
} 
} start_precmd=fsck_precmd
} fsck_precmd() {
}     n=60
}     echo "delaying fsck for $n seconds..."
}     sleep $n
} }
} 
} ...which delays the actions of fsck long enough for all USB devices to be detected.
} 
} I cannot find an equivalent manner of delaying swapctl.

     Try putting the above lines into /etc/rc.conf.d/swap1.

}-- End of excerpt from jjhartley@gmail.com