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 11-12-2010, 02:52 AM   #1
Steve W
Member
 
Registered: Mar 2007
Distribution: Linux Mint 18.1
Posts: 520

Rep: Reputation: 44
USB mini hard drive - mounting and access problems


A few years ago I bought a small 8GB Maxell USB external hard drive. It's about the size of a packet of Tic Tacs. I've got it formatted into two partitions - one is FAT16 and the other FAT32. I've got a small amount of Windows files in the FAT16 partition and some backup files from my Linux system in the other. However, I want to reformat the whole drive into one partition and start again.

I am having trouble accessing the files some of the time, hence my decision to reformat.

However, I thought I would reformat into one partition using GParted, but whenever I try and unmount both partitions, it starts trying to search the partitions of that device, and that's all it does. It's like it has "hung" in some way.

I assume there is a way to wipe/reformat the drive using the shell; but when I Google this, the instructions all seem to be about formatting a new drive. Surely I should be able to accomplish this in GParted? Even if the drive is slightly corrupted (which could be one reason?)

Thank you for any advice you can give.
 
Old 11-12-2010, 05:59 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
If the controller circuit inside the device is failing then it may not be possible to repartition it. Use the system logs to see if Linux shows any errors when you plug the device into the computer.
Code:
dmesg
If you see errors associated with the device then you probably should copy the files off of the device and then discard the device. You may want to use shred on the two partitions before you discard the device. Shred will overwrite the files with random numbers.

Last edited by stress_junkie; 11-12-2010 at 06:02 AM.
 
Old 11-12-2010, 06:08 AM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
Not disagreeing with stress_junkie, but I would like to also point the OP to this other thread:
http://www.linuxquestions.org/questi...gnized-835812/

In brief: if you're on a laptop (especially an older one), try the hard disk on a desktop machine or newer laptop, to rule out problems related to inadequate power supplied from the laptop's USB ports. I've got a USB HDD too, that works fine on my desktop, but is very hit-or-miss on the laptops we have here, usually not working. OP in that other thread experienced same thing.

Anyhow, if the contents are important, probably very good idea to do what you can to get the data off onto another device ASAP, especially if this has never happened before. Act now - investigate more later.
 
1 members found this post helpful.
Old 11-12-2010, 06:26 AM   #4
btncix
Member
 
Registered: Aug 2009
Location: USA
Posts: 141

Rep: Reputation: 26
You can try to delete the two partitions and create one whole one from command line using cfdisk as root user. Make sure your external hard drive is not mounted.

# cfdisk /dev/sdX (X = a, b, etc.)

or try fdisk if cfdisk does not work
# fdisk /dev/sdX

Last edited by btncix; 11-12-2010 at 06:28 AM.
 
Old 11-12-2010, 06:51 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
Might look at fdisk -l too or even just mount command.
 
Old 11-13-2010, 03:29 AM   #6
Steve W
Member
 
Registered: Mar 2007
Distribution: Linux Mint 18.1
Posts: 520

Original Poster
Rep: Reputation: 44
Thank you all for your helpful replies. Using a combination of cfdisk and GParted, I have now successfully formatted the drive to just under 8Gb of FAT32 space, and copied some files onto it. It seems fine now.

I was using it as a backup drive anyway so there was no important data on there to lose. I don't know whether it was a combination of trying to use FAT16 on the smaller partition and FAT32 on the larger one that the system did not like. However it is all FAT32 now and working okay.

Thanks for the advice.

Steve
 
  


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
problems mounting external usb hard drive sja2993 Linux - Newbie 2 07-27-2010 02:16 PM
Problems mounting usb external hard drive... Linux~Powered Slackware 3 06-05-2008 10:55 AM
usb external mini hard drive file system offbyte Linux - Hardware 1 11-04-2007 02:53 PM
Mounting a hard drive so that a normal user get write access raghesh Linux - General 4 08-24-2007 12:26 AM
Troubles with mounting hard-drive. Cannot even mount or access in root. eBopBob Linux - Hardware 4 08-19-2004 06:09 AM

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

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