LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-15-2006, 11:19 AM   #1
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,819
Blog Entries: 1

Rep: Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209
windows partition once again


Hallo, I have Fedora Core 4 (64bit) / WinXp
I would like to access my windows partition
I read in one of the threads that I have to modify
/etc/fstab. The problem is that I don't know which
one is a windows partition, what I get is:

Quote:
[root@localhost marcin]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0
/dev/scd0 /media/cdrecorder1 auto pamconsole,exec,noauto,fscontext=system_ubject_r:removable_t,managed 0 0
As far as I know, I have 3 windows partitions and 1 linux partition. In windows it is as follows:
c- ntfs
d- fat
e- fat
f -cd
g- cd
h - unaccessible (linux)

which one is which?
 
Old 01-15-2006, 11:44 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
OK, first FC4 does not support the ntfs filesystem so you need to at least visit http://www.linux-ntfs.org/ and download the correct rpm(s) for your kernel(s) you are using. Next you need to know in Linux terms which Windows partition is which, from the console or xterm session type something like; fdisk -l (that's the lowercase letter 'L' and not the number [1] one)

Example output (yours will be different);

Disk /dev/hda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 383 3076416 12 Compaq diagnostics
/dev/hda2 * 384 6258 47190937+ c W95 FAT32 (LBA)
/dev/hda3 6259 6271 104422+ 83 Linux
/dev/hda4 6272 12161 47311425 5 Extended
/dev/hda5 6272 8882 20972826 83 Linux
/dev/hda6 8883 10447 12570831 83 Linux
/dev/hda7 10448 10708 2096451 82 Linux swap / Solaris
/dev/hda8 10709 12161 11671191 83 Linux

In this example I have two Microsoft partitions (hda1 and hda2) both of which are vfat in Linux terms. In order to mount them as root from the console or xterm session one would type something like;

mkdir /media/hidden (got to have a mountpoint to mount the partition)
mount -t vfat /dev/hda1 /media/hidden -rw

If one was to edit /etc/fstab to allow normal users to mount the partitions as read/write the folowing example /etc/fstab entries would be needed;

/dev/hda1 /media/hidden auto exec,noauto,users,rw 0 0
/dev/hda2 /media/windowsxp auto exec,noauto,users,rw 0 0

See both 'man fstab' and 'man mount' without the single quotemarks from the console or xterm session for the details and other options.

HTH
 
Old 01-15-2006, 11:45 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
none of them are, as that'd be a new line to add. if the line was already there, you'd already have access! anywho... if it's your "c" drive, then that's presuamblyo /dev/hda you want to add a line for:

Code:
/dev/hda1     /mnt/windows     ntfs    ro    0 0
that'll get you reading the device ok i reckon.
 
Old 01-15-2006, 12:00 PM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,819
Blog Entries: 1

Original Poster
Rep: Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209
Thank you guys, it's working
 
  


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
moving files from windows partition to linux partition M O L8ingN2dust Linux - Newbie 11 01-08-2006 09:11 PM
How can I access files in my Windows 98 partition from my Linux partition, /w BASH? Fabyfakid Linux - Newbie 4 09-17-2004 11:05 PM
I want to increase my Linux partition.Should I take space from a Windows partition? PrinceBalak Linux - General 1 06-25-2004 05:44 PM
What is the code to copy a file from my windows partition to my linux partition? THEBIGFISH Linux - Newbie 3 03-15-2004 10:14 PM
How do I install slackware on a partition made by partition magic in windows bling bling Slackware 4 06-28-2003 11:16 PM


All times are GMT -5. The time now is 04:16 PM.

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