DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 21st September 2008
corneliu corneliu is offline
Port Guard
 
Join Date: May 2008
Posts: 19
Default mount second hard drive - newbie trouble

Hi guys,

I have a FreeBSD 7.0 install on a machine that has two hard drives. The first one (da0) is the one that hosts FreeBSD and the second one (da1) is formatted with ext3 (I'm almost sure). I created /var/ftp and I executed this command

mount -t ext3 /dev/da1 /var/ftp

But it doesn't work. This is what I get:

mount: /dev/da1 : Operation not supported by device

What am I doing wrong?

Thanks is advance,

Corneliu
Reply With Quote
  #2   (View Single Post)  
Old 21st September 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

ext3 is mounted as ext2 in FreeBSD (and therefore without journal), so

Code:
mount -t ext2fs /dev/da1 /var/ftp
should work
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #3   (View Single Post)  
Old 21st September 2008
corneliu corneliu is offline
Port Guard
 
Join Date: May 2008
Posts: 19
Default

Great! Thanks a lot. It worked with this command

mount -t ext2fs /dev/da1s4 /var/ftp

What is the difference between da1 and da1s4?
Reply With Quote
  #4   (View Single Post)  
Old 21st September 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

Partitions in FreeBSD are numbered liked so:
da device name/identifer
1 device number
s slice identifier
4 slice number

So da1 is "second SCSI disk in system", and s4 is "fourth slice on the drive".
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.

Last edited by phoenix; 27th September 2008 at 08:05 PM. Reason: Had 1 and 4 reversed
Reply With Quote
  #5   (View Single Post)  
Old 22nd September 2008
wubrgamer's Avatar
wubrgamer wubrgamer is offline
Port Guard
 
Join Date: May 2008
Posts: 34
Default

dude, this is pretty helpful!

thanks, just from a fellow new-user point of view that is!

phoenix that is the simple explanations that I crave lol when asking about slices and partitions and such
Reply With Quote
  #6   (View Single Post)  
Old 22nd September 2008
corneliu corneliu is offline
Port Guard
 
Join Date: May 2008
Posts: 19
Default

Thanks for the info
Reply With Quote
  #7   (View Single Post)  
Old 23rd September 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

Nice and simple. One complication you should know:

"Logical Partitions" within an "Extended Partition" (Dos Fdisk talk) show up as additional slices - One disk containing (DOS) C:, D: and E: would map like this:

C: - da0s1
D: - da0s5
E: - da0s6
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
  #8   (View Single Post)  
Old 23rd September 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

i.e. the extended partiton = slice 4; each logical drives start counting from slice 5.

an example from my own system:

[code]
FreeBSD device - Windows Drive-letter (partition type)

ad0s1 - Windows C: (first primary)
ad0s2a - FreeBSD / (second primary)
ad0s4 - Extended Partition
ad0s5 - Windows P:\ (first logical)
ad0s6 - Windows U:\ (second logical)
ad0s7 - Windows S:\ (third logical)
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Did I fry my hard drive? JMJ_coder General Hardware 7 23rd December 2008 10:38 PM
Trouble booting if USB drive attached map7 FreeBSD General 1 22nd December 2008 04:51 PM
CF as a *BSD hard drive? JMJ_coder General Hardware 26 31st July 2008 05:13 PM
Encrypting hard drive? ViperChief FreeBSD Installation and Upgrading 5 31st May 2008 03:42 PM
how to mount external hard disk ? bsdnewbie999 FreeBSD General 6 27th May 2008 02:37 AM


All times are GMT. The time now is 06:26 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick