Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fat32 partition reads very slowly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
2k..
Tux's lil' helper
Tux's lil' helper


Joined: 25 May 2003
Posts: 81
Location: Tiverton - UK

PostPosted: Wed Jun 18, 2003 7:34 pm    Post subject: Fat32 partition reads very slowly Reply with quote

Hi there,

All my data, music etc... is currently on a FAT32 partition, Gentoo is on a 60 gig drive and WinXP is on a 20 gig drive. I want to copy all my files to the linux partition as i don't use XP for anything other than work stuff.

the trouble is when i try and copy stuff from the fat32 partition to my reiserfs partition it copies very slowly, almost like i am copying it across a network.

I know that this isn't a problem when i finally get it all copied over i would just like to know why it's going so slowly? curriosity as to where i have gone wrong i suppose.

here is a what fstab looks like
Code:
/dev/hdb1      /mnt/windrv   vfat      sw         0 0


am still very much a noob so sorry if i look dumb

:oops:
Back to top
View user's profile Send private message
Haro
n00b
n00b


Joined: 17 May 2003
Posts: 71
Location: West Bend, WI

PostPosted: Wed Jun 18, 2003 7:55 pm    Post subject: Reply with quote

Are the drives on the same IDE cable?

Is DMA enabled (hdparm /dev/hd[x])? ata66/100/133 being taken advantage of?
Back to top
View user's profile Send private message
2k..
Tux's lil' helper
Tux's lil' helper


Joined: 25 May 2003
Posts: 81
Location: Tiverton - UK

PostPosted: Wed Jun 18, 2003 8:12 pm    Post subject: Reply with quote

The drives are on the same cable.

I'm not sure what you mean on the second point so i'll have to assume no
Back to top
View user's profile Send private message
The Khan Artist
Apprentice
Apprentice


Joined: 21 Jan 2003
Posts: 210
Location: Texas, USA

PostPosted: Thu Jun 19, 2003 1:36 pm    Post subject: Reply with quote

2k.. wrote:
The drives are on the same cable.

I'm not sure what you mean on the second point so i'll have to assume no


Try typing

hdparm /dev/hdx

For example, here's what I get on hda:

Code:
root@mmebane mmebane # hdparm /dev/hda

/dev/hda:
 multcount    = 16 (on)
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 23819/16/63, sectors = 90069840, start = 0


DMA support is a must for any sort of good speed. O'Reilly used to have a very good article about hdparm, but I can't find it any more.
Back to top
View user's profile Send private message
2k..
Tux's lil' helper
Tux's lil' helper


Joined: 25 May 2003
Posts: 81
Location: Tiverton - UK

PostPosted: Fri Jun 20, 2003 6:23 pm    Post subject: Reply with quote

Sorry about the delay in my reply I had to work away unexpectedly again :(

he is the output from hdparm

Code:

/dev/hda:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 7297/255/63, sectors = 117231408, start = 0


i notice that it is different to yours, any idea's?
Back to top
View user's profile Send private message
FormerSlacker
Guru
Guru


Joined: 11 Mar 2003
Posts: 340
Location: Toronto, ON. Canada

PostPosted: Fri Jun 20, 2003 10:10 pm    Post subject: Reply with quote

You should enable dma access on your drive using hdparm. That should make a big difference in drive access speed. Make sure you compiled support for your ide chipset in the kernel.

See http://linux.oreillynet.com/pub/a/linux/2000/06/29/hdparm.html for a good intoduction to hdparm. (This one Khan? :lol:)

To enable dma, use:
Code:

hdparm -d1 /dev/hdX

where X is the drive you want to enable dma, such as /dev/hda(b,c,d). You get the idea :wink:
Back to top
View user's profile Send private message
2k..
Tux's lil' helper
Tux's lil' helper


Joined: 25 May 2003
Posts: 81
Location: Tiverton - UK

PostPosted: Sat Jun 21, 2003 9:30 am    Post subject: Reply with quote

Thanks for your help.

buffered disk reads started at 3.1 and it's now running at 28.44!!! more than a little improvement.

my question now is what file do i add the line

Code:
hdparm -X66 -d1 -u1 -m16 -c3 /dev/hda
Back to top
View user's profile Send private message
FormerSlacker
Guru
Guru


Joined: 11 Mar 2003
Posts: 340
Location: Toronto, ON. Canada

PostPosted: Sat Jun 21, 2003 3:40 pm    Post subject: Reply with quote

2k.. wrote:
Thanks for your help.

buffered disk reads started at 3.1 and it's now running at 28.44!!! more than a little improvement.

my question now is what file do i add the line

Code:
hdparm -X66 -d1 -u1 -m16 -c3 /dev/hda


Check out /etc/conf.d/hdparm. Add the options to the variable belonging to your disk and uncomment it. Then add the hdparm script to bootup.
Code:

rc-update add hdparm default

That should to it. An easier way would be just to add the hdparm command to /etc/conf.d/local.start, although the hdparm script would be more correct :P

In either case, the hdparm command would be run at bootup.
Back to top
View user's profile Send private message
2k..
Tux's lil' helper
Tux's lil' helper


Joined: 25 May 2003
Posts: 81
Location: Tiverton - UK

PostPosted: Sun Jun 22, 2003 1:04 pm    Post subject: Reply with quote

Thanks for your help :)

will give it a try
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum