I want to view my windows files via my linux os. They are both on the same comp so i figured to use samba for it. However you have to fill in alot of config files it seems and i worked a little with it but can't seem to get it going. Is there an easy online tutorial for it or can someone tell me what i should edit or am i just doomed? Thanks
m0rl0ck
09-30-02, 10:00 AM
What distro are you using?
Are the windows files on the same physical drive?
Are the windows partitions you want to read fat32?
Type "lsmod" at a prompt ,the output will tell you what modules you have loaded and should include:
vfat 9584 1 (autoclean)
fat 29920 0 (autoclean) [vfat]
Theres also a module to read ntfs partitions. Though Ive never used it.
You dont need samba. All you probably need to do is to mount the windows partition with the appropriate filesystem module loaded.
Also what is the output of typing "df" at a prompt?
This is what happens when I type "df":
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hde7 5365476 4447812 917664 83% /
/dev/hdc 2442660 1161716 1156860 51% /backups
/dev/hde1 12398048 6894216 5503832 56% /mnt/windows
/dev/hde6 2048188 1421084 627104 70% /root
My windows files are on /mnt/windows :) and /mnt/windows behaves just like any other directory.
I'm running Suse 7.3 personal and lsmod does not give me vfat stuff. My windows files are on another physical disk and with df is says: df: /windows/E : no suck file or directory. Oh and my windows filesystem is ntfs. Should i install those modules?
m0rl0ck
09-30-02, 10:27 AM
The module you need to load is ntfs.o check with lsmod to see if its loaded already, if it isnt do a "locate ntfs.o" to make sure it exists and then load it with "insmod ntfs.o"
What happens when you try to "cd /windows/E"?
Could you post the output of df? Just select the output with the left mouse button and then paste by clicking the middle button.
Originally posted by m0rl0ck
The module you need to load is ntfs.o check with lsmod to see if its loaded already, if it isnt do a "locate ntfs.o" to make sure it exists and then load it with "insmod ntfs.o"
What happens when you try to "cd /windows/E"?
Could you post the output of df? Just select the output with the left mouse button and then paste by clicking the middle button.
ntfs.o is in /lib/modules/2.4.10-4GB/kernel/fs/ntfs/ntfs.o i loaded it but it say unused in the lsmod :( when i try to cd to windows it just says "no such file or directory" when i try to : mount /dev/hda6 it says mount point /windows/E does not exist. I can't paste the output cause the linux box is not connected to inet. (waiting for the dsl to come)
m0rl0ck
09-30-02, 10:50 AM
OK. Try this:
cd /
mkdir winntfs
mount -t ntfs /dev/hda6 winntfs
cd winntfs
What happended?
when i do a dir on /winntfs it gives:
.
..
RECYCLER
System Volume Information
recycler and the SVI or both directories of 0 kb though.
m0rl0ck
09-30-02, 11:05 AM
Mmm. You did say that your windows files are on another physical disk, right?
Would it maybe be hdb6? Or maybe hdd6? or hdd(b)5 or 7?
If the module is working ok and mount isnt giving any errors maybe we're just looking in the wrong place.
Whats the /dev designation of your linux partition?
m0rl0ck
09-30-02, 11:07 AM
Hey forgot. Type umount /winntfs :)
no it's working correctly now :)
mounted hda6 while is hould have mounted hda5 :)
Thanks a lot for the help.
I can play my mp3's now as soon as i got the card working
m0rl0ck
09-30-02, 11:11 AM
I can play my mp3's now as soon as i got the card working
Soundcard? What kind?
soundblaster 128pci or something shouldn't be a problem i think
when i try to make a mp3 link with
mkdir mp3
mount -t winntfs /dev/hda5/mp3 mp3 it gives:
mount: fs type winntfs not supported by kernel :confused:
i don't have to do anything with the kernel i hope
m0rl0ck
09-30-02, 11:46 AM
winntfs is a directory name that we created not a file type.
mount -t ntfs /dev/hda5/mp3 mp3 might work unless the partition is already mounted.
put this in /etc/fstab (back it up first) :
/dev/hde1 /winntfs ntfs defaults 0 0
That way your windows partition will be mounted every time you boot.
Then after mounting winntfs (if it isnt already mounted) create a link in your home dir like so:
cd <press enter> (This takes you to your home dir)
ln -s /winntfs/mp3 mp3
That will create a softlink in your home dir to the mp3 dir on your windows drive.
everything is working smoothly now ;)
Thanks for the help