LinuxQuestions.org
Visit Jeremy's Blog.
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 03-31-2006, 04:09 PM   #1
mabeken
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Rep: Reputation: 0
Question Mounting a USB disk


Hi

I am trying to mount a 60GB disk to a RedHat 7.2 system. I connect via the USB port. I can use fdisk and make a partition but when I format it, I get 9.9 GB. When I use the x option in Fdisk I can change the number of cylinders but this gives me 90GB.

I have a feeling that /dev/sdb is not picking up the right number of cylinders.

Can anyone help me figure out what I need to do to format my disk with ext3 to the correct capacity?

Thanks
 
Old 04-02-2006, 12:51 AM   #2
kg4ysy
Member
 
Registered: May 2005
Location: North Carolina
Distribution: Gentoo
Posts: 123

Rep: Reputation: 19
Run fdisk /dev/sdb(or whatever it finds it as <--If it is reading as 90GB is there a chance this isn't the drive? sda is the first mounted external device)
hit n for new
p for primary
enter to start it at the beginning
then if you want all the drive as one partition hit enter again, otherwise hit +32G i believe for 32GB of space (it says it on the printout of how to do it exactly...and obviously put whatever space you want...for all of it just hit enter)

this will set the drive size...hit w to write it

now type mke2fs -j /dev/sdb1 (or whatever the partition is)

this will write the journal and create ext3 and have ur drive working

does this help?

Last edited by kg4ysy; 04-02-2006 at 12:57 AM.
 
Old 04-03-2006, 05:58 AM   #3
mabeken
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Hi,

Thanks but this is what I have already tried. The only thing I didn't do was reboot or use partprobe to re-read the new partition table. Once I did that and then formated the new disk and mounted it, I was able to see the right amount of space using df -h.

The problem now is mounting this disk on another linux box. The mount command doesn't want to work. The partition still looks right. But the mount command (mount /dev/sdb1 /mnt/usb) seems to hang. Both boxes are running the same version of Redhat.

Any thoughts?

Thanks for the help so far
 
Old 04-03-2006, 08:39 AM   #4
kg4ysy
Member
 
Registered: May 2005
Location: North Carolina
Distribution: Gentoo
Posts: 123

Rep: Reputation: 19
What format is this partition in? You may have to use mount -t (format type) /dev/sdb1 /mnt/usb.

type would be either vfat for fat32 ext3 for ext3 and so on.
Also, run dmesg and see what it says...post the last few lines pertaining to your hard drive after you plug it in and turn it on.


--Jim
 
Old 04-03-2006, 08:52 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,732

Rep: Reputation: 6315Reputation: 6315Reputation: 6315Reputation: 6315Reputation: 6315Reputation: 6315Reputation: 6315Reputation: 6315Reputation: 6315Reputation: 6315Reputation: 6315
Typically USB drives are assigned a device IDs automatically. Check via the output of the dmesg command to see if the drive is being recognized and the ID assigned. If it is the only SCSI type device (includes USB, Firewire and SATA) then it will be /dev/sda
 
  


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
usb controller dies mounting external usb hard disk komasoftware Linux - Hardware 4 11-30-2005 01:18 PM
Problem of mounting USB disk coffeebreak Debian 1 09-12-2005 09:37 PM
Prolblem of mounting USB disk coffeebreak Slackware - Installation 1 09-12-2005 09:34 PM
Problem of mounting USB disk coffeebreak Fedora - Installation 1 09-12-2005 09:32 PM
Problem in mounting USB disk kernelbuster Linux - Hardware 2 02-24-2005 09:17 AM

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

All times are GMT -5. The time now is 01:52 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