access usb hard drive through terminal
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I need to find a document which contains an specific word. The document is in my external hard drive but there are thousands of documents in it and I cannot find it. I think that using the command 'grep' I'll be able to find it, but when I try to access my external hard drive via the path cd /media/.... the terminal returns the message: "The file or directory doesn't exist". However, when I run the command 'ls' the hard drive is shown (in green) together with the other USB drives. Also, when I try to access the other usb drives there is no problem at all.
What am I doing wrong? How can I access the external hard drive?
Thank you very much in advance
Joan
command-line
add a comment |Â
up vote
0
down vote
favorite
I need to find a document which contains an specific word. The document is in my external hard drive but there are thousands of documents in it and I cannot find it. I think that using the command 'grep' I'll be able to find it, but when I try to access my external hard drive via the path cd /media/.... the terminal returns the message: "The file or directory doesn't exist". However, when I run the command 'ls' the hard drive is shown (in green) together with the other USB drives. Also, when I try to access the other usb drives there is no problem at all.
What am I doing wrong? How can I access the external hard drive?
Thank you very much in advance
Joan
command-line
Can you add the output ofls
to your question, formatted as code? And also add the full command you entered that gave you the error message.
â Emily
May 16 at 0:31
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I need to find a document which contains an specific word. The document is in my external hard drive but there are thousands of documents in it and I cannot find it. I think that using the command 'grep' I'll be able to find it, but when I try to access my external hard drive via the path cd /media/.... the terminal returns the message: "The file or directory doesn't exist". However, when I run the command 'ls' the hard drive is shown (in green) together with the other USB drives. Also, when I try to access the other usb drives there is no problem at all.
What am I doing wrong? How can I access the external hard drive?
Thank you very much in advance
Joan
command-line
I need to find a document which contains an specific word. The document is in my external hard drive but there are thousands of documents in it and I cannot find it. I think that using the command 'grep' I'll be able to find it, but when I try to access my external hard drive via the path cd /media/.... the terminal returns the message: "The file or directory doesn't exist". However, when I run the command 'ls' the hard drive is shown (in green) together with the other USB drives. Also, when I try to access the other usb drives there is no problem at all.
What am I doing wrong? How can I access the external hard drive?
Thank you very much in advance
Joan
command-line
asked May 15 at 18:14
![](https://lh3.googleusercontent.com/-hYe-0s3_RL0/AAAAAAAAAAI/AAAAAAAAAOc/pv7qce3xz0c/photo.jpg?sz=32)
![](https://lh3.googleusercontent.com/-hYe-0s3_RL0/AAAAAAAAAAI/AAAAAAAAAOc/pv7qce3xz0c/photo.jpg?sz=32)
carlus ventura francos
1
1
Can you add the output ofls
to your question, formatted as code? And also add the full command you entered that gave you the error message.
â Emily
May 16 at 0:31
add a comment |Â
Can you add the output ofls
to your question, formatted as code? And also add the full command you entered that gave you the error message.
â Emily
May 16 at 0:31
Can you add the output of
ls
to your question, formatted as code? And also add the full command you entered that gave you the error message.â Emily
May 16 at 0:31
Can you add the output of
ls
to your question, formatted as code? And also add the full command you entered that gave you the error message.â Emily
May 16 at 0:31
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
Unmount the USB flash drive, unplug it, and do
lsusb && dmesg | tail
Plug it back in and press F3 then Enter
compare the results and identify where your flashdrive automounts to; let's say it automounts to /dev/sdc1
Then, perform this command (and change /dev/sdc1 to reflect where that USB drive automounts to)
sudo mkdir /media/usb && sudo mount /dev/sdc1 /media/usb
Then you should be able to grep the contents of /media/usb
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Unmount the USB flash drive, unplug it, and do
lsusb && dmesg | tail
Plug it back in and press F3 then Enter
compare the results and identify where your flashdrive automounts to; let's say it automounts to /dev/sdc1
Then, perform this command (and change /dev/sdc1 to reflect where that USB drive automounts to)
sudo mkdir /media/usb && sudo mount /dev/sdc1 /media/usb
Then you should be able to grep the contents of /media/usb
add a comment |Â
up vote
0
down vote
Unmount the USB flash drive, unplug it, and do
lsusb && dmesg | tail
Plug it back in and press F3 then Enter
compare the results and identify where your flashdrive automounts to; let's say it automounts to /dev/sdc1
Then, perform this command (and change /dev/sdc1 to reflect where that USB drive automounts to)
sudo mkdir /media/usb && sudo mount /dev/sdc1 /media/usb
Then you should be able to grep the contents of /media/usb
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Unmount the USB flash drive, unplug it, and do
lsusb && dmesg | tail
Plug it back in and press F3 then Enter
compare the results and identify where your flashdrive automounts to; let's say it automounts to /dev/sdc1
Then, perform this command (and change /dev/sdc1 to reflect where that USB drive automounts to)
sudo mkdir /media/usb && sudo mount /dev/sdc1 /media/usb
Then you should be able to grep the contents of /media/usb
Unmount the USB flash drive, unplug it, and do
lsusb && dmesg | tail
Plug it back in and press F3 then Enter
compare the results and identify where your flashdrive automounts to; let's say it automounts to /dev/sdc1
Then, perform this command (and change /dev/sdc1 to reflect where that USB drive automounts to)
sudo mkdir /media/usb && sudo mount /dev/sdc1 /media/usb
Then you should be able to grep the contents of /media/usb
answered May 15 at 18:27
![](https://i.stack.imgur.com/IfEQx.jpg?s=32&g=1)
![](https://i.stack.imgur.com/IfEQx.jpg?s=32&g=1)
K7AAY
3,73221443
3,73221443
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036643%2faccess-usb-hard-drive-through-terminal%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Can you add the output of
ls
to your question, formatted as code? And also add the full command you entered that gave you the error message.â Emily
May 16 at 0:31