LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 02-20-2006, 08:48 AM   #1
tebucky
Member
 
Registered: Mar 2004
Posts: 89

Rep: Reputation: 15
setting up USB hard drive in fedora


I just bought a 300gb maxtor drive that I want to pop into a USB enclosure case and hook it up to my fedora box via USB. The end goal is to format the drive and have it be mounted on the linux box then be able to share it over Samba with my Windows machines. Can anyone provide help with this or point me to a solid tutorial??

TIA
 
Old 02-20-2006, 10:05 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
Current Fedora should automatically recognize the drive when you plug it in, and create an icon on the desktop. The drive is probably formatted with VFAT, as multiple partitions. To convert it to a Linux native filesystem the steps are:

1. Unmount the drive (right click the icon, and click on eject)

2. fdisk the drive to delete the existing partitions and add a single large new one as a Linux partition (type 83)

3. Format the drive as ext2 or ext3 (for example):

For ext2: mke2fs -m 0 /dev/sda1
For ext3: mke2fs -m 0 -j /dev/sda1

4. Unplug the device, and plug it back in to mount the new partition

There are man pages for each command, but if you have a question on a specific step, let us know.

Last edited by macemoneta; 02-20-2006 at 10:26 AM.
 
Old 02-20-2006, 03:14 PM   #3
tebucky
Member
 
Registered: Mar 2004
Posts: 89

Original Poster
Rep: Reputation: 15
it is connected (i think) but I do not have any icon on my desktop. I'm assuming that this is the device?

brw-rw---- 1 root disk 8, 0 Feb 20 09:46 sda
 
Old 02-20-2006, 06:00 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
It's likely that is the correct device, but check the output of dmesg, or your /var/log/messages when you plug it in. You should see something like:

Code:
kernel:   Vendor: BELKIN    Model: USB 2 HS-SD/MMC   Rev: 1.29
kernel:   Type:   Direct-Access                      ANSI SCSI revision: 00
kernel: SCSI device sdd: 28800 512-byte hdwr sectors (15
MB)
kernel: sdd: Write Protect is off
kernel: sdd: assuming drive cache: write through
kernel: SCSI device sdd: 28800 512-byte hdwr sectors (15
MB)
kernel: sdd: Write Protect is off
In the above example, the device is at /dev/sdd. If you are not seeing this, then either you are not current on your maintenance (as root: yum -y update), or your enclosure chipset is incompatible.

Last edited by macemoneta; 02-20-2006 at 06:02 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Fedora Core 3 on an external USB hard drive tniemeie Fedora 3 05-25-2006 07:29 AM
Fedora 1 will not install on USB hard drive sidehillbill Linux - Newbie 2 02-08-2005 05:48 PM
usb hard drive in fedora core 1? beatupbilly Fedora 5 11-17-2004 10:29 AM
Setting permissions on an external USB hard drive so that all users can read from it? Pi Man Linux - Hardware 2 09-07-2004 10:50 PM
Install Fedora on external USB 2.0 hard drive neomatic Linux - Hardware 0 07-30-2004 05:54 PM


All times are GMT -5. The time now is 04:13 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration