Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel config for external hard drive
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
MadBassist
Apprentice
Apprentice


Joined: 10 Apr 2004
Posts: 200

PostPosted: Mon Apr 19, 2004 11:23 pm    Post subject: kernel config for external hard drive Reply with quote

I have a spangly new Maxtor OneTouch 250GB Firewire/USB2 hard drive and was wondering which option was best to use under Gentoo and what kernel options I need to add to get them to work. I intend to format it using Fat32 so Windows and Gentoo can read/write to it.
_________________
System
---------
AMD Athlon XP 2800 Barton
512 Corsair XMS LLPT DDRRAM
Nvidia GeForce FX5900
Audigy2
gentoo-dev-sources 2.6.8-r3
Back to top
View user's profile Send private message
thm
Tux's lil' helper
Tux's lil' helper


Joined: 15 Dec 2003
Posts: 77
Location: Munich

PostPosted: Mon Apr 19, 2004 11:55 pm    Post subject: Reply with quote

I have used USB and it definitely works. FireWirew should work as well, but I haven't tried that yet.

You need to activate hotplugging and you need the package dosfstools.
_________________
Thomas
Back to top
View user's profile Send private message
MadBassist
Apprentice
Apprentice


Joined: 10 Apr 2004
Posts: 200

PostPosted: Tue Apr 20, 2004 12:02 am    Post subject: Reply with quote

ta for that, do I need to do anythign else once ive recompiled the kernel (ie how do I get the drive to mount when its plugged in and unmount when its unplugged)
_________________
System
---------
AMD Athlon XP 2800 Barton
512 Corsair XMS LLPT DDRRAM
Nvidia GeForce FX5900
Audigy2
gentoo-dev-sources 2.6.8-r3
Back to top
View user's profile Send private message
thm
Tux's lil' helper
Tux's lil' helper


Joined: 15 Dec 2003
Posts: 77
Location: Munich

PostPosted: Tue Apr 20, 2004 12:40 am    Post subject: Reply with quote

Once plugged in, the hard drive will show up in several places of the /dev filesystem. The precise paths will depend on whatever other disc drives you have in your system. If , for example, you have only one internal IDE hard drive and no MO, ZIP, SYQUEST or other removeable disc, then your internal hard drive will show up as /dev/discs/disc0 or /dev/hda. The USB drive will then show up as /dev/discs/disc1 or /dev/sda.

You should partition the USB drive using the linux fdisk
Code:
fdisk /dev/sda

Create one primary partition and make it type 0C (hex code; stands for Win'95 LBA). If you want more partitions, you have to create one primary and one extended partition. Within the extended partition you can then create up to 4 more logical partitions (again, type 0C) corresponding to windows logical drives. The partitions can be accessed via /dev/sda1 through /dev/sdaN.

Format your partition(s), e.g.
Code:
mkdosfs -F 32 /dev/sda1


Windows will recognize and mount the additional drive(s) automatically. Windows does not have an unmount function. You can never be absolutely certain that it is safe to unplug the drive, except after shutting down windows.

For linux, you should create appropriate mount points and fstab entries. Specify vfat or auto as filesystem and noauto,user as mount options.

On your KDE desktop create a desktop icon for a hard drive and select the appropriate device in its properties dialog. Left-clicking on the icon will mount the drive (unless it is already mounted) and open a directory window. Closing the window will not unmount the partition. Right-click on the icon and chose unmount in the context menu to unmount the partition.

:!: Never unplug the drive, while one of its partitions is still mounted. :!:
_________________
Thomas


Last edited by thm on Tue Apr 20, 2004 11:06 am; edited 1 time in total
Back to top
View user's profile Send private message
MadBassist
Apprentice
Apprentice


Joined: 10 Apr 2004
Posts: 200

PostPosted: Tue Apr 20, 2004 10:45 am    Post subject: Reply with quote

hoorah it works :) thanking you
_________________
System
---------
AMD Athlon XP 2800 Barton
512 Corsair XMS LLPT DDRRAM
Nvidia GeForce FX5900
Audigy2
gentoo-dev-sources 2.6.8-r3
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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