[SOLVED] make windows HD visible in RH9

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

[SOLVED] make windows HD visible in RH9

Post by qads »

i installed linux on a new (almost, its formated) HD and i was wondering if it is possible to show another drive on linux, the drive i want to show has windows XP installed, i want access to some php files on it. i can always switch between them but where is the fun in that?

did i make any sense? :?

thanks in adv
Last edited by qads on Sun Jan 11, 2004 4:15 am, edited 1 time in total.
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

What is the output off the following command:

Code: Select all

fdisk -l
I need this info to provide an accurate and definitive solution.

Cheers,
Scorphus.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Just mount the NTFS partition.

Might have to load the ntfs module "modprobe ntfs"
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

Linux wrote:fdisk: invalid option -- 1

Usage: fdisk [-b SSZ] [-u] DISK Change partition table
fdisk -l [-b SSZ] [-u] DISK List partition table(s)
fdisk -s PARTITION Give partition size(s) in blocks
fdisk -v Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors
@Pyrite
how? :P
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

It is l (lowercase L) fella

Is the win partition drive a slave? try

fdisk /dev/hda -l

and

fdisk /dev/hdb -l

and tell me the output
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Yes, do "fdisk -l" and note the drive hdx that contains your NTFS partition.

Then you can mount it by doing something like.

mount /dev/hdx /somedirectorywhereyouwanttomountit

Replacing hdx with your NTFS partition. ie. hda2 or hdb2.
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

I'm thinking to give him directions to setup /etc/fstab so he won't need to mount everytime he needs it. There are important options such as utf8, uid, gid and umask. Also remember that the partition may be (hopefully) formated as FAT32 instead of NTFS.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Hopefully? You're kidding right? FAT32 sucks!

If and after you mount it. to add the line to fstab, simply copy the line from /etc/mtab to /etc/fstab. done.
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

No, I'm not kidding. Actually _both_ suck (deeply), I had very bad experience with NTFS (system faults and data loss). Systems such as Linux (yes) does not support it (not 100%) and other don't support it att all (win98). Others, such as Mac need an extension to work with it ( https://sourceforge.net/projects/ntfsosx/ ). I recommend noone to use NTFS.

Regards,
Scorphus.
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

Yeah, I have a Windows 98 SE server and a WinXP machine..and it sucks not being able to access anything from the WinXP Machine on the Win98SE machine!
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

I'm sorry, but journaled filesystems such as NTFS are much more stable/faster/secure than FAT filesystems. This isn't a Linux vs Windows debate. Especially if you are running NT, running NT on FAT blows. If you're going to dualboot and you want to share files between the two, I'd suggest you use NTFS for WindowsXP, another journaled filesystem for Linux like reiserFS or jfs/xfs etc and then create a third partition that is vfat for sharing files between the two.
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

Yeah, it is more secure and reliable ( http://www.azsage.org/present/052097/tsld011.htm ). But that's for servers and video editors (as they need large-size files). A home user won't need it. Nor an advanced user. Until he came into a problem when trying to recover something lost or trying to access it from another system.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

You can recover files much easier from NTFS5 than you can from FAT. And Linux has excellent NTFS read support.

You're right about the performance differances, but I beg to differ that it does matter, even for home users.

And ntfs.com is the official site for ntfs.

http://www.ntfs.com/ntfs_vs_fat.htm
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

I had no success when trying to recover files from NTFS. And when in trouble it's hard to boot from a floppy or from a cdrom. Had to backup the relevant data on my ext3 partition from Linux.

I was also a bit bored when trying write to my Win2000 NTFS from Linux. Although Linux gurus made such a _great_ job hacking the NTFS to write the module, write support is still experimental.

Anyways, for me NTFS means trouble and headache, not solution.

Thanks for the additional information, Pyrite. This kind of discussion is always educational.

Cheers,
Scorphus.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Yea nuff said. Sorry you had trouble, but Microsoft can be dumb as a brick sometimes.
Post Reply