LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-18-2007, 10:47 AM   #1
apachenew
Member
 
Registered: Jul 2007
Posts: 30

Rep: Reputation: 15
external USB formatting and USB version


Hello,

I've just connected a USB external hard drive to CentOS 5.
I then formatted to ext3 and mounted it and added to the fstab to automount.
How do you find in Linux whether it's using USB 2.0 or USB 1.0?

And when I do fdisk -l, it shows up as NTFS even though I've formatted it (sda2) to ext3 and it's writable by Linux.
#fdisk -l

Device Boot Start End Blocks Id System
/dev/sda1 * 1 6 48163+ de Dell Utility
/dev/sda2 7 19452 156199995 7 HPFS/NTFS

Disk /dev/sdb: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
Old 09-18-2007, 11:04 AM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
If what I am suspecting is correct then you may have formatted the wrong hard disk because there is no Linux partition shown there.

If you want error free hard disk operation then reboot after you change the partitions, then mount the new partition before formatting it.
 
Old 09-18-2007, 11:32 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
You can format a partition independent of its ID so difficult to say what you actually did to expand on saikee's post. Since sda1 is a dell utility parititon I would guess this to be your internal hard drive. You did not include any partition information for sdb which could be your USB drive.

The command lspci should show what type of USB controllers are in this computer.

Last edited by michaelk; 09-18-2007 at 11:34 AM.
 
Old 09-19-2007, 11:16 AM   #4
apachenew
Member
 
Registered: Jul 2007
Posts: 30

Original Poster
Rep: Reputation: 15
sda is the external USB hard drive which I mounted to /home/external. The internal hard drive is hda.
I can write to the external USB hard drive sda2 in Linux although slow in speed.
I didn't format sda1, the one that shows up as Dell Utility and did format sda2 but I'm not sure why it shows up as NTFS when I do fdisk -l.
Did I format it wrong?

By using lspci:
00:1f.2 USB Controller: Intel Corporation 82801BA/BAM USB (Hub #1) (rev 02)
00:1f.4 USB Controller: Intel Corporation 82801BA/BAM USB (Hub #2) (rev 02)

Is (rev 02) = USB 2.0?
I think it's USB 1.0 since if it's USB 2.0 it would say USB 2.0 (rev 02) right?

Thanks.


# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
37G 3.1G 32G 9% /
/dev/hda1 99M 16M 79M 17% /boot
tmpfs 125M 0 125M 0% /dev/shm
/dev/sda2 147G 4.8G 135G 4% /home/external

# fdisk -l
Disk /dev/hda: 40.9 GB, 40982151168 bytes
255 heads, 63 sectors/track, 4982 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 4982 39913492+ 8e Linux LVM

Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 6 48163+ de Dell Utility
/dev/sda2 7 19452 156199995 7 HPFS/NTFS

Last edited by apachenew; 09-19-2007 at 11:27 AM.
 
Old 09-19-2007, 11:59 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I believe you have a USB 1.1 controller which has a max speed of 12.5 Mbps.

You did not format it wrong. As stated the partition ID has no bearing on the filesystem, i.e. A linux native filesystem partition ID is 83 but you can format it with ext2/3, reiserfs, xfs, jfs, etc and it will still be 83. linux does not care but if using windows you could have problems. Use you can cfdisk or fdisk to change the partition ID type.
 
Old 09-19-2007, 06:49 PM   #6
apachenew
Member
 
Registered: Jul 2007
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks, I appreciate it.
 
  


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
usb external HD issue: reset high speed USB device using ehci_hcd gstath Slackware 4 08-18-2010 01:35 AM
Mounting USB external drive with multiple partitions, USB bluetooth mouse xmeson Slackware 7 12-17-2006 09:00 AM
External USB SB Live 24 with snd-usb-audio: mixer too rudimentary LaoNiu Linux - Hardware 0 05-28-2006 10:22 AM
usb controller dies mounting external usb hard disk komasoftware Linux - Hardware 4 11-30-2005 01:18 PM
Formatting External USB Drive Question highspeednodrag Linux - Hardware 1 02-17-2005 10:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:25 AM.

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