LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 09-10-2004, 09:37 PM   #1
Gsee
Member
 
Registered: Mar 2004
Location: Australia
Distribution: FreeBSD, OpenBSD, Gentoo, Debian
Posts: 153

Rep: Reputation: 30
Add a preformatted hdd to FreeBSD + keep data


I have just formatted my FreeBSD 4.9 RELEASE box and installed FreeBSD 5.1.2 RELEASE. This machine acts as a fileserver and consits of two hard drives. One is 8.3 Gb and is used only for the OS and ftp temp location. The other is a 200Gb hard drive and is obviously my main storage drive. I have formatted the 8.3 and installed BSD again but now I'd like to add the 200Gig hard drive to the setup WITHOUT loosing my data. How can I add a drive without formatting it?

I thought I could/should just include the entry (as was before) in my fstab file but after I did that BSD conseuquently wouldn't boot because the 200Gig drive containted 'unexpected inconsistencies' - the hard drive is fine.

Any help would be greatly appreciated.

I have my old fstab file backed up but am hesitant to simply copy it across??

Gsee

edit: Since i editted the fstab file and could no longer boot I have re-installed FreeBSD again as i couldn't find a way to fix the fstab without it booting. So I have a fresh install of BSD and now need the 200Gig drive set up again. It used to (and I would like it to still) mount to - /mnt/200Gig/ - anything else you need to know about my previous setup, just ask.

Gsee

Final edit - I found what the problem was. I knew should simply have to mount the drive but I didn't realise that FreeBSD 5.2.1 would give the deivce a completely different name.

For other's with the same problem (if any) - in FreeBSD 4.9 the 200 gig drive was /dev/ad3c/
but in 5.2.1 it's /dev/ad3s1.

there's probably a logical reason for it but there you go...

Gsee

Last edited by Gsee; 09-10-2004 at 10:26 PM.
 
Old 09-10-2004, 11:18 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
As future reference, you can boot into single-user mode to fix fstab entries. Only / will be mounted at that point. If you need to use vi, you can mount /usr as well.
 
Old 09-11-2004, 05:14 AM   #3
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
Reminds me of the time I was at a friends house trying to mount a "Linux ext2" partition on FreeBSD late one December 31st night. You know, one of those things you've done a hundred times.

mount -t msdos /dev/ad0s6 /mnt/pics

Kept getting the same error message.

The next day in the afternoon I didn't have any trouble.


-------------------------------------------
Gsee:
Thanks for posting your outcome, others will be glad when they go googling.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to add a third hard drive (hdd) and get Unable to open /dev/hdd MikeyCarter Linux - Hardware 4 12-26-2005 10:27 PM
Need to migrate data from old HDD Jakeh2k1 Linux - Hardware 9 08-28-2005 03:23 PM
hdd data problem b4u Linux - Hardware 1 06-26-2005 10:52 AM
Installing a second HDD (with old data) conn-fused Linux - Hardware 2 10-08-2004 06:01 PM
add an hdd?? HmmLinux Linux - Hardware 2 02-19-2004 11:42 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 11:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration