LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 08-10-2009, 07:46 AM   #1
subashk80
LQ Newbie
 
Registered: Nov 2008
Location: Trichy,India
Distribution: Ubuntu,Open Solaris
Posts: 19

Rep: Reputation: 0
Exclamation Pen drive not mounted ...."Unable to mount, No media in drive"


hello, I am new to linux. My recently purchased pen drive is not detected in Windows, When i tried it in my Ubuntu 8.04 it say "Unable to Mount location, No media in drive". How could i format my drive, so that it could be detected. Actually i think it was all due to some stupid virus in windows...Thanks!!
 
Old 08-10-2009, 07:52 AM   #2
FireRaven
Member
 
Registered: Apr 2006
Location: Australia
Distribution: Debian Squeeze
Posts: 135

Rep: Reputation: 18
First thing you want to do is check if your drive has any readable partitions.
To do this type "#dmesg | tail" after plugging in your drive and see if it shows where your drive is mounted. It will be something like /dev/sda or /dev/sdb.

After that look for the partition by typing #ls /dev/sd*

If your drive was sdb, then the partition will show as /dev/sdb1
If you can see /dev/sdb and no /dev/sdb1 and you are sure sdb was your USB drive, then I'm pretty sure that's a guarantee you have lost your partiton.
 
Old 08-11-2009, 06:39 AM   #3
subashk80
LQ Newbie
 
Registered: Nov 2008
Location: Trichy,India
Distribution: Ubuntu,Open Solaris
Posts: 19

Original Poster
Rep: Reputation: 0
Question

Thz....Wat do i do if i had lost my partition in the disk!! How do i create it again??
 
Old 08-11-2009, 06:51 AM   #4
FireRaven
Member
 
Registered: Apr 2006
Location: Australia
Distribution: Debian Squeeze
Posts: 135

Rep: Reputation: 18
You can run fdisk or parted to create new partitions.
Just run
Code:
#fdisk /dev/sdb
where sdb is your USB drive.

Once in fdisk, hit 'p' then Enter to view your current partitions (just to verify there defiantly are none and you are on the correct drive).

Then type 'n' Enter to create a new primary partition.
When you are done type 'w' Enter to save and close fdisk.

Then run:
#mkfs.ext3 /dev/sdb1
on your new partition to format it.
 
Old 08-11-2009, 06:51 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,496

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Try gparted to partition and format the drive.
Code:
apt-get install gparted
 
Old 08-17-2009, 01:23 AM   #6
subashk80
LQ Newbie
 
Registered: Nov 2008
Location: Trichy,India
Distribution: Ubuntu,Open Solaris
Posts: 19

Original Poster
Rep: Reputation: 0
Question

hi i ran the "#dmesg | tail" command it shows that there is a USB removable storage disk, but shows a error
Code:
"segfault at 00000019 eip b6d80f44 esp bfe55e60 error 4".
The fdisk command says there is no media, and gpart too does not show it??

what do i do!!
 
Old 08-17-2009, 01:38 AM   #7
FireRaven
Member
 
Registered: Apr 2006
Location: Australia
Distribution: Debian Squeeze
Posts: 135

Rep: Reputation: 18
I'm not too sure what this error means.
Do you have the last few lines of the dmesg handy - someone is bound to know what it is...
 
  


Reply

Tags
detected, drive, pen


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
Popular pen drive tutorial - "Success!!!", so why can't it find the kernel? DGeeez Linux - General 9 03-26-2009 08:32 PM
can longer copy files to my empty USB pen drive on DSL - "no space left on device" misterfever Linux - Newbie 11 03-18-2009 03:42 PM
unable to mount usb pen drive in redhat 9.0 zero79 Linux - Hardware 9 01-25-2007 09:07 PM
Unable to mount windows harddrive in Linux: "already mounted" Xandor Linux - Software 10 11-28-2005 03:00 PM
NOT just another "how do i use a USB pen drive..." breezewax Linux - Newbie 2 09-10-2004 07:36 PM


All times are GMT -5. The time now is 04:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration