You are not logged in.

#1 2007-07-02 04:42:14

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

Accessing external storage devices from the console?

Hi there,

I was wondering how to access external storage devices (namely a USB flash drive) from the terminal. I am not very familiar with ext3 and do not know what the device would be named as. Would us -ls in /dev find me it by any chance? Input is appreciated and any tips or tricks for doing this as well!

Thanks

Offline

#2 2007-07-02 05:33:02

wrm
Member
From: Europe
Registered: 2005-06-09
Posts: 19

Re: Accessing external storage devices from the console?

Hi,

when you plug in some external usb device like USB Flash Drive, you can use "dmesg" command and if the device if recognized correctly you'll see whether the device is assigned sdXY or hdXY.
By the way, ext3 got nothing to do with it, udev manages\assigns nodes of the devices.


knowledge is p0wer..

Offline

#3 2007-07-02 07:40:06

hacosta
Member
From: Mexico
Registered: 2006-10-22
Posts: 423

Re: Accessing external storage devices from the console?

after you know what is the name of the device assigned (probably sdb1 if you have 1 hard drive) you need to mount it.. use the command mount /dev/sdXY /dir/that/exists... there you had acces a storage device from the console (:

Offline

#4 2007-07-02 14:55:34

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

Re: Accessing external storage devices from the console?

Thanks!

Offline

#5 2007-07-02 17:00:03

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: Accessing external storage devices from the console?

If you want to be able of do that from user pmount may also help.

Offline

#6 2007-07-02 22:43:34

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

Re: Accessing external storage devices from the console?

As in, without su/not logged in as root?

Offline

#7 2007-07-02 22:57:03

lloeki
Member
From: France
Registered: 2007-02-20
Posts: 456
Website

Re: Accessing external storage devices from the console?

$ pacman -Ss pmount
extra/pmount 0.9.13-4
    mount removable devices as normal user

if not in fstab (it should not anymore anyway), the mount will end up in /media/${label}||${devicenode}

Last edited by lloeki (2007-07-02 22:58:57)


To know recursion, you must first know recursion.

Offline

Board footer

Powered by FluxBB