LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mounting partitions (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-partitions-929927/)

gojis 02-17-2012 12:32 PM

mounting partitions
 
How do i mount partitions in linux via the comand line especially NTFS partition in read and write mode.

hilyard 02-17-2012 12:55 PM

MOUNT

As root in terminal (or use sudo):

PHP Code:

fdisk -grep NTFS 

should return something like /dev/sda1 or /dev/sdb2 or /dev/sdc3; we'll call it /dev/sdxX

PHP Code:

mkdir /mnt/ntfs 

PHP Code:

mount -t ntfs /dev/sxX /mnt/ntfs 

MOUNT WITH RW ACCESS

Install ntfs-3g

PHP Code:

sudo apt-get update && sudo apt-get install ntfs-3g 

PHP Code:

mount -t ntfs-3g /dev/sdxX /mnt/ntfs

source

Google or Ixquick is your friend! Best wishes!

And Welcome to LQ!

John VV 02-17-2012 08:55 PM

gojis most modern OS's will auto mount the MS windows NTFS drive or partitions under
/media

there is normally NO need to use the terminal any longer

suicidaleggroll 02-17-2012 09:08 PM

Quote:

Originally Posted by John VV (Post 4605553)
gojis most modern OS's will auto mount the MS windows NTFS drive or partitions under
/media

there is normally NO need to use the terminal any longer

I have never found a Linux distro where I haven't had to drop to the terminal within an hour of installation. Linux is still FAR from being terminal-free.

Randicus Draco Albus 02-17-2012 10:02 PM

Quote:

Originally Posted by suicidaleggroll (Post 4605559)
I have never found a Linux distro where I haven't had to drop to the terminal within an hour of installation. Linux is still FAR from being terminal-free.

To do what, if you do not mind me asking?
When I need to re-install Debian, I only need to use the terminal for two things. One is enabling multiple languages and the other is a fount issue that almost no one else has.
Unless you have special needs, like the one I have, there should be no reason to require frequent use of the terminal. Almost everything has a graphical utility. I am neither trying to argue nor be rude. I am just curious why you require extensive use of the terminal.:)

suicidaleggroll 02-17-2012 10:20 PM

Wifi setup GUIs rarely work, it almost always needs manual configuration of wpa_supplicant.conf and/or /etc/network/interfaces and command line configuration/restarting
NFS configuration and mounting
SAMBA configuration
CIFS configuration and mounting
Installation of any program not covered under the included package management system, of which there are FAR too many to even begin to list
Remote management of any other system, be it through SSH, VNC, or remote desktop

I could go on for pages...the bottom line is if you're going to do anything other than email and web browsing, you're going to have to use the command line at some point (often times you'll have to use it just to do those things).

Don't get me wrong, I don't mind doing these things, in fact I prefer having the option of configuring them manually instead of hoping the GUI (if there even is one) is capable of configuring it properly for me (which, often times, it's not). My point is simply that Linux is still very far from being free from the command line. The content of the majority of the threads posted in the Newbie section here are testament to that fact.

Take this very thread...if his OS had recognized the drive and mounted it in R/W mode automatically as John VV suggested it should, he wouldn't be here. Clearly it didn't, which means he had to use the command line to do it, and had to come here to ask for help on how.

The power of Linux IS its command line. If you attempt to do everything without it, you just handicap yourself.

John VV 02-17-2012 11:39 PM

besides the fact that the OP sounds like a bot
or
is posting a homework question from a book that thinks that RH 9 is current

singhjc 02-18-2012 02:50 AM

you must need ntfs package if it is installed then use command like


# mount -t ntfs-3g /dev/devicename /mountpoint -o --force




Thanks
singhjc

Randicus Draco Albus 02-18-2012 06:25 AM

Quote:

Originally Posted by suicidaleggroll (Post 4605584)
Wifi setup GUIs rarely work, it almost always needs manual configuration of wpa_supplicant.conf and/or /etc/network/interfaces and command line configuration/restarting
NFS configuration and mounting
SAMBA configuration
CIFS configuration and mounting

Ah yes. Wireless connection. I would classify that as a special need, since the majority of people do not use it. Debian gives newbies big headaches with wireless, because proprietary drivers, which most or all wireless hardware uses:scratch:, are not included in the various installation media. They must be installed separately. I am sure that must be loads of fun.

And thanks for answering my question.

gojis 02-22-2012 11:31 AM

Quote:

Originally Posted by John VV (Post 4605553)
gojis most modern OS's will auto mount the MS windows NTFS drive or partitions under
/media

there is normally NO need to use the terminal any longer

thank you for that. I just want to know because am learning linux now.


All times are GMT -5. The time now is 07:38 AM.