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 03-10-2007, 01:00 AM   #1
jamil_1
LQ Newbie
 
Registered: Mar 2007
Posts: 13

Rep: Reputation: 0
Question newbie:finding my windows hard drives


hi every body. i am new in the world of linux. i dual boot linux winth windows xp.NOW i want to view the contents of my windows hard drives i.e C,D ,E ....I can't find these drives in redhat.My knowledge of linux tell me that i need to mount these drives fordt but i don't know how to mount them. the parameter of the "mount" are too scary for me. while giving me the answer plz keep in mind that i am an addict of windows. so plz don't tell me a plethora of commands. tell me what to do with my mouse
the format of my hard drives is ntfs.

Last edited by jamil_1; 03-10-2007 at 01:05 AM.
 
Old 03-10-2007, 01:51 AM   #2
sumguy231
Member
 
Registered: Apr 2004
Location: North America
Distribution: Kubuntu 7.04 - Feisty Fawn
Posts: 296

Rep: Reputation: 30
I'm afraid that this really is easier from the command line. Try it; you just might like it. Don't be so afraid of mount, it's one of the safer commands out there and for simple mounting, you don't really need any special options or switches.

To list all of your drives and find out what they're called, run
Code:
fdisk -l
as root. You will get something like this, but with info pertaining to your drives.:
Quote:
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 1824 14651248+ 83 Linux
/dev/hda2 1825 4499 21486937+ 83 Linux
/dev/hda3 4500 4865 2939895 82 Linux swap / Solaris
The ones that say 'NTFS' or 'Fat32' would be your Windows partitions. To mount them once, you'll want to start by making a directory to mount it to. As root,
Code:
mkdir /mnt/<name of hard drive>
(Actually, this directory can really be called anything you want. I just think it makes it simpler for the two to have the same name. If naming it after what data it contains helps you out, go with that.)
Then, just mount it (again, as root) with:
Code:
mount /dev/<name of hard drive> /mnt/<name of hard drive>
If you want to mount it every time you start it, that's where it gets harder. Ask me if you want to know.

Last edited by sumguy231; 03-10-2007 at 01:53 AM.
 
Old 03-10-2007, 03:38 AM   #3
jamil_1
LQ Newbie
 
Registered: Mar 2007
Posts: 13

Original Poster
Rep: Reputation: 0
reply

man thanks for the help.I am running red hat linu 9
when ever i try to run the commant it says that no such file or directory exsist in /dev
more over when i try to to follow the help given by "mount --help" bt typing mount - Ntfs /.......
it says that ntfs is ot supported by the kernel
 
Old 03-10-2007, 04:14 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
I am running red hat linux 9
Unless you have a compelling reason for staying with this distribution, you are strongly urged to consider a more recent one. RH9 is extreme legacy... all-but abandoned. There have been great strides since then... if you like RH style, consider fedora core or openSUSE. A more windows-like distro would be Freespire or Xandros.

http://www.linuxquestions.org/questi...d.php?t=437396

If you have a problem with a command, you can copy the command and it's output to this forum (just copy and paste like normal). This avoids having to describe what happens, possibly imperfectly because you're new.

Quote:
when ever i try to run the commant it says that no such file or directory exsist in /dev
I suspect you are trying to mount /dev/C: and /dev/D: ... which, indeed, do not exist. Linus partitions are not labelled that way.
Quote:
more over when i try to to follow the help given by "mount --help" bt typing mount - Ntfs /.......
it says that ntfs is ot supported by the kernel
To get to the bottom of things, when you enter "fdisk -l", what do you get? (Remember: copy and paste.)

