Sign in to follow this  
Followers 0
Original Poster

external HD view in linux command line?

8 posts in this topic

hi! firstly I need to view a external HD (connected via usb) in ubuntu command line! also after that! i need to work out how to add it to my directory listings (so I can browse it) !?! any help ? 

 

 

_edit_

 

I can see it is connected using "lsusb" but i cannot access it via cd /media

Share this post


Link to post
Share on other sites

How is it formatted?

 

"mount" should show you all available volumes.

You can use "mount -a" if you have it set up in fstab already, otherwise find the volume with mount then use "mount /dev/<volume> <mountPoint>" for the simplest method.

 

For example:

mount /dev/sda1 /media/usb

 

Note that you will need to create a directory somewhere to use as a mount point if you haven't already.

Share this post


Link to post
Share on other sites

Do "sudo fdisk -l" and that will list all the drives. sda should be your boot, so whatever is mounted next, should be your ext drive. CD to it and then ls it to make sure it is.

Then, to mount it to a custom mount point, if its a NTFS drive (going to assume it is) then type in the below

 

sudo mount -t cifs /dev/diskgoeshere(i.e. sdb, sdc, etc) /media/your_mount_name

 

man mount if you want to see what all the options do. You can set it to read only, blah blah blah

Share this post


Link to post
Share on other sites

^ cifs is for samba shares, isn't it?

 

There's also the automount option but you have to set up a file for it first. It's not too difficult.

Share this post


Link to post
Share on other sites

What greywold said works too. But you can also use what I said, I did forget to say create a directory to mount the drive to.


^ cifs is for samba shares, isn't it?

 

Yes it is. And im assuming he's using SMB especially being on Windows.
 

I havent found any good NFS support on windows. If you have please share.

i use NFS via Linux and OSX but my windows desktop cant do ###### with it so i have to deal with SMB

Share this post


Link to post
Share on other sites

He said it was an external drive. :)

Share this post


Link to post
Share on other sites

He said it was an external drive. :)

 i need to work out how to add it to my directory listings (so I can browse it) !?! any help ? 

 

I interpreted that to be sharing.

Sorry working in IT with people confuses my brain. Everyday someone says "I cant see this in "My Computer" or "Finder" or i cant find my "directories" and its usually some kind of share.

So thats my excuse and im sticking with it!

 

Share this post


Link to post
Share on other sites

How is it formatted?

 

"mount" should show you all available volumes.

You can use "mount -a" if you have it set up in fstab already, otherwise find the volume with mount then use "mount /dev/<volume> <mountPoint>" for the simplest method.

 

For example:

mount /dev/sda1 /media/usb

Note that you will need to create a directory somewhere to use as a mount point if you haven't already.

 

 

ha cheers! that helped!

 i need to work out how to add it to my directory listings (so I can browse it) !?! any help ? 

 

I interpreted that to be sharing.

Sorry working in IT with people confuses my brain. Everyday someone says "I cant see this in "My Computer" or "Finder" or i cant find my "directories" and its usually some kind of share.

So thats my excuse and im sticking with it!

 

well i suppose i did not explain my self correctly :P i was using a terminal linux (which is acting as a plex media server) and i could not see the drive when i typed "cd /media"  *ls* ... 

I just needed to access it so I could view its contents without having to change drives :P as that would have made it difficult for the media server using the drive xD 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.