LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-15-2009, 04:38 AM   #1
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Rep: Reputation: 15
Need help to mount windows partitions?


Nautilus is able to find the partitions. But I am not...!! I am looking at performing this exercise via command prompt.
 
Old 05-15-2009, 05:05 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Run "mount" (with no options) to see which partitions are mounted. Run "fdisk -l" to see a list of partitions and their filesystem types (you'll probably need to run "sudo fdisk -l", actually). Use mount to mount the relevant partition (and see the man page for options you can use).

Please give us more info if you want a more detailed answer. What exactly is the problem you're having? Any error messages?
 
Old 05-15-2009, 05:08 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Also if your windows partitions are ntfs formatted then use the ntfs-3g package to mount them. It should be build in Ibex.
 
Old 05-15-2009, 05:12 AM   #4
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Original Poster
Rep: Reputation: 15
Here is the output of my command prompt:

Code:
deostroll@deostroll-pc:/$ sudo fdisk -l
[sudo] password for deostroll: 

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xdabadaba

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        7833    62918541    7  HPFS/NTFS
/dev/sda2            7834       19456    93361747+   f  W95 Ext'd (LBA)
/dev/sda5            7834       14360    52428096    7  HPFS/NTFS
/dev/sda6           14361       19456    40933588+   7  HPFS/NTFS

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d66ba

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        9376    75312688+  83  Linux
/dev/sdb2            9377        9729     2835472+   5  Extended
/dev/sdb5            9377        9729     2835441   82  Linux swap / Solaris
deostroll@deostroll-pc:/$ mount /dev/sda1
mount: can't find /dev/sda1 in /etc/fstab or /etc/mtab
deostroll@deostroll-pc:/$
What is the correct command I must type?
 
Old 05-15-2009, 05:14 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
If you want to mount /dev/sda1 on suppose /mnt/sda1 use this command

Code:
mount -t ntfs-3g /dev/sda1 /mnt/sda1
Keep in mind /mnt/sda1 directory should exist.
 
Old 05-15-2009, 05:20 AM   #6
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Original Poster
Rep: Reputation: 15
Getting the following error:
Code:
deostroll@deostroll-pc:/$ sudo mount -t ntfs-3g /dev/sda1 /mnt/sda1
fuse: failed to access mountpoint /mnt/sda1: No such file or directory
 
Old 05-15-2009, 05:24 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Quote:
Originally Posted by linuxlover.chaitanya View Post

Keep in mind /mnt/sda1 directory should exist.
Remember this.
 
Old 05-15-2009, 05:32 AM   #8
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Original Poster
Rep: Reputation: 15
Oops forgot that. Thanx. Then again I wonder how does nautilus do the same thing? I had to create a directory in /mnt for this! What will happen the next time I log-on to the system?
 
Old 05-15-2009, 05:36 AM   #9
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
The directory that you created in /mnt will still be there. But it wont get mounted automatically. If you want /dev/sda1 to be mounted when you log in you will need to edit the /etc/fstab file.

Code:
/dev/sda1  /mnt/sda1  ntfs-3g  defaults  0   0
 
Old 05-15-2009, 05:58 AM   #10
Libu
Member
 
Registered: Oct 2003
Location: Chennai
Distribution: Slackware 12.1
Posts: 165

Rep: Reputation: 36
Quote:
Originally Posted by deostroll View Post
Oops forgot that. Thanx. Then again I wonder how does nautilus do the same thing? I had to create a directory in /mnt for this! What will happen the next time I log-on to the system?
nautilus most probably would be mounting the drives onto /media/<some directory>. I guess nautilus is doing this using udev rules ? I'm not very sure, somebody else should be able to throw more light on it.
 
  


Reply

Tags
mount, paritions, windows



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
Mount windows partitions? Erik765 Fedora 5 11-04-2007 11:35 AM
Mount Windows Partitions SweetLou Debian 5 05-02-2006 08:28 PM
I'm not able to mount windows partitions as rw akudewan Ubuntu 2 05-21-2005 02:11 AM
need help to mount and add Windows Partitions ilectrcbob Linux - Newbie 7 06-03-2004 07:56 AM
Mount Windows Partitions? RedHatMN Linux - Newbie 9 12-15-2001 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:27 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
Open Source Consulting | Domain Registration