Return to BSD News archive
Newsgroups: comp.os.386bsd.questions Path: sserve!manuel.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!newsserver.jvnc.net!yale.edu!qt.cs.utexas.edu!news.Brown.EDU!noc.near.net!oz.plymouth.edu!ted From: ted@oz.plymouth.edu (The Wizard of Oz) Subject: Re: Disklabel/newfs - Message-ID: <1993Mar5.061516.17253@oz.plymouth.edu> Organization: Plymouth State College - Plymouth, NH. References: <1993Mar4.062419.18727@oz.plymouth.edu> <1993Mar4.181535.4302@coe.montana.edu> Date: Fri, 5 Mar 93 06:15:16 GMT Lines: 60 Ok, I'm going to flame myself. Basically what the problem was, is a "System Error 32" (Local joke for: USER TOO STUPID). I had forgotten that I was in "multi-user mode" so when I did "shutdown -h now" it did not update the disks, thus not saving my partition information. Duh. Anyway, it had nothing to do with the defined partition info in /etc/disktab, as been mentioned. Notes on creating partitions on a second drive: 1. You need the track/cyl/sector info for you drive, one way to get this info it to get out the "Manual" for that drive. One I was able to use was: - Format the drive as an "extended dos partition" and then use "disklabel" to read that info. 2. Use diskpart -d , the info gathered from (1) is needed here, many of the items requested can be given the defaults. 3. Do your newfs. 4. Mount the new partion(s). 5. Do an fsck on each, just to be safe. 6. If you are in multi-user mode do: shutdown then: shutdown -h If you are in single user do: shutdown -h (Wait until you see the ">" prompt telling you to press a key to reboot) BEFORE shutting off power or reset, if that is what you wish to do, else press a key to reboot. 7. Mount the partitions where you want em' to make sure they work. Then edit your fstab to make the appropriate partitions mount at boot-time. And reboot. I am not sure this will work for everyone, but it worked for me. Just as an end note, It is probably a really good Idea to be in single user mode when doing this. Example fstab: /dev/wd0a / ufs rw 1 1 /dev/wd1g /wiz ufs rw 1 2 /dev/wd1a /tmp ufs rw 1 3 /dev/wd1b none swap sw 0 0 * Note: new swap devices require them being 'configed' in your kernel. Yes, that means a kernel config & re-build. I hope this is accurate, as I am doing this from memory, I hope it helps someone. --> Ted | Ted Wisniewski INET: ted@oz.plymouth.edu | | Academic Computing or | | Plymouth State College tedw@psc.plymouth.edu | | Plymouth NH, 03264 |