My recollection is that the RH9 kernel will support ntfs out of the box. But I could be mistaken, it's been a while. The alternative is to use a program called ntfs3g (you'll have to install it) which is used as follows:
Code:
$ su -
Password: 
# mkdir /mnt/cdrive
# ntfs3g /dev/hda1 /mnt/cdrive
(assuming the first partition on the primary master ide drive is your C:\ drive. It may not be, which is why I would like to see the output of fdisk -l.

However, if you have literally used the command # mount -t Ntfs, then you should try # mount -t ntfs ... spot the difference.

Last edited by Simon Bridge; 03-10-2007 at 04:33 AM.
 
Old 03-10-2007, 04:32 AM   #5
jamil_1
LQ Newbie
 
Registered: Mar 2007
Posts: 13

Original Poster
Rep: Reputation: 0
reply

well man i have right now a single pc from which i dual boot. so i cant see my ex3 partition through windows and ntfs through linux so i can't give you the out put of "fdisk -l". how ever i m certain that terminal says that the kernel does't support ntfs or fat.
as far as upgrading is concerned that would be the last option that i will persue
 
Old 03-10-2007, 04:43 AM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
kernel does't support ntfs or fat
I have an edition of RH9 with me - and it was the first I used. I tell you now: FAT32 partitions are supported in the linux kernel (2.4.20-9) that comes with it. The filesystem type for the mount command is "vfat".

I'm afraid I cannot help you if you cannot or will not provide the information I have asked for.
Quote:
as far as upgrading is concerned that would be the last option that i will persue
... very well, you have been warned.

If you intend to have much to do with the RH9 distribution, you should go look up the fedora legacy project ... ideally you should try to install yum and use the legacy repositories: it will make installing software so much easier.

Last edited by Simon Bridge; 03-10-2007 at 04:46 AM.
 
Old 03-10-2007, 05:03 AM   #7
jamil_1
LQ Newbie
 
Registered: Mar 2007
Posts: 13

Original Poster
Rep: Reputation: 0
reply

here is what i get when i follow you instructions


[root@localhost root]# fdisk -l

Disk /dev/hda: 20.4 GB, 20416757760 bytes
255 heads, 63 sectors/track, 2482 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 382 3068383+ 7 HPFS/NTFS
/dev/hda2 1207 2482 10249470 f Win95 Ext'd (LBA)
/dev/hda3 383 416 273105 82 Linux swap
/dev/hda4 417 1206 6345675 83 Linux
/dev/hda5 1207 1844 5124703+ 7 HPFS/NTFS
/dev/hda6 1845 2227 3076416 7 HPFS/NTFS
/dev/hda7 2228 2482 2048256 7 HPFS/NTFS

Partition table entries are not in disk order
[root@localhost root]# mkdir /mnt/softwares
[root@localhost root]# mount /dev/hda5 /mnt/softwares
mount: fs type ntfs not supported by kernel
[root@localhost root]#

more over uname -r says thyat i have 2.4.20-8 version of kernel
 
Old 03-10-2007, 05:44 AM   #8
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,551

Rep: Reputation: 139Reputation: 139
example:
su
mkdir /mnt/fat
mount -t vfat /dev/hda2 /mnt/fat

mkdir /mnt/ntfs1
mount -t ntfs /dev/hda5 /mnt/ntfs1

if this gives no errors you can view the directories by typing
ls /mnt/ntfs
or
ls /mnt/fat

or with a graphical client. You will not be able to write to the ntfs partitons though. If you want to mount the partitions at startup put lines according to the following into your /etc/fstab (as root)

dev/hda2 /mnt/fat vfat rw,user,auto 0 0

Last edited by j-ray; 03-10-2007 at 05:55 AM.
 
Old 03-10-2007, 05:57 AM   #9
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
[root@localhost root]# mount /dev/hda5 /mnt/softwares
mount: fs type ntfs not supported by kernel
Quote:
Originally Posted by Simon
My recollection is that the RH9 kernel will support ntfs out of the box. But I could be mistaken, it's been a while.
Well, I did say I could be wrong about ntfs... clearly your distro does not come with the ntfs driver or you did not install it from the distribution media.

It follows that you must install the ntfs driver, or (better) you must install ntfs3g (which allows read-write access to ntfs partitions from Windows XP or earlier - I don't know about vista).

I would normally have said that you should obtain these from the fedora lagacy project. However - the project has recently shut down! http://download.fedoralegacy.org/

You will not be able to find RH9 rpm files. So it follows you will have to compile from source... http://ntfs-3g.org/

You will need the full development tools (and kernel headers if not the actual source) as well as the full FUSE package installed.

Recommend upgrading the kernel and all the development tools as the modern source may include code which will not parse well in legacy versions of gcc/g++ etc. and/or rely on features of the modern kernel that are absent in your legacy kernel.

Alternatively, install the ntfs (read-only) kernel module...
http://sourceforge.net/project/showf...group_id=13956

Still want to keep using RH9?

Last edited by Simon Bridge; 03-10-2007 at 06:14 AM.
 
Old 03-10-2007, 06:06 AM   #10
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
BTW:
Code:
Disk /dev/hda: 20.4 GB, 20416757760 bytes
255 heads, 63 sectors/track, 2482 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 382 3068383+ 7 HPFS/NTFS
/dev/hda2 1207 2482 10249470 f Win95 Ext'd (LBA)
/dev/hda3 383 416 273105 82 Linux swap
/dev/hda4 417 1206 6345675 83 Linux
/dev/hda5 1207 1844 5124703+ 7 HPFS/NTFS
/dev/hda6 1845 2227 3076416 7 HPFS/NTFS
/dev/hda7 2228 2482 2048256 7 HPFS/NTFS
...
This says that
C:\ is hda1 (the only primary partition)
D:\ is hda5
E:\ is hda6
(... as you have probably surmised.)

hda4 is your root partition ... you have made no provision to preserve your /home directory against a reinstall or upgrade. Even with a strong backup policy, the practice (of giving /home it's own partition) will save time and effort.
 
Old 03-10-2007, 08:25 AM   #11
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
Just to mention:

Quote:
Originally Posted by j-ray
example:
su
mkdir /mnt/fat
mount -t vfat /dev/hda2 /mnt/fat
the hda2 partition is NO FAT32 PARTITION, but infact an extended partition you can't mount this one, the statements of f-ray do not apply here, but the fstab line can be used for the other partitions as well:
Code:
dev/hda5   /mnt/hda5   ntfs   ro,user,auto   0   0
mind by change from rw to ro since the kernel ntfs driver cannot write to ntfs! If you need to write, use ntfs3g.

my compliments Simon, good descriptions and fine doing.
 
Old 03-10-2007, 04:18 PM   #12
RevenantSeraph
Member
 
Registered: Jan 2007
Distribution: Ubuntu
Posts: 66

Rep: Reputation: 15
I am a fellow XP-Linux dual-booter, are you still encountering problems?
 
Old 03-11-2007, 05:59 AM   #13
jamil_1
LQ Newbie
 
Registered: Mar 2007
Posts: 13

Original Poster
Rep: Reputation: 0
Angry reply

i m still not able to view my ntfs partition.i m a newbie.compiling the ntfs3g driver seems to me very tedios task to me. it took to me almost a month to compile the drivers for the cursed "lucent win modem" can any body plz tell me a solution that is easy for some one not used to commandline interface
 
Old 03-11-2007, 09:16 AM   #14
RevenantSeraph
Member
 
Registered: Jan 2007
Distribution: Ubuntu
Posts: 66

Rep: Reputation: 15
Don't worry- I was really lost as a newb, but you'll get used to it relatively quickly. We'll do this easily, step-by-step.

You do need to use the command-line, but don't worry, it'll be simple if we look at each step individually.

Please open terminal and enter this:
Code:
sudo fdisk -l
Do note that is a lower case "L".
That will tell us what things on your system are named, and we can use their names from there on. When you have done that it will ask for your password; enter it, and then copy and paste what it tells you into a reply thread.

Last edited by RevenantSeraph; 03-11-2007 at 09:19 AM.
 
Old 03-11-2007, 05:48 PM   #15
sumguy231
Member
 
Registered: Apr 2004
Location: North America
Distribution: Kubuntu 7.04 - Feisty Fawn
Posts: 296

Rep: Reputation: 30
RevenantSeraph: jamil_1 already posted the output of fdisk -l, check above.
Quote:
can any body plz tell me a solution that is easy for some one not used to commandline interface
There really isn't a third solution: you need the filesystem drivers for NTFS, and you'll either need to find a package for Red Hat 9, or compile them yourself. It might be easier to just upgrade since most new distributions already support NTFS read-only.
 
  


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
Windows setup says no hard drives detected AM1SHFURN1TURE General 6 02-12-2007 11:25 AM
samba and windows hard drives citrus Linux - Newbie 0 01-05-2005 03:28 AM
Two Hard drives - Linux and Windows Cyb3rKnyght Linux - Hardware 4 09-30-2004 02:26 AM
Cannot see my Windows drives (newbie) arubin Slackware 6 04-18-2004 01:06 PM
Windows ME and Red Hat 7 on different Hard Drives jockstrap Linux - Software 2 05-24-2001 11:57 AM

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

All times are GMT -5. The time now is 06:32 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