The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Peripheral Hardware

Peripheral Hardware Stuff that plugs in via USB, FireWire, eSATA, PS/2, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old October 30th, 2009, 16:52
djemmers djemmers is offline
Junior Member
 
Join Date: Jun 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default mount WD 1TB usb hard drive

hi,

At work "somebody" dropped our backup hard disk for our freebsd server (mails and files)
I bought a new one but it seems it doesn't get recognized by the server.
btw I am a noob and have to fix it.

en /dev I don't see any new devices comming up when I plug in the new HD (that did happend with the old one)
So I am sure the backup script won't work as it starts with something like " mount dev/da2s1 /backup
and than starts backing up all the desired files...

can anyone tell me how to make sure mounting the new external HD works?
or tell me what to read?

greetings
Reply With Quote
  #2  
Old October 30th, 2009, 17:04
gentoobob's Avatar
gentoobob gentoobob is offline
Junior Member
 
Join Date: Jan 2009
Location: Central Indiana
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

unplug the device, wait 2 or 3 seconds, plug it back in, wait 2 or 3 seconds and then run the command 'dmesg' (without the quotes)

at the bottom of dmesg it should tell you if it recognized the device or not and what name it gave the device. then you can change your script to that device.
__________________
"To err is human - and to blame it on a computer is even more so."
-Robert Orben
Reply With Quote
  #3  
Old October 30th, 2009, 17:06
SirDice's Avatar
SirDice SirDice is offline
Giant Locked
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 2,650
Thanks: 5
Thanked 294 Times in 285 Posts
Default

Quote:
Originally Posted by gentoobob View Post
unplug the device, wait 2 or 3 seconds, plug it back in, wait 2 or 3 seconds and then run the command 'dmesg' (without the quotes)
It's simpler to just $ tail -f /var/log/messages and then plug the device in
__________________
Oliver's Law:
Experience is something you don't get until just after you need it.
Reply With Quote
  #4  
Old October 30th, 2009, 17:33
gentoobob's Avatar
gentoobob gentoobob is offline
Junior Member
 
Join Date: Jan 2009
Location: Central Indiana
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

or that too. he is a noob he says, so I was making it easier on him. one word command versus a string command. thats just how i roll. haha.
__________________
"To err is human - and to blame it on a computer is even more so."
-Robert Orben
Reply With Quote
  #5  
Old November 3rd, 2009, 08:13
djemmers djemmers is offline
Junior Member
 
Join Date: Jun 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

tnx guys...

will try that, but am pretty sure it'll work
and gentoobob, yes I am a noob but not such a noob that I can't type a string command
Reply With Quote
  #6  
Old November 3rd, 2009, 09:25
djemmers djemmers is offline
Junior Member
 
Join Date: Jun 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to mount the new drive?

ok,
it clearly recognizes the drive:
umass0: Western Digital External HDD, rev 2.00/1.75, addr 3
now when I try to mount it (first line of the backup script)

mount /dev/umass0 /backup I get:
mount: umass0: No such file or directory
wich seems pretty locical as I can't see umass0 in /dev

how do I mount umass0?
I allready tried
mount umass0 /backup
and
mount /umass0 /backup.
Reply With Quote
  #7  
Old November 3rd, 2009, 12:56
Beastie Beastie is offline
Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 335
Thanks: 0
Thanked 36 Times in 34 Posts
Default

And after "umass0: bla bla on uhubX", doesn't it say something like "da0 at umass bla bla" and then "GEOM_LABEL: Label for provider da0sX is some_filesystem/some_label"?

This should give you all the information you need to mount it.

Code:
mount /dev/da0sX /mountpoint
For non-UFS formatted drives/partitions, you must specify the filesystem:
Code:
-t some_filesystem
__________________
May the source be with you!
Reply With Quote
  #8  
Old November 3rd, 2009, 13:52
dennylin93 dennylin93 is offline
Member
 
Join Date: Dec 2008
Location: Taiwan
Posts: 439
Thanks: 28
Thanked 37 Times in 34 Posts
Default

Have you partitioned the new drive yet? If not, check out Adding Disks (try not to use sysinstall since fdisk and bsdlabel should work better).
Reply With Quote
  #9  
Old November 3rd, 2009, 14:19
djemmers djemmers is offline
Junior Member
 
Join Date: Jun 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

beastie:
no that was all the info I got.

dennylin93
aha more ways to format a drive?
that will probably be it.
I guess it is formatted in the "windows way" or something.
Reply With Quote
  #10  
Old November 3rd, 2009, 14:58
Beastie Beastie is offline
Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 335
Thanks: 0
Thanked 36 Times in 34 Posts
Default

