LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-21-2004, 09:47 AM   #1
Shr00mBoXx
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 63

Rep: Reputation: 15
Making a drive for XP and Linux


Ok, well I have not gotten WineX or Wine to install the games I play so I decided to reinstall XP just for games... well I like music as some can tell from my recent posts and was wondering what would be the best way to make a drive to store my media on that I can share between linux and XP... I relize it either has to be FAT or NTFS from my understanding or Wndows will not pick it up... but at the same time I want Linux to beable to write to it... along with that is there a way I can mount that drive (hdb2) on boot... thank you in advanced
 
Old 06-21-2004, 10:17 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Linux can read and write fat32 and NTFS. THe correct modules must be in the kernel in order for it to work. I don't know Slack 9.1, I'm sure someone can tell you if the support is part of the kernel or if you have to insmod it. As far as I know, most up to date kernels will read and write Fat32. I didn't have to do anything special on Mandrake 9.1 or 9.2. To mount at boot time, all I did was add the following lines to etc/fstab.

/dev/hda1 /mnt/win_c vfat codepage=850,iocharset=iso8859-1,umask=000 0 0
/dev/hda5 /mnt/win_d vfat codepage=850,iocharset=iso8859-1,umask=000 0 0

You will have to edit what I have posted for drive, partition, and name. Hope this helps.
 
Old 06-21-2004, 10:43 AM   #3
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
Quote:
Originally posted by camorri
Linux can read and write fat32 and NTFS.
Whoa! Careful; Linux is fine with read/write on FAT32, but as for NTFS, the writing is seriously dodgy - classed as experimental ain't it?

Stick with a FAT32 partition and it should do the job, mount on boot as described above I believe :)

Steve
 
Old 06-21-2004, 10:48 AM   #4
Fuel
Member
 
Registered: Feb 2002
Location: Sweden, Skeldepth
Distribution: Slackware 10
Posts: 178

Rep: Reputation: 30
Yeah .. NTFS read / write support is far from usable.. and it will probably take a loong time before its acceptable
 
Old 06-21-2004, 10:54 AM   #5
Shr00mBoXx
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 63

Original Poster
Rep: Reputation: 15
bash-2.05b# mount /dev/hdb2 -t fat32 /mnt/hd
mount: fs type fat32 not supported by kernel

How can I get the kernel to beable to mount the fat32fs. I checked for kernel patches but I have never patched a kernel and really have no clue what I am doing :-/
 
Old 06-21-2004, 11:06 AM   #6
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
Could you try

mount /dev/hdb2 -t vfat /mnt/hd

Steve

P.S. (Or am I waaay off?)
 
Old 06-21-2004, 11:25 AM   #7
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
No SBing I think you are right :-)
From man mount

-t vfstype
The argument following the -t is used to indicate
the file system type. The file system types which
are currently supported are: adfs, affs, autofs,
coda, coherent, cramfs, devpts, efs, ext, ext2,
ext3, hfs, hpfs, iso9660, jfs, minix, msdos, ncpfs,
nfs, ntfs, proc, qnx4, ramfs, reiserfs, romfs,
smbfs, sysv, tmpfs, udf, ufs, umsdos, usbfs, vfat,
xenix, xfs, xiafs. Note that coherent, sysv and
xenix are equivalent and that xenix and coherent
will be removed at some point in the future -- use
sysv instead. Since kernel version 2.1.21 the types
ext and xiafs do not exist anymore. Earlier, usbfs
was known as usbdevfs.
 
Old 06-21-2004, 11:47 AM   #8
Shr00mBoXx
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 63

Original Poster
Rep: Reputation: 15
bash-2.05b# mount -t vfat /dev/hdb2 /mnt/hd
mount: wrong fs type, bad option, bad superblock on /dev/hdb2,
or too many mounted file systems
 
Old 06-21-2004, 12:06 PM   #9
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
Quote:
Originally posted by ringwraith
No SBing I think you are right :-)
That's scary! Cheers for confirming :)
Quote:
Originally posted by Shr00mBoXx
bash-2.05b# mount -t vfat /dev/hdb2 /mnt/hd
mount: wrong fs type, bad option, bad superblock on /dev/hdb2,
or too many mounted file systems
May seem like a silly question, but are you sure hdb2 is an FAT32 partition and not an NTFS partition? - Can I suggest (if it doesn't have any data on) that you format it in linux?
Then it has to mount :)

Steve
 
Old 06-21-2004, 12:09 PM   #10
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
as root run fdisk -l /dev/hdb and post here

I assume you have /mnt/hd created already.
 
Old 06-21-2004, 09:13 PM   #11
Shr00mBoXx
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 63

Original Poster
Rep: Reputation: 15
bash-2.05b# fdisk -l /dev/hdb

Disk /dev/hdb: 185.2 GB, 185283624960 bytes
255 heads, 63 sectors/track, 22526 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 9726 78124063+ 83 Linux
/dev/hdb2 9727 22526 102816000 b W95 FAT32
bash-2.05b#
 
Old 06-22-2004, 03:23 AM   #12
alexrait1
Member
 
Registered: Jul 2003
Location: Israel
Distribution: slackware current kernel 2.6.9
Posts: 70

Rep: Reputation: 15
Quote:
Originally posted by Shr00mBoXx
bash-2.05b# mount -t vfat /dev/hdb2 /mnt/hd
mount: wrong fs type, bad option, bad superblock on /dev/hdb2,
or too many mounted file systems
Did you compile your kernel or something?
Whatever you have there, try to downlad the 2.6.7 and, tell it to have the support for vfat,ntfs e.t.c (whatever you want). The 2.6.X kernels are compiled easily in comparison to 2.4.25 where even the official source package for kernel that is shipped with slackware, didn't compile neatly. I had to change many things before I could load the cusomized kernel.
I believe that's your only problem.
 
Old 06-22-2004, 05:25 PM   #13
captain-cat
LQ Newbie
 
Registered: Jun 2004
Location: UK
Distribution: Fedora-C2
Posts: 27

Rep: Reputation: 15
i had a similar problem about how to mount an ntfs partition under linux. by googling i found a kernel module (kernel-ntfs) which was coming as an rpm package. so there was no need for recompiling my kernel. maybe you want to google id there is smth similar for fat32 suppport. and yes ntfs is only mounted in read mode in my system.
 
Old 06-22-2004, 09:47 PM   #14
Shr00mBoXx
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 63

Original Poster
Rep: Reputation: 15
I finally got it working :-P no problems now just did mkdosfs (or whtaever the command is) then -F 32 /dev/hdb2 and it worked
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing linux on external usb drive -> How about making a tutorial? narson Slackware 20 05-01-2007 04:58 AM
making usb thumb/pen drive to boot linux rohdimp_24 Linux - Software 2 07-11-2005 01:21 PM
Making New Drive Readable and Writable on Windows XP and Linux tini1212 Linux - General 1 08-29-2004 06:06 PM
Making a linux based pc emulate a standalone firewire drive doctor_t Linux - Hardware 0 05-13-2004 11:59 AM
making an image of my drive antken Linux - General 1 07-16-2003 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration