LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Mount windows partitions? (https://www.linuxquestions.org/questions/fedora-35/mount-windows-partitions-596881/)

Erik765 11-03-2007 12:32 PM

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?

MS3FGX 11-03-2007 12:42 PM

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.

Erik765 11-03-2007 01:14 PM

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?

stoat 11-03-2007 03:29 PM

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.

decrepit 11-04-2007 03:12 AM

Quote:

Originally Posted by Erik765 (Post 2947026)
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.

Erik765 11-04-2007 11:35 AM

Got it guys. Thanks for you help!
;)/dev/sda1 /mnt/windows ntfs-3g user,umask=0000 0 0


All times are GMT -5. The time now is 08:38 PM.