LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-29-2010, 09:03 PM   #1
tranduyhung
LQ Newbie
 
Registered: Sep 2010
Location: Vietnam
Distribution: Debian, Lubuntu
Posts: 10

Rep: Reputation: 0
Mount a partition in command line


Hi all,
I use a ext4 partition to store my data, to mount and open that partition I open Nautilus file manager, then click on the partition icon and label on the left side.
So if I don't have a desktop environment, how can I mount a partition in terminal?
Thank you very much
 
Old 11-29-2010, 09:08 PM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
1. Check which drive it is (/dev/sda3, /dev/sdb1, etc) I always do it with 'fdisk -l'
2. Create a directory where you want to mount it, eg. /home/user/disk
3. As root you can mount it
Code:
mount /dev/sda3 /home/user/disk
There might be some specific mount options depending on the filesystem of the drive
What file system are we talking about? Is it a windows drive?

Last edited by sycamorex; 11-29-2010 at 09:13 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] trying to resize a partition from command line pwagner9999 Linux - Newbie 2 08-21-2010 12:02 PM
Mount like a file manager from the command line meetscott Linux - Software 14 06-07-2010 01:30 PM
Mount VBoxGuestAddition from command line in Centos nerak99 Linux - Newbie 1 10-18-2009 03:49 PM
Mount USB drive from command line rcrummett Linux - Newbie 10 09-25-2008 06:16 PM
write partition table from the command line drkstr Slackware 18 07-27-2006 01:36 PM


All times are GMT -5. The time now is 10:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration