[H]ard|Forum

Go Back   [H]ard|Forum > Bits & Bytes > Operating Systems > Linux/BSD/Free Systems

Reply
 
Thread Tools Search this Thread
  #1  
Old 09-08-2006, 11:42 PM
cosmos [H]ard|Gawd, 8.8 Years
 
cosmos is offline
Help with basic linux commands

Hello all,

I have tried searching both here and google/ask but was unsuccessful.

I am having trouble copying files from my USB drive to my FreeBSD router. More to the point, I am unable to get the command correct for me to switch over to the USB drive as the cd. I know the USB drive is connected and recognized as I get the following on the console:

Quote:
umass0: Sandisk, addr2
da0 at umass-sim0 bus 0 target 0 lun 0
I thought the command would be 'cd /da0' and 'cd /umass0' but it just returns no such file or directory. I won't go into all the combinations I've tried.

I'm sure that it's simple command.

TIA
  #2  
Old 09-09-2006, 12:26 AM
morpheus6d9 [H]ard|Gawd, 4.7 Years
 
morpheus6d9 is offline
did you mount the device
__________________
<sig too long>
  #3  
Old 09-09-2006, 12:38 AM
cosmos [H]ard|Gawd, 8.8 Years
 
cosmos is offline
I was trying to use 'mount -t msdos | /dev/da0' but I got permission denied. Was hoping since it was recognized it was auto mounted. Guess I'm too used to windows/mac >:l
  #4  
Old 09-09-2006, 01:27 AM
penguin 2[H]4U, 6.7 Years
 
penguin is offline
Try mounting it as root - that might work. If it works, run 'chmod 666 /dev/da0' and try mounting it as a normal user.

EDIT: I just re-read your command. Take the pipe ( '|' ) out of the middle of it (mount -t msdod /dev/da0)
__________________
In the history of man only two defining forces have been willing to die for you:
Jesus Christ died for your soul.
And the American Soldier died for your freedom.
Sadly, both seem to have been forgotten.

Proud member of the Socket A club

Take everything in life seriously except yourself, and you will find success.
  #5  
Old 09-10-2006, 06:53 PM
cosmos [H]ard|Gawd, 8.8 Years
 
cosmos is offline
if I don't have the pipe in there, it spits the correct usage at me. I tried chmod but still nothing...

it doesn't have a man for anything either..
  #6  
Old 09-10-2006, 07:22 PM
HHunt [H]ardness Supreme, 8.6 Years
 
HHunt is offline
The correct command is "mount -t msdosfs /dev/da0s1 /mnt/whatever", where /mnt/whatever is a (preferably empty) directory of your choice. If it succeeds, that's the directory the files will show up in.
The device might not be da0s1. Check in /dev what da0* devices you have (ls /dev/da0*) if it complains, and try the one with the longest name.

And do this as root. When you get it working we'll look at making it possible as a normal user, but for now logging in as root will eliminate one potential source of problems.

BTW, if you have the disk space, install the man pages. There's no good reason not to.
As a fallback, you can use their man online service.

Last edited by HHunt; 09-10-2006 at 07:31 PM..
__________________
Location: Norway
Under no circumstances will I ever purchase anything offered to me as the result of an unsolicited e-mail message. Nor will I forward chain letters, petitions, mass mailings, or virus warnings to large numbers of others. This is my contribution to the survival of the online community.
-- FreeBSD 8.0, Windows 7 --
  #7  
Old 09-10-2006, 07:41 PM
cosmos [H]ard|Gawd, 8.8 Years
 
cosmos is offline
awesome, thanks! The '/mnt' was what I needed.

I installed a SA router package (pfsense) and it didn't include the man pages.

Thanks for your help and the resource.
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 08:49 AM.


Valid XHTML 1.0 Transitional

Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2000 - 2009 KB Networks, Inc.