[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

Post by qads »

scorphus wrote:It is l (lowercase L) fella
lol :P

here is the output:
Linux wrote: Disk /dev/sda: 123.5 GB, 123522416640 bytes
255 heads, 63 sectors/track, 15017 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 15017 120624021 b Win95 FAT32

Disk /dev/hda: 4327 MB, 4327464960 bytes
255 heads, 63 sectors/track, 526 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 461 3598560 83 Linux
/dev/hda3 462 526 522112+ 82 Linux swap

Disk /dev/hdb: 61.4 GB, 61475807232 bytes
255 heads, 63 sectors/track, 7474 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 7219 57986586 7 HPFS/NTFS
/dev/hdb2 7220 7474 2048287+ f Win95 Ext'd (LBA)
/dev/hdb5 7220 7474 2048256 b Win95 FAT32 (want to mount this partition)
i did try:
"mount /dev/hdb5/" but linux said: "mount: can't find /dev/hdb5 in /etc/fstab or /etc/mtab" :? , the partition i s on the slave drive.

thanks for your help.
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

Login as root. (You should create another common user, due to security reasons, then you don't need to be root everytime, just type 'su' when needed)

Everything in Linux is mounted in some directory of the file system. So you'll have to mount the XP partition into a directory. This kind of partitions are commonly mounted on a /mnt subdirectory, something like /mnt/win-x (where x is the corresponding drive letter on windows). Create a directory for it:

Code: Select all

cd /mnt
mkdir win-x
Next edit your /etc/fstab file and add the following line:

Code: Select all

/dev/hdb5        /mnt/win-x      vfat    ro,user,users,uid=0,gid=0,umask=022,defaults            0       0
This way your win partition will be mounted at boot time on /mnt/win-x, but if you wish to use it right now (without rebooting) do:

Code: Select all

mount /mnt/win-x
# or
mount /dev/hdb5
To understand those options (ro,user,users,uid...) and to know what to change (such as write access and user mount permissions) type "man mount".

Hope this helps.

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

Post by qads »

cool, it worked :D

thanks! :D :D :D
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

Cool :)

I'm sure you can change things to mount other partitions... ;)

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

Post by qads »

one more question...its set on read only atm, i need it as writeble, i tried "man mount" but its confuseing :P .

thanks


[edt] never mind, it fixed it self? 8O ..all i did was to make a link to win drive from the desktop for easy access . :D
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

Anyways, for grant write access just change the ro (read-only) option to rw (read-write) ;)

[edit]
Only root will be able to write on it. Set umask=000 to grant write access to any user.
[/edit]
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

cool, thanks :D
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

SOLVED :D
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

I know this is kinda not about the topic, but would I have to do anything special to be able to view an NTFS drive over a network?
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

what type of OS do you have on network machines?

i have XP and windows 98, seems to work just fine. you just have to right click the drive, go to "shareing" tab and check the box,name it...thats it (XP).
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

I meant from a *nix OS
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

You have to install SMBFS (SMB Filesystem) and mount a shared folder on a /mnt/<pc_name_on_lan> subfolder. An example of /etc/fstab line for auto-mount is something like this:

Code: Select all

#<file system>                     <mount point>                       <type> <options>                      <dump>  <pass>
//<pc_name_on_lan>/<shared_folder> /mnt/pc_name_on_lan/<shared_folder> smbfs  ro,username=user,password=pass 0       0
What distro are you running?
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

Going to be running Slackware
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 need to install Samba and setup your shares in your smb.conf
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

Pyrite, would you suggest I get my Slackware disks from linuxiso.org or BitTorrent?
Post Reply