mount command syntax

Asked by aneesh

Please give me the command syntax for mounting remote filesystem into my local system ?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

depends on the partition name and file type. You can see what the partition name and type are using:

sudo parted -l

using /dev/sdc1 as an example using ext4

sudo mkdir /media/stuff

(you need to make the folder to mount to). The command would then be:

sudo mount /dev/sdc1 /media/stuff -t ext4

ntfs is a little trickier as it has garbage permissions so must ne set at mount:

sudo mount /dev/sdc1 /media/stuff -t ntfs-3g -o uid=1000,rw,user

The number of combinations is quite astronomical so examples must be used to constrain the reply

Revision history for this message
aneesh (aneesholv) said :
#2

I also want know how to mount the filesystem of another pc (In my local lan
)in to my local system.
suppose to mount the shared directory of another windows system or ubuntu
in to my local ubuntu.
Please give me the syntax ..

On Sat, Mar 27, 2010 at 7:21 PM, actionparsnip <
<email address hidden>> wrote:

> Your question #105670 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/105670
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> depends on the partition name and file type. You can see what the
> partition name and type are using:
>
> sudo parted -l
>
> using /dev/sdc1 as an example using ext4
>
> sudo mkdir /media/stuff
>
> (you need to make the folder to mount to). The command would then be:
>
> sudo mount /dev/sdc1 /media/stuff -t ext4
>
> ntfs is a little trickier as it has garbage permissions so must ne set
> at mount:
>
> sudo mount /dev/sdc1 /media/stuff -t ntfs-3g -o uid=1000,rw,user
>
> The number of combinations is quite astronomical so examples must be
> used to constrain the reply
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/105670/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/105670
>
> You received this question notification because you are a direct
> subscriber of the question.
>

--
------with regards,

                      Aneesh.T.V
                      Mob:9544067525

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

I need the output of the command:

sudo parted -l

Thans

Revision history for this message
aneesh (aneesholv) said :
#4

root@ar-so:~# parted -l
parted: invalid option -- l
GNU Parted 1.7.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.

On Sun, Mar 28, 2010 at 12:39 AM, actionparsnip <
<email address hidden>> wrote:

> Your question #105670 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/105670
>
> Status: Open => Needs information
>
> actionparsnip requested for more information:
> I need the output of the command:
>
> sudo parted -l
>
> Thans
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/105670
>
> You received this question notification because you are a direct
> subscriber of the question.
>

--
------with regards,

                      Aneesh.T.V
                      Mob:9544067525

Revision history for this message
aneesh (aneesholv) said :
#5

This is th output of the parted -l command

root@ar-so:~# parted -l
parted: invalid option -- l
GNU Parted 1.7.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.

On Sun, Mar 28, 2010 at 12:39 AM, actionparsnip <
<email address hidden>> wrote:

> Your question #105670 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/105670
>
> Status: Open => Needs information
>
> actionparsnip requested for more information:
> I need the output of the command:
>
> sudo parted -l
>
> Thans
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/105670
>
> You received this question notification because you are a direct
> subscriber of the question.
>

--
------with regards,

                      Aneesh.T.V
                      Mob:9544067525

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

sudo parted -l

Copy and paste the command rather than typing it, that is why I give the full command.

Are you logging in as root?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

The command in caps would be:

SUDO PARTED -L

but linux (mainly) uses lowercase

Revision history for this message
aneesh (aneesholv) said :
#8

Yes iam login in as root and This is th output of the parted -l command

root@ar-so:~# parted -l
parted: invalid option -- l
GNU Parted 1.7.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.

On Mon, Mar 29, 2010 at 5:01 PM, actionparsnip <
<email address hidden>> wrote:

> Your question #105670 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/105670
>
> Status: Open => Needs information
>
> actionparsnip requested for more information:
> sudo parted -l
>
> Copy and paste the command rather than typing it, that is why I give the
> full command.
>
> Are you logging in as root?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/105670
>
> You received this question notification because you are a direct
> subscriber of the question.
>

--
------with regards,

                      Aneesh.T.V
                      Mob:9544067525

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

Logging ni a root is REALLY dumb.

Try:

sudo fdisk -l

I also suggest you read why root is disabled in Ubuntu and then disable the account. You are runing ALL your apps including web browsers and chat clients as root which is hugely unsecure. The account is disabled for a billion great reasons

Can you help with this problem?

Provide an answer of your own, or ask aneesh for more information if necessary.

To post a message you must log in.