LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-04-2011, 08:30 AM   #1
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 271

Rep: Reputation: 6
cant mount or format ssd drive


I just got a Patriot PS-100 mlc ssd drive and I cant mount it or put a file system on it.

I've installed Gentoo on many normal hdds before and though it would be the same with the sdd.

Any advice?

I'm trying:

mkfs.xfs /dev/sda2

cannot open /dev/sda2 device is busy.

Last edited by Adol; 03-04-2011 at 08:54 AM.
 
Old 03-04-2011, 08:59 AM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Could you post the output from:

Code:
fdisk -l /dev/sda
Regards,

Fordeck
 
Old 03-04-2011, 09:04 AM   #3
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Please, output of:

dmesg|grep sda

mount

fdisk /dev/sda (p)
 
Old 03-04-2011, 09:58 AM   #4
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 271

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by fordeck View Post
Could you post the output from:

Code:
fdisk -l /dev/sda
Regards,

Fordeck
I got:

Disk /dev/sda: 30.9GB .....bytes
255 heads, 63 secotrs/tracks, .....cyliders
Units=cylynders of 16065 * 512 bytes/512bytes
Sector size: 512bytes/512bytes
I/O size 512bytes/512bytes
Disk: identifier 0xedc522oc

Device Boot Start End Blocks Id System


I left out some of the long numbers but everything else is there.

Should there be more information under Devece Boot Start etc...?

Thank you for the help
 
Old 03-04-2011, 10:06 AM   #5
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 271

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by szboardstretcher View Post
Please, output of:

dmesg|grep sda

mount

fdisk /dev/sda (p)
dmesg|grep sda gave me something strange.

The top part looked ok but the bottom looks like raid.

md: bind<sda>
md: bind<sda>
md/raid0:md126:looking at sda
md/raid0:md126: comapring sda (60287232 with sda (0287232)

This is exactly double the size its rated at. Its an mlc does that mean its actually a raided memmory drive???

If thats the case how do I mount the thing?
 
Old 03-04-2011, 10:31 AM   #6
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Quote:
Disk /dev/sda: 30.9GB .....bytes
255 heads, 63 secotrs/tracks, .....cyliders
Units=cylynders of 16065 * 512 bytes/512bytes
Sector size: 512bytes/512bytes
I/O size 512bytes/512bytes
Disk: identifier 0xedc522oc

Device Boot Start End Blocks Id System
Shows that you do not have any partitions defined, so sda2 does not exist yet. You would first need to partition the drive using a tool such as fdisk, cfdisk, or sfdisk. You should then be able to apply a file system to your partition.

Regards,

Fordeck
 
Old 03-04-2011, 06:22 PM   #7
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 271

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by fordeck View Post
Shows that you do not have any partitions defined, so sda2 does not exist yet. You would first need to partition the drive using a tool such as fdisk, cfdisk, or sfdisk. You should then be able to apply a file system to your partition.

Regards,

Fordeck
Sorry, I was changing things around because it wasnt working and I cleared my partition tables before I ran fdisk -l /dev/sda.(the tables were set the first time I tried)

Now everything shows up but I'm still back to my problem.

Cannot open /dev/sda2 Device or resource busy

 
Old 03-04-2011, 10:53 PM   #8
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 271

Original Poster
Rep: Reputation: 6
Thank you everyone.

I found out the problem.

For some reason it was finding my ssd as a software raid device and setting it up as md126 and md127.

After sopping raid with mdadm --stop /dev/md126 (and 127) I can mount and make a filesystem on my drive.

Now I need to see how I can disable software raid or at least not have it define my ssd as a raided device.

Thank you
 
Old 03-05-2011, 08:10 AM   #9
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Check what partition type you have assigned to your partition types on /dev/sda Or perhaps you can post the output of the current fdisk -l. It sounds like you may left over superblock metadata from having set it up as a raid device at some point.

The partition type you want would be 83/Linux. Partition type fd/Linux raid auto would be what you use only if you want to setup software raid.

Regards,

Fordeck
 
Old 03-06-2011, 03:09 AM   #10
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 271

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by fordeck View Post
Check what partition type you have assigned to your partition types on /dev/sda Or perhaps you can post the output of the current fdisk -l. It sounds like you may left over superblock metadata from having set it up as a raid device at some point.

The partition type you want would be 83/Linux. Partition type fd/Linux raid auto would be what you use only if you want to setup software raid.

Regards,

Fordeck
Thank you very much for your advice.

It was a new drive and the first pc I put it in was my Gentoo pc.

However, I decided to use it in my Windows 7 pc instead and setup a large raid on my gentoo pc in order to make a server.

I was, however, able to get it working by turning off software raid on gentoo.

Thank you.
 
  


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
How do I format and mount an external hard drive? Durham Linux - Hardware 1 12-19-2006 06:05 PM
Add drive, format XFS and mount... kailun Slackware 9 09-25-2006 01:45 PM
FC1 Trying to mount second hard drive (HDB7) format ext3 with no luck stutes Linux - Newbie 4 05-26-2006 09:36 AM
how to mount a external hard drive in ext3 format? kuertensun Linux - Newbie 12 09-06-2005 06:51 PM
How do I format and mount a new drive? Phyrtech Linux - Newbie 5 01-29-2004 11:29 PM

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

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