Page 2 of 3

Posted: Thu Jan 08, 2004 2:17 pm
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.

Posted: Thu Jan 08, 2004 3:47 pm
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.

Posted: Thu Jan 08, 2004 4:25 pm
by qads
cool, it worked :D

thanks! :D :D :D

Posted: Thu Jan 08, 2004 4:29 pm
by scorphus
Cool :)

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

Cheers,
Sco.

Posted: Thu Jan 08, 2004 4:44 pm
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

Posted: Thu Jan 08, 2004 5:00 pm
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]

Posted: Thu Jan 08, 2004 5:07 pm
by qads
cool, thanks :D

Posted: Sat Jan 10, 2004 9:54 pm
by Pyrite
SOLVED :D

Posted: Tue Jan 13, 2004 3:10 pm
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?

Posted: Tue Jan 13, 2004 3:17 pm
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).

Posted: Tue Jan 13, 2004 3:20 pm
by Straterra
I meant from a *nix OS

Posted: Tue Jan 13, 2004 3:57 pm
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?

Posted: Tue Jan 13, 2004 5:25 pm
by Straterra
Going to be running Slackware

Posted: Tue Jan 13, 2004 6:18 pm
by Pyrite
You need to install Samba and setup your shares in your smb.conf

Posted: Tue Jan 13, 2004 6:23 pm
by Straterra
Pyrite, would you suggest I get my Slackware disks from linuxiso.org or BitTorrent?