Learn how to a build a cloud-first strategyRegister Now


Accessing Second Hard Drive

Posted on 2005-04-30
Medium Priority
Last Modified: 2013-11-13
I have successfully installed fc3 on my pc. I have two hard drives on my computer. The first hard drive has the whole linux O/S on it. The second one  is FAT32, and i need to access it from linux. Any way i can mount this drive so I can access my files on it?
Question by:fluked
  • 2
  • 2
  • 2
  • +4
LVL 10

Expert Comment

ID: 13902713
this is easy:

this is outpu of my terminla where I mount fat windows partiton:

# fdisk -l

Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1         255     2048256   12  Compaq diagnostics
/dev/hda2             256        1530    10241437+   7  HPFS/NTFS
/dev/hda3   *        1531        1956     3421845   83  Linux
/dev/hda4            1957        4864    23358510    5  Extended
/dev/hda5            1957        4752    22458838+  83  Linux
/dev/hda6            4753        4783      248976   82  Linux swap
/dev/hda7            4784        4864      650601    6  FAT16

Disk /dev/sda: 131 MB, 131072000 bytes
16 heads, 32 sectors/track, 500 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         500      127983+   6  FAT16
Partition 1 has different physical/logical endings:
     phys=(498, 15, 32) logical=(499, 15, 31)
# mkdir /mnt/win
# mount -t vfat /dev/hda7 /mnt/win

thet all files can be found in /mnt/win folder

hope this help.

Author Comment

ID: 13902744
[eli@localhost ~]$ fdisk -l
bash: fdisk: command not found
[eli@localhost ~]$
LVL 10

Expert Comment

ID: 13902761
the command fdisk -l is not essential if you know what partiton is your fat just run mount command as above.
>[eli@localhost ~]$ fdisk -l
>bash: fdisk: command not found
>[eli@localhost ~]$

run fdisk -l as root not as user !!!

# ==> root
$ ==> user
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.


Author Comment

ID: 13902771
Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 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        4998    40042012+  8e  Linux LVM

Disk /dev/hdb: 20.4 GB, 20411080704 bytes
255 heads, 63 sectors/track, 2481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1        2481    19928601    7  HPFS/NTFS
[root@localhost eli]# mkdir /mnt/win
[root@localhost eli]# mount -t vfat /dev/hdb1 /mnt/win
mount: wrong fs type, bad option, bad superblock on /dev/hdb1,
       or too many mounted file systems

Expert Comment

ID: 13902824
You are trying to read an NTFS partition using FC3. Therefore, the mount command should be
mount -t ntfs /dev/hdb1 /mnt/win

However, your kernel must support NTFS partitions reading. You will need to install relevant packages to enable NTFS partition support.

You can check out http://linux-ntfs.sourceforge.com for further details and the relevant packages for your kernel.

Expert Comment

ID: 13916073

you can also simply try,
mount /dev/hdb1 /mnt/win

if FC3 knows how to read NTFS partitions, then it will mount and you can access them. still only read access is allowed as NTFS writing feature is experimental.

if you are not able to mount, probably you have to recompile your kernel with NTFS read support.


Expert Comment

ID: 13928829
I would refer to the site that gtkfreak mentioned, but the site actually is http://linux-ntfs.sourceforge.net/  not .com.  I've made that mistake a few times too.


1.Find out what kernel you are running using this command:

uname -r

2.Download the appropriate fedora core 3 rpm here:


Be sure to get the right one!

3.  Excecute as root:

rpm -ivh kernel-module-ntfs*   (to install the package)

mount -t ntfs /dev/hdb1 /mnt/win (mounts the drive)

Expert Comment

ID: 13928883
If you are unsure of what processor you have, execute:

rpm -q --queryformat "%{ARCH}\n" kernel

This should tell you if you need and i686 rpm (most likely) or one from a different column.

Expert Comment

ID: 13941652
NTFS support is of questionable quality under Linux.  Don't mount the partition read-write unless the data is unimportant to you (i.e. you don't care if it all gets lost and Windows stops working).  Mounting it read-only should be safe, but it'd be better to have a shared FAT32 partition that both Windows and Linux can access.  You would need to resize the existing partition in order to create a new one; Partition Magic is a common (commercial) utility for resizing Windows partitions.

You can make future mounting of Windows partitions easier by adding an entry in /etc/fstab.  E.g.

/dev/hdb1 [tab] /mnt/windows [tab] vfat [tab] noauto 0 0

Replace "noauto" with "default" to have it automatically mounted.  Add ",user" (e.g. "noauto,user") to allow non-root users to mount the partition.  Replace "[tab]" with a tab in the above example; not required, but preferred, for easy reading of the file.  You can use pico, vi or something else to edit files like fstab, but vi is more friendly to the files (and less friendly to the novice user); I recommend picking up a quick reference book for vi, if you're new to it.

Accepted Solution

GranMod earned 0 total points
ID: 16593844
PAQed with no points refunded (of 25)

Community Support Moderator

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month21 days, 1 hour left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question