LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 11-03-2007, 01:32 PM   #1
Erik765
Member
 
Registered: Mar 2007
Distribution: Kubuntu 7.10, Fedora 8
Posts: 48

Rep: Reputation: 15
Mount windows partitions?


When I used to use Suse 10.1, from nautalis (sp) I could read my windows partitions. I'm assuming they're dev/sda1 and dev/sda2. When I try mounting them from a terminal in Fedora 7, it says they're not found in fstab or mtab.

How do I get Fedora 7 to mount those volumes so I can transfer files over?
 
Old 11-03-2007, 01:42 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Why do you assume that is the correct device?

It sounds like step one is finding what device the Windows partitions are actually on. Try "fdisk -l" to list the storage devices and their partitions.
 
Old 11-03-2007, 02:14 PM   #3
Erik765
Member
 
Registered: Mar 2007
Distribution: Kubuntu 7.10, Fedora 8
Posts: 48

Original Poster
Rep: Reputation: 15
I tried fdisk -l. It didn't return anything, so I looked at the man and it said it references /proc/partitions. Ran a vi on this file. This is what it returned.
Quote:
major minor #blocks name

8 0 312571224 sda
8 1 25599546 sda1
8 2 127997887 sda2
8 3 104422 sda3
8 4 1 sda4
8 5 158866753 sda5
253 0 154730496 dm-0
253 1 4096000 dm-1
8 16 244198584 sdb
8 17 121636147 sdb1
8 18 122551852 sdb2
Fstab is:
Quote:
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
Mtab is:
Quote:
/dev/mapper/VolGroup00-LogVol00 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/sda3 /boot ext3 rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
Any more ideas?
 
Old 11-03-2007, 04:29 PM   #4
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 484

Rep: Reputation: 133Reputation: 133
Hello Erik765,

If they are NTFS partitions, then ntfs-3g needs to be installed. It is normally installed by default in F7, but you can check with this:
Code:
rpm -qa | grep ntfs-3g
If it is not installed, then you can install it with this:
Code:
yum install ntfs-3g
If ntfs-3g is already installed, then you can mount an NTFS Windows partition like this:
Code:
su -
mkdir /mnt/windows
mount -t ntfs-3g /dev/sda1 /mnt/windows
After that you can see the partition in your file manager. It will also work without the -t ntfs-3g part, but that is the usual way to designate the filesystem type.

To have it mounted automatically at boot, edit your fstab. An example of a line to add to your fstab for an NTFS partition:
Code:
/dev/sda1  /mnt/windows  ntfs-3g  user,umask=0000 0 0
To teach yourself what all that means and customize permissions, consult a tutorial on fstab. A good example and one that I used a lot...

http://www.tuxfiles.org/linuxhelp/fstab.html

P.S.: It is important to know how to get the results of fdisk -l. First you must be logged in to the terminal as root for fdisk to work. If you log in with su, then you must use the full path for the command like this: /sbin/fdisk -l. If you log in to the terminal with su -, then simply fdisk -l will work. su and su - have different $PATH variables. Finally, that list option is a lower case letter L and not a number one.
 
Old 11-04-2007, 04:12 AM   #5
decrepit
Member
 
Registered: May 2006
Distribution: Ubuntu10.04, < fedora12
Posts: 347

Rep: Reputation: 34
Quote:
Originally Posted by Erik765 View Post
I tried fdisk -l. It didn't return anything, so I

>>>>>>>>>>>
Any more ideas?

You have to have root privileges for fdisk -l to work.

So do su - (it's the "-" sign that does it)

you should see something like this

[mike@core6 ~]$ su -
Password:
[root@core6 ~]# fdisk -l

Disk /dev/hda: 10.2 GB, 10242892800 bytes
255 heads, 63 sectors/track, 1245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 1245 9896040 8e Linux LVM

Disk /dev/sda: 80.0 GB, 80025280000 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1912 15358108+ 7 HPFS/NTFS
/dev/sda2 1913 3824 15358140 83 Linux
/dev/sda3 3825 5736 15358140 c W95 FAT32 (LBA)


If your windows partitions aren't NTFS, it's easy. just create a directory in /mnt, something like /mnt/windows. Then as root, you should be able to do.
mount /dev/sda3 /mnt/windows. Just change sda3 to your partition.
 
Old 11-04-2007, 12:35 PM   #6
Erik765
Member
 
Registered: Mar 2007
Distribution: Kubuntu 7.10, Fedora 8
Posts: 48

Original Poster
Rep: Reputation: 15
Got it guys. Thanks for you help!
/dev/sda1 /mnt/windows ntfs-3g user,umask=0000 0 0
 
  


Reply


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
How to mount windows partitions with FC5 jhweigel Fedora 8 06-06-2006 03:13 AM
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
mount windows xp partitions in ubuntu newbieSC Linux - Newbie 8 04-20-2005 10:47 PM
Mount Windows Partitions? RedHatMN Linux - Newbie 9 12-15-2001 12:49 PM


All times are GMT -5. The time now is 03:55 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration