Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Jan 1999 09:54:22 -0600
From:      "Randall D. DuCharme" <randyd@ameritech.net>
To:        questions@FreeBSD.ORG
Subject:   HELP! Disk partition moved
Message-ID:  <368CEFAE.31A0F085@ameritech.net>

next in thread | raw e-mail | index | archive | help
Greetings,

A really stupid thing just happened to me.  I have 3 SCSI disks in my
machine.  Disk 0 is a 4 gig, disk 1 and 2 are 2 gigs each.  I had NT-4
on disk 0, and FreeBSD-Current on disks 1 and 2.  

Disk 1 was set up as follows....

sd1s1a   /        25meg
sd1s1b   swap     120meg
sd1s1e   /usr     ~1855 meg

Disk 2 was set up as follows.....

sd2s3b    swap    120meg
sd2s3e    /usr2   ~1880 meg

Both disks were "dangerously dedicated" and I always used a boot floppy
to start FreeBSD.

I removed NT from the first disk (disk 0) and installed SCO OpenServer
5.0.4 so I could begin work on porting a couple apps to FreeBSD for one
of my business customers.  The process of doing this changed the
partition table of the second disk (disk 1), or the first FreeBSD disk. 
Booting FreeBSD now results in mounting da1s4a as /, (read only) and
fails to add the swap or /usr slices.  FreeBSD's fdisk now shows that
partition 1,2, and 3 are unused and that partition 4 is the FreeBSD
partition.  The geometries and partition type are correct.... it's just
as if it was 'moved' from partition 1 to partition 4.  The disklabel
also seems to be correct.... that is, disklabel -r shows the correct
slices of the correct size.  I cannot mount / read-write or mount /usr
at all as there are no /dev/sd1s4* devices and can't mount / read-write
to create them.  Disk 2 was unaffected and can be mounted normally.

Is there an easy way to recover from this?  I'm assuming that if I edit
the partition table I'll lose everything.  I have a backup so it's not a
loss.  I'd rather avoid all that hassle though, if possible.

Many thanks in advance

-- 
Randall D DuCharme       
Systems Engineer         Novell, Microsoft, and UNIX Networking Support
Computer Specialists                Free Your Machine....     FreeBSD
414-253-9998   414-253-9919 (fax)      The Power To Serve!

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?368CEFAE.31A0F085>