CLI, accessing another drive

Chuck Hallenbeck chuckh at ftml.net
Mon Jan 7 06:06:14 EST 2013


Hi Glen,

On Sun, 6 Jan 2013, Glenn wrote:

> Hi,
> I know that other drives are devices such as /dev/sdb, or /dev/hdc, and the
> like.
> But I am messing with Arch Linux, with Speakup, and I want to install Voxin,
> and I will plug in a thumb drive, it will probably be /dev/sdd.
> can I just work my way to the folder in Arch that I want to put the install
> file, and do something like:
> cp /dev/sdd/voxin-enu-4.3.tgz
> and bring it in?
> I am used to copying files with Ubuntu, and only using the CLI for
> installation of the files.
> Glenn
>
You must mount the device, such as /dev/hdb1, /dev/sdb1, or the like, to a
point in your file system. Linux usually makes an empty directory available
for that purpose, such as /mnt, or /media. The mounbt command might look
like this:

# mount /dev/sdb1 /mnt

The number sign indicates that you must be root to do that. Once it is
mounbted, you can then use the cp command to copy your file from
/mnt/filename,  or /media/filename, just as though it were already present
on your system. You can also write to that device by referring to it as
/mnt, delete stuff from it, and so on, being careful when finished to
unmount it, something like this:

# umount /mnt

or

# umount /dev/sdb1

Either form is correct, and the unmount command is really spelled umount,
no kidding.

Chuck



> _______________________________________________
> Speakup mailing list
> Speakup at linux-speakup.org
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>

-- 

Chuck in Hudson, i.e., Hudson on the Hudson.


More information about the Speakup mailing list