Quote:
Originally Posted by djemmers View Post
beastie:
no that was all the info I got.
Then, it was never formatted, which was the problem all along.
__________________
May the source be with you!
Reply With Quote
  #11  
Old November 3rd, 2009, 15:13
djemmers djemmers is offline
Junior Member
 
Join Date: Jun 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

allright,

read the info,
But I am a bit affraid to format the new drive on the server. since we don't have a backup at the moment and I am affraid I will format the wrong drive ...

I was thinking, is there a way to format the drive on a windows machine? I know it might sound as a strange question but you never know...
Reply With Quote
  #12  
Old November 3rd, 2009, 15:26
SirDice's Avatar
SirDice SirDice is offline
Giant Locked
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 2,650
Thanks: 5
Thanked 294 Times in 285 Posts
Default

Even if the drive isn't formatted you still need to have an /dev/da? available. As long as the fbsd box doesn't recognize it formatting it is useless.
__________________
Oliver's Law:
Experience is something you don't get until just after you need it.
Reply With Quote
  #13  
Old November 3rd, 2009, 15:41
Beastie Beastie is offline
Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 335
Thanks: 0
Thanked 36 Times in 34 Posts
Default

As SirDice said, it should at least be detected as daX (e.g. "daX at umass" in dmesg).

As for the rest of your post...
SCSI uses direct access (da) too, just like your *ATA->USB. It should be quite easy to recognize your server HDDs (check % mount).

Yes, you could format it under Windows.
However you can't use NTFS because native support in FreeBSD is read-only and using the fuse driver might not be 100% reliable (at least not as reliable as using NTFS under Windows).
You can't use UFS either because third-party UFS support under Windows is suboptimal and may cause BSODs. Not sure you can even format a drive.
You may try FAT32. No comments.
__________________
May the source be with you!
Reply With Quote
  #14  
Old November 4th, 2009, 09:52
djemmers djemmers is offline
Junior Member
 
Join Date: Jun 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by SirDice View Post
you still need to have an /dev/da? available. As long as the fbsd box doesn't recognize it formatting it is useless.
So in my case formatting is useless?
what should I do then?
Reply With Quote
  #15  
Old November 4th, 2009, 11:08
dennylin93 dennylin93 is offline
Member
 
Join Date: Dec 2008
Location: Taiwan
Posts: 439
Thanks: 28
Thanked 37 Times in 34 Posts
Default

Does dmesg detect the drive when you plug it in? If it does, then proceed with the formatting.

As SirDice mentioned, you don't have many options if you want to format with Windows. UFS support on Windows is unthinkable. FAT32 probably isn't good enough. FreeBSD can get full read and write support for NTFS through fusefs-ntfs, but UFS is still better.

Just format the drive on FreeBSD.
Reply With Quote
  #16  
Old November 6th, 2009, 14:21
djemmers djemmers is offline
Junior Member
 
Join Date: Jun 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by SirDice View Post
Even if the drive isn't formatted you still need to have an /dev/da? available.
can't seem to get this right.
to summerize:
command dmesg gives
Code:
da1: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged Queueing Enabled
da1: 34732MB (71132959 512 byte sectors: 255H 63S/T 4427C)
Mounting root from ufs:/dev/da0s1a
WARNING: / was not properly dismounted
WARNING: /home was not properly dismounted
WARNING: /tmp was not properly dismounted
WARNING: /usr was not properly dismounted
/usr: mount pending error: blocks 4 files 1
WARNING: /var was not properly dismounted
umass0: Western Digital External HDD, rev 2.00/1.75, addr 3
umass0: at uhub0 port 1 (addr 3) disconnected
umass0: detached
umass0: Western Digital External HDD, rev 2.00/1.75, addr 3
as you see, my Western Digital has no da?
does that mean there is no da available?

the command mount gave this:
Code:
/dev/da0s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/da1s1e on /home (ufs, local, soft-updates)
/dev/da0s1e on /tmp (ufs, local, soft-updates)
/dev/da0s1f on /usr (ufs, local, soft-updates)
/dev/da0s1d on /var (ufs, local, soft-updates)
So I am still trying to find the da? for my WD so I can format it and then mount it...
I just don't seem to get this.
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
[Solved] auto mount usb flash drive and display to nautilus jemate18 General 10 October 21st, 2009 03:54
Mount ufs2 external hard drive sirving Peripheral Hardware 1 October 2nd, 2009 23:41
Can't mount usb flash drive pigritia Multimedia 17 July 28th, 2009 01:18
zfs , adding a usb hard drive to a zpool wonslung General 2 June 3rd, 2009 19:45
how can I mount usb hard disks? sugar Peripheral Hardware 9 March 8th, 2009 21:49


All times are GMT +1. The time now is 09:42.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.