LinuxQuestions.org
Review your favorite Linux distribution.
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, 05:38 AM   #1
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 112

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, 06: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, 06:08 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

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, 06:12 AM   #4
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 112

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, 06:14 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

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, 06:20 AM   #6
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 112

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, 06:24 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

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, 06:32 AM   #8
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 112

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, 06:36 AM   #9
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

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, 06: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 09:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration