LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-16-2008, 03:42 PM   #1
GNewbie
Member
 
Registered: Sep 2005
Distribution: (U/K/X)buntu 6.1 (newer box) / D*mn Small Linux (older box)
Posts: 326

Rep: Reputation: 31
How To Format External HDD


hi all,

i have an external hard drive that i want to format as ext3. eventually i want to back up my home partition to it so that i can do a fresh install of the ubuntu 8.04.

i installed qtparted, but it doesn't see the usb hdd. i suppose this makes sense as it isn't formatted.

how do i format the drive if i can't see it?

tia...
 
Old 04-16-2008, 04:03 PM   #2
ve3rpm
LQ Newbie
 
Registered: Apr 2007
Location: St. Thomas Ont.
Distribution: ubuntu Feisty
Posts: 8

Rep: Reputation: 0
I would suggest downloading and burning Gparted. You can boot from the disk, and it sees all. A really slick program. Luck Dan
http://gparted.sourceforge.net/
 
Old 04-16-2008, 04:40 PM   #3
bryanl
Member
 
Registered: Dec 2003
Posts: 97

Rep: Reputation: 35
well, that's step one - set up a partition. this is rather difficult to do if the system does not see the USB drive as a bulk storage device.

So that's the first thing to fix. Check dmesg | tail after you plug in the USB drive and see if its recognized - it should come up as /dev/sdb or some such. If it doesn't, then you have to chase that problem.

qtparted or fdisk should be able to put a partition on the drive once it is recognized as the proper sort of device. Usually you want to make it one fat32 type partition.

After you create the partition, you'll need to use mkfs to format it for use. After that, it should be ready to go.

see the manual for parted at http://www.gnu.org/software/parted/m...no/parted.html for some ideas.
 
Old 04-16-2008, 05:02 PM   #4
GNewbie
Member
 
Registered: Sep 2005
Distribution: (U/K/X)buntu 6.1 (newer box) / D*mn Small Linux (older box)
Posts: 326

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by bryanl View Post
well, that's step one - set up a partition. this is rather difficult to do if the system does not see the USB drive as a bulk storage device.

So that's the first thing to fix. Check dmesg | tail after you plug in the USB drive and see if its recognized - it should come up as /dev/sdb or some such. If it doesn't, then you have to chase that problem.

qtparted or fdisk should be able to put a partition on the drive once it is recognized as the proper sort of device. Usually you want to make it one fat32 type partition.

After you create the partition, you'll need to use mkfs to format it for use. After that, it should be ready to go.

see the manual for parted at http://www.gnu.org/software/parted/m...no/parted.html for some ideas.
the output is below. i think it sees it, but don't see an sdb or anyting similar. i will look into qparted and see if that picks it up.

dmesg | tail
[ 734.265813] usb 4-2: configuration #1 chosen from 1 choice
[ 734.265990] scsi3 : SCSI emulation for USB Mass Storage devices
[ 734.266073] usb-storage: device found at 4
[ 734.266075] usb-storage: waiting for device to settle before scanning
[ 739.259146] usb-storage: device scan complete
[ 744.858924] usb 4-2: reset high speed USB device using ehci_hcd and address 4
[ 755.081740] usb 4-2: reset high speed USB device using ehci_hcd and address 4
[ 760.314899] usb 4-2: reset high speed USB device using ehci_hcd and address 4
[ 770.537718] usb 4-2: reset high speed USB device using ehci_hcd and address 4
[ 770.670099] 3:0:0:0: scsi: Device offlined - not ready after error recovery
 
Old 04-16-2008, 06:07 PM   #5
sadiqdm
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: openSUSE, Ubuntu
Posts: 358

Rep: Reputation: 35
Looks like your bios can see the device, so I can't see why qtparted can't.

I find the best tool is PartedMagic which has GParted and some very nice GUI tools. It boots with very good USB support (depending on your hardware) and even has network support (though not WiFi), and an archive tool for doing backups. I've been using it for some time now as my main troubleshooting and rescue disk.
 
Old 04-16-2008, 09:13 PM   #6
GNewbie
Member
 
Registered: Sep 2005
Distribution: (U/K/X)buntu 6.1 (newer box) / D*mn Small Linux (older box)
Posts: 326

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by sadiqdm View Post
Looks like your bios can see the device, so I can't see why qtparted can't.

I find the best tool is PartedMagic which has GParted and some very nice GUI tools. It boots with very good USB support (depending on your hardware) and even has network support (though not WiFi), and an archive tool for doing backups. I've been using it for some time now as my main troubleshooting and rescue disk.
is the fact this drive is scsi relevant? gparted booted from cd couldn't see it, either.

does anyone have any troubleshooting ideas? should i try formatting it fat32 on an a winxp box?

tia...
 
Old 04-16-2008, 10:13 PM   #7
bryanl
Member
 
Registered: Dec 2003
Posts: 97

Rep: Reputation: 35
Quote:
scsi: Device offlined - not ready after error recovery
this indicates that the device, while found and identified, did not talk properly like a storage device should.

