Solved

how do i browse  hdd in Linux?

Posted on 2004-09-18
12
206 Views
Last Modified: 2013-12-06
I have couple of hard drives running  windows XP. How do i browse those hard drives in Linux red hat 9?
Thanks
0
Comment
Question by:Carl3003
  • 4
  • 3
  • 2
  • +2
12 Comments
 
LVL 11

Expert Comment

by:avizit
ID: 12092719
I dont remember correctly but I think you will have a directory where the windows partition are automatically mounted

check if there is a directory  "/mnt/windows" or something like that

also note if your windows partition is NTFS , the write support might be flaky , so its better just to read from the
windows partition and not to attempt any writes .. unless someone who knows tells you otherwise or the write support for NTFS is stable and good ..
0
 

Author Comment

by:Carl3003
ID: 12092854
in mnt directory i have only cdrom and floppy..
0
 
LVL 23

Accepted Solution

by:
Mysidia earned 50 total points
ID: 12092877
Mount the drives onto the Linux virtual filesystem as needed...

I'm not sure that Redhat 9 has the needed drivers to correctly read the new NTFS
filesystem, but you can try from a terminal.  (all as root)

mkdir /mnt/temp1

Now to mount one of your windows drives you need to know how its laid out (which device the filesystem
is on) and whether you're using the NTFS or FAT filesystem.. which option you chose to format with when
you installed windows; usually this is NTFS on a new installation of windows.

The drive names are represented by device nodes (depending on where you put the hard drive)
Assuming they are regular IDE drives they represent:

/dev/hda1   == First partition on the primary master drive
/dev/hda2   == Second partition on the primary master drive
/dev/hda3   == Third partition  on the primary master drive
/dev/hda4   == Fourth  on the primary master drive
/dev/hda5   == First extended partition... etc

/dev/hdb1  == First partition on the primary slave
/dev/hdc1  == First partition on the secondary master
/dev/hdd1  == First partition on the secondary slave

Now suppose it's the NTFS filesystem, and the Windows filesystem is on the first
partition of the primary master, you might do:

mount -t ntfs -o ro /dev/hda1 /mnt/temp1

If it were Win95/98 FAT...

mount -t vfat -o ro /dev/hda1 /mnt/temp1

Now once it's mounted the files can be browsed by looking in /mnt/temp1
i.e. ls /mnt/temp1/

When finished, to unmount the filesystem:

umount /mnt/temp1
0
 

Author Comment

by:Carl3003
ID: 12092932
  [root@localhost temp1]# mount -t ntfs -o ro /dev/hda1 /mnt/temp1
mount: fs type ntfs not supported by kernel



0
 
LVL 11

Expert Comment

by:avizit
ID: 12092959
That means you dont have NTFS support

http://www.brandonhutchinson.com/redhat_ntfs_support.html  might help

0
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 12093014
You can read & write to ntfs partitions under linux by using captive -
http://www.jankratochvil.net/project/captive/
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:Carl3003
ID: 12093308
captive seems to me easier to handle;however, i run to this problem..
[root@localhost dosc]# mount -t captive-ntfs /dev/hda1 /mnt/dosc
mount: fs type captive-ntfs not supported by kernel
[root@localhost dosc]# mount -t captive-ntfs /dev/hda2 /mnt/dosc
mount: fs type captive-ntfs not supported by kernel
0
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 12093477
Hvae you tried running captive-install-acquire?
0
 

Author Comment

by:Carl3003
ID: 12093556
all i did was  double click on captive-static-1.1.5-0.i386.rpm . I thought this method works to install..
0
 
LVL 23

Expert Comment

by:Mysidia
ID: 12093784
Maybe it did, if not, then perhaps try using
rpm --install captive-static-1.1.5-0.i386.rpm
0
 
LVL 23

Expert Comment

by:Mysidia
ID: 12093793
Wait, adding the rpm provides the programs you need
you still need to run captive-install-acquire to get the drivers...

See
http://www.jankratochvil.net/project/captive/man/captive-install-acquire.pod.html

The need to run acquire is mentioned specifically in the installation notes:
http://www.jankratochvil.net/project/captive/#notes
0
 
LVL 2

Expert Comment

by:dfk
ID: 12101928
Carl

NTFS is a database type file system and is not officially supported under linux.  There are several bolt on applications that would allow you to read from the filesystem but having the read/write capability should be avoided for now.

If you can, split your hdd and create a FAT32 partition.  This is fully supported under linux and you can use the FAT32 partition to transfer files between your XP instance and your linux instance.


If you do want to risk writing to NTFS via linux, I would recommend recompiling your kernel as it sounds as though you have not got kernel support (modular or built-in) for the NTFS parition.

Hope that helps
Best Regards
Mark Waterhouse
{company advert removed - ai, cs admin}
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now