onsdag den 11. august 2010

howto: mount harddisks on system.

This is probably not for people already using some of the more "geekie" distros out there, some of the bigger one are gentoo slackware, debian. But if your new to linux or something like that this might be a rather pleasent entry :-) at least I hope.

Well first things first
Required for this
1. A Harddisk (prefereably external)
2. A computer running linux
3. Some files

I guess you got those things if your reading so lets get started.
first thing you need to do is

fdisk -l


That should give you a list of partitions currently mounted on your system.
as in this picture.













In that picture I am having two extra harddrives on my computer.
As I am moving some files from one to the other.

Well the important thing about this is whether your partitions are hda or sda (most newer ones are sda on linux)
and your external drive are probably also sda (well sdb if your internal are sda)
if sda and sdb are taken the next one is sdc.
So now you have just got to issue the command

mount -t vfat /dev/sd /mnt/

Important: This need to be done as root to have suffiecient rights

Well if it does not complain then you can move into your harddisk and do all the things you use to do in your system.
When done with the harddisk you simply do umount and take it out. 

On a sidenote I would recommend a nice piece of software for seeing the disk usage -> ncdu.
NCurses
Disk
Usage.

I like that.

Ingen kommentarer:

Send en kommentar