As I read it, a reset command was sent and the expected response was not received. My guess is that means that there is some problem with the device. You might try and see if another OS will recognize it to do anything with it but I don't put any high odds on that.

Maybe a USB 1 port with a USB 2 device that won't cooperate with slow ports? shouldn't, though. Will other drive devices work with that port?

good luck.
 
Old 04-16-2008, 11:13 PM   #8
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
If you do get functional access to the device, you need nothing more than fdisk to partition the device, and mke2fs to create a filesystem (or filesystems). These tools should be part of most distros.
--- rod.
 
Old 04-17-2008, 01:27 AM   #9
GNewbie
Member
 
Registered: Sep 2005
Distribution: (U/K/X)buntu 6.1 (newer box) / D*mn Small Linux (older box)
Posts: 326

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by bryanl View Post
this indicates that the device, while found and identified, did not talk properly like a storage device should.

As I read it, a reset command was sent and the expected response was not received. My guess is that means that there is some problem with the device. You might try and see if another OS will recognize it to do anything with it but I don't put any high odds on that.

Maybe a USB 1 port with a USB 2 device that won't cooperate with slow ports? shouldn't, though. Will other drive devices work with that port?

good luck.
bryan, winxp didn't recognize it.

i tried the usb hd on a port that has worked with a usb thumb drive before. it didn't work there, either.

do you have any ideas how to troubleshoot it? i could see opening the computer case and putting the drive in to see if it is recognized. i can see putting in another hd into the usb case to see if it works with a different drive.

is there any troubleshooting i can do without picking up a screw driver?

just to be clear - the fact this is a scsi drive shouldn't make a difference, right?

Last edited by GNewbie; 04-17-2008 at 01:31 AM.
 
Old 04-17-2008, 11:16 AM   #10
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Quote:
Originally Posted by GNewbie View Post
just to be clear - the fact this is a scsi drive shouldn't make a difference, right?
USB Mass Storage devices are normally recognized as SCSI devices in Linux.
--- rod.
 
Old 04-17-2008, 12:43 PM   #11
GNewbie
Member
 
Registered: Sep 2005
Distribution: (U/K/X)buntu 6.1 (newer box) / D*mn Small Linux (older box)
Posts: 326

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by theNbomr View Post
USB Mass Storage devices are normally recognized as SCSI devices in Linux.
--- rod.
Could my jumper settings be at fault? should the usb HDD be master, slave or select? it doesn't have a jumper right now.

i put in a second hdd and it is being seen - so it is a HDD issue, not a case issue.

tia...
 
Old 04-17-2008, 05:53 PM   #12
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Oops. My bad. I saw 'USB' and 'drive' and incorrectly thought 'thumb drive'. However, I believe any mass storage device interfaced through USB is likely to appear to be the same. Is this a conventional ATA hard drive piggybacked onto a USB adapter of some sort? If yes, then it may well be the lack of correct jumpering on the hard drive. Is it possible to remove the drive and install it in a conventional IDE interface? Or replace the existing drive with a known working ATA hard drive installed on the USB adapter?
--- rod.

Last edited by theNbomr; 04-18-2008 at 10:54 AM.
 
Old 04-17-2008, 07:19 PM   #13
GNewbie
Member
 
Registered: Sep 2005
Distribution: (U/K/X)buntu 6.1 (newer box) / D*mn Small Linux (older box)
Posts: 326

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by theNbomr View Post
Oops. My bad. I saw 'USB' and 'drive' and incorrectly thought 'thumb drive'. However, I believe any mass storage device interfaced through USB is likely to appear to be the same. Is this a conventional ATA hard drive piggybacked onto a USB adapter of some sort? If yes, then it may well be the lack of correct jumpering on the hard drive. Is it possible to remover the drive and install it in a conventional IDE interface? Or replace the existing drive with a known working ATA hard drive installed on the USB adapter?
--- rod.
i think this drive is ata or sata. should it be jumpered as master, slave or cable select? i'd venture slave is correct, but that's a wild guess.

tia...
 
Old 04-18-2008, 10:53 AM   #14
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
If it is a single drive on it's bus, then Cable Select or Master should work. Definitely not Slave. It won't hurt anything if you use the wrong setting; it just won't work until you get it jumpered right.
--- rod.
 
  


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
Installing Ubuntu on External HDD; PC has no internal HDD 449 Ubuntu 2 11-28-2007 05:12 PM
booting machine with linux on an external HDD without HDD connected drsoum Linux - Newbie 2 07-22-2007 03:47 AM
How to format external hdd with open suse 10 rahilrai SUSE / openSUSE 3 03-18-2006 04:55 AM
Bootable partion on external HDD? 40 gb firelight hdd. Trebile34 Linux - Hardware 1 03-14-2005 11:50 AM
How to format & mount 2nd hdd after FedCor1 has been installed on 1st hdd? clay394 Fedora 1 05-18-2004 01:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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