LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-14-2010, 01:21 AM   #16
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 361

Rep: Reputation: 76

Did you create a partition(s) before formatting?
Because it does not appear to have any partitions.
Create a partition, then format it. If you are certain everything was done right including partitioning, then try installing testdisk and see if it can recover partition information.
 
Old 07-14-2010, 08:05 AM   #17
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
nnjond;
I have merged your two threads on the same problem-----Please keep it to one thread per topic.

Wim*;
The totality of this made me wonder if he really formatted it. Also, it seems that he may have not made any partitions---but rather formatted the entire drive. (I think that works)
 
Old 07-14-2010, 01:37 PM   #18
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,397
Blog Entries: 1

Rep: Reputation: 64
For what I read above, there is a possibility the flash disk is damaged.

I've a flash disk that in the first time you plug it shows a corrupted partition table.
Then I do the basic: Create a empty partition table, create a new partition, format it and write some files on it and, finally, umount it.

If I keep it attached to the computer I can re-mount and access the files.

But, If I remove it from the computer and wait a couple of seconds to plug it in again, all data, partition tables, whatever, is lost/corrupted.
 
Old 07-14-2010, 02:54 PM   #19
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
marozsas;

I don't see anything suggesting that the OP's external drive is a flash device.
 
Old 07-14-2010, 03:06 PM   #20
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Original Poster
Rep: Reputation: 31
I think Pixelany has guest right and i formated the whole drive without a partition. I'd like to move on with this assumption if you can offer me any advice.

Thanks
 
Old 07-14-2010, 03:19 PM   #21
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,397
Blog Entries: 1

Rep: Reputation: 64
Quote:
Originally Posted by pixellany View Post
I don't see anything suggesting that the OP's external drive is a flash device.
Good point ! LOL
you're right. I can't explain why I had that impression. my bad.
 
Old 07-14-2010, 03:27 PM   #22
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Can you tell us what command you used to format the drive? Also, do you recall what filesystem was selected?

Did you try mounting with a specified filesystem as I suggested previously?

I just did a quick experiment:
I took my thumb drive and formatted the whole thing using mkfs.ext3
fdisk simply says "no valid partition table", but I can mount it and use it with no problem.

On your system, run this command and post the resulting file here as an attachment. From this, we should be able to see if there is a file system on the drive---and what it is.

Code:
dd if=/dev/sdb of=my-ext-drive bs=256 count=10
PS: the file created will be named: "my-ext-drive"

Last edited by pixellany; 07-14-2010 at 03:28 PM.
 
Old 07-14-2010, 03:57 PM   #23
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Original Poster
Rep: Reputation: 31
The drop down menu to format only had about 4 options; Ex4, ntfs, i think, ex2, Linux compatable Fat...


Should i try each one in turn?

nnjond@nnjond-desktop:~$ sudo fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ea053

Device Boot Start End Blocks Id System
/dev/sda1 * 1 60239 483864576 83 Linux
/dev/sda2 60239 60802 4519937 5 Extended
/dev/sda5 60239 60802 4519936 82 Linux swap / Solaris

Disk /dev/sdb: 16.0 GB, 16013852672 bytes
64 heads, 32 sectors/track, 15272 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006a8f6

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 15272 15638512 c W95 FAT32 (LBA)

Disk /dev/sdc: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007e67e

Device Boot Start End Blocks Id System
nnjond@nnjond-desktop:~$
nnjond@nnjond-desktop:~$ dd if=/dev/sdc of=my-ext-drive bs=256 count=10
dd: opening `/dev/sdc': Permission denied
nnjond@nnjond-desktop:~$ sudo dd if=/dev/sdc of=my-ext-drive bs=256 count=10
10+0 records in
10+0 records out
2560 bytes (2.6 kB) copied, 0.00148237 s, 1.7 MB/s
nnjond@nnjond-desktop:~$

Last edited by nnjond; 07-14-2010 at 04:06 PM.
 
Old 07-14-2010, 05:47 PM   #24
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I need you to send us that file (as an attachment).

Note that fdisk has already told us there are no partitions---no need to run it anymore
 
Old 07-14-2010, 10:23 PM   #25
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Original Poster
Rep: Reputation: 31
Thanks for your help again. If i understand what to do correctly:

The hdd now shows up as sdc, so not sdb, but sdc;

nnjond@nnjond-desktop:~$ sudo dd if=/dev/sdc of=my-ext-drive bs=256 count=10
[sudo] password for nnjond:
10+0 records in
10+0 records out
2560 bytes (2.6 kB) copied, 0.00130335 s, 2.0 MB/s
nnjond@nnjond-desktop:~$ find my-ext-drive
my-ext-drive
nnjond@nnjond-desktop:~$ sudo su
root@nnjond-desktop:/home/nnjond# cd /
root@nnjond-desktop:/# find my-ext-drive
my-ext-drive
root@nnjond-desktop:/#


I seem to have found it in /dev.
 
Old 07-14-2010, 10:27 PM   #26
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I need to see the contents of that file.....This means that you need to post it here as an attachment.

When you are creating a new post, go to advanced mode and scroll down and you will see an option for managing attachments.
 
Old 07-14-2010, 10:39 PM   #27
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Original Poster
Rep: Reputation: 31
I've tried to post the file as an att. i cant tell if i've sucedded ?
 
Old 07-14-2010, 10:41 PM   #28
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Original Poster
Rep: Reputation: 31
The upload went ahead. Cant see if i succeeded
 
Old 07-14-2010, 10:47 PM   #29
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by nnjond View Post
The upload went ahead. Cant see if i succeeded
Nothing is attached.....my guess is that there is another step to actually attach the file. (I've never done it---maybe I should learn....)
 
Old 07-14-2010, 10:48 PM   #30
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Original Poster
Rep: Reputation: 31
Is this because only root has permissions?

Upload Errors
my-ext-drive:
Invalid File

gedit has not been able to detect the character encoding.
Please check that you are not trying to open a binary file.
Select a character encoding from the menu and try again.


Could not open the file /dev/my-ext-drive using the Unicode (UTF-8) character encoding.

Last edited by nnjond; 07-14-2010 at 11:17 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
seagate HDD not showing contents in Scientific linux kapilaneha5 Linux - Hardware 7 07-17-2010 04:08 AM
Ubuntu 9.04 , changing hdd and wants move contents to new hdd BenPoza Ubuntu 2 01-16-2010 02:22 PM
using slax to access hdd contents bicolano53 Slackware 8 08-19-2006 01:23 PM
list contents of directory without listing contents baddah Linux - Newbie 2 06-12-2006 05:02 AM
fat32 contents unknown GrexMachine Linux - Newbie 4 02-03-2006 12:02 PM


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