LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting partitions without fstab (http://www.linuxquestions.org/questions/linux-newbie-8/mounting-partitions-without-fstab-887921/)

ranban282 06-23-2011 07:11 AM

Mounting partitions without fstab
 
Hi all,
I have ubuntu 10.04 LTS installed. I want to mount a windows partition. I can, of course, use fstab. However, I open nautilus and click on the windows partition in the placed panel. How do I use mount (or any other command) to emulate this?

Snark1994 06-23-2011 07:15 AM

You just need to run:

Code:

sudo mount /dev/sda1 /mnt
(assuming /dev/sda1 is your windows partition)

I can't remember what Ubuntu has in /mnt - but that's a typical place to mount things. It doesn't matter where you choose, just pick a folder, you could even create a /media/WINDOWS folder to mount it to.

ranban282 06-23-2011 09:41 AM

Yes, I knew about that, of course. But how do I mount without sudo, the way nautilus does?

ranban282 06-24-2011 05:26 AM

<BUMP>

ssrameez 06-24-2011 06:09 AM

fdisk -l

find out the correct filesystem. (look for ntfs)

mkdir -p /mnt/windowspart -- give any name you like

sudo mount /dev/sda1 /mnt/windowspart

Snark1994 06-24-2011 08:48 AM

Well, you can set 'mount' not need a password in your /etc/sudoers file, then add an alias to your .bashrc:
Code:

alias mount='sudo mount'
Also, "<BUMP>"ing your threads is normally considered rude here...

ranban282 06-27-2011 08:02 AM

My apologies for not posting my question explicitly. I was wondering how to mount partitions the way nautilus does, that is, without using sudo.

Just in case somebody's interested - you may refer to the following:

http://omegamormegil.wordpress.com/2...-04-and-10-10/
http://stackoverflow.com/questions/4...-nautilus-does


All times are GMT -5. The time now is 11:33 PM.