Quote:
Originally Posted by sniper8752
when you say mounted - does that mean am I able to access it (and the contents)? I am able to access anything on the drive.
|
basically yes.
http://linux.die.net/man/8/mount
In the MS world when you plug in a USB drive and you get the little pop-up window, "Installing drivers for XYZ device", wait for it, "Your device is now ready for use" Windows is "mounting" the device and assigning it a drive letter. lets call it E:\ as an example.
In Linux you can think of it the same way. Until the OS has "mounted" the drive there is zero access to the device. that simple.
Now how things are mounted, accessed, etc... that is a bit different in the Linux world then the MS world.
In most modern distros, including Ubuntu, the GUI (thats the graphical user interface) has some means of accessing the computers file system. If when you open that and you can not see the NTFS partition/drive/device then it is not mounted and you might have to mount it manually via the command line (cli) think CMD in the MS world.
as you are using Ubuntu assume all of these commands are issued via sudo, or if you are smart you enabled the root account and are running as root, thus ill be using # to display that level of user access. THESE are NOT something the typical USER level account should ever have access to. these are ROOT level access commands. Please keep that in mind. This is NOT the MS world were everything you do should be done as an administrator because that is just NOT SAFE or secure.
Code:
# mkdir /mnt/NTFS
# fdisk -l <you are looking for the NTFS drive and its partition number. i am going to use /dev/sdb1 for my example>
# mount -t ntfs-3g /dev/sdb1 /mnt/NTFS
# cd /mnt/NTFS
# ls -laF
this will first create the mount point /mnt/NTFS
then you will be looking for the device information
mount using the ntfs-3g utility that works with mount
change directory into the /mnt/NTFS that contains your data for the NTFS partition
verify that you are able to read the data by running a ls (list) command. the -l is long, the -a is all and the -F is file type.
side note, i will typically alias ls -laF to d this makes for much less typing:
Code:
alias d='/bin/ls -laF'
alias dird='/bin/ls -laFp | grep /'
those two allow me to list the full list of files and directories including hidden directories (your . directories like .ssh) or just the directories only.
very nice to have in any Linux system.