LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-21-2014, 03:31 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Rep: Reputation: 51
Issue creating filesystem on Linux


I have a Linux machine attached to the storage box. I can see the WWNs listed. I can see the fdisk displaying the alloted LUNs as shown below:

Code:
 fdisk -l

Disk /dev/sda: 146.1 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14         405     3148740   83  Linux
/dev/sda3             406         536     1052257+  82  Linux swap / Solaris

Disk /dev/sdb: 21.4 GB, 21474836480 bytes
64 heads, 32 sectors/track, 20480 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       20480    20971519+  83  Linux

Disk /dev/sdc: 23.6 GB, 23622320128 bytes
64 heads, 32 sectors/track, 22528 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1       22528    23068656   83  Linux

Disk /dev/sdd: 21.4 GB, 21474836480 bytes
64 heads, 32 sectors/track, 20480 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1       20480    20971519+  83  Linux

Disk /dev/sde: 23.6 GB, 23622320128 bytes
64 heads, 32 sectors/track, 22528 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1               1       22528    23068656   83  Linux

Disk /dev/dm-0: 21.4 GB, 21474836480 bytes
64 heads, 32 sectors/track, 20480 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

     Device Boot      Start         End      Blocks   Id  System
/dev/dm-0p1               1       20480    20971519+  83  Linux

Disk /dev/dm-1: 23.6 GB, 23622320128 bytes
64 heads, 32 sectors/track, 22528 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

     Device Boot      Start         End      Blocks   Id  System
/dev/dm-1p1               1       22528    23068656   83  Linux

Disk /dev/dm-2: 23.6 GB, 23622303744 bytes
255 heads, 63 sectors/track, 2871 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-2 doesn't contain a valid partition table

Disk /dev/dm-3: 21.4 GB, 21474820096 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-3 doesn't contain a valid partition table
I tried to create a filesystem through the following command:

#mke2fs -j /dev/sdb1

It complains: dev/sdb1 is apparently in use by the system; will not make a filesystem here!

I could see /dev/dm-0 is also created alongside(see the output above). Why its getting created?
Do I need to create filesystem on /dev/dm-0?
Please suggest.

Last edited by your_shadow03; 02-21-2014 at 03:36 AM.
 
Old 02-21-2014, 04:39 AM   #2
sadiqdm
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: openSUSE, Ubuntu
Posts: 358

Rep: Reputation: 35
Lightbulb

Long time since I used fdisk, but I think this means the partition is mounted. Do you have a file manager open?

I have been using PartedMagic for some years to manage disk partitions, formatting & resizing. It runs from a live CD or USB stick, and has a nice GUI.

Latest version is here: https://partedmagic.com/downloads/

It used to be free, but the cost of maintaining it became too much to do with just donations. For $4.99 it is a real bargain.

Last edited by sadiqdm; 02-21-2014 at 04:45 AM. Reason: Correct spelling.
 
Old 02-21-2014, 04:49 AM   #3
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
If it says that partition is in use, then it's most likely mounted.

Run
Code:
mount
to see if that's the case, and
Code:
umount /dev/sdb1
to unmount it.
 
Old 02-21-2014, 12:08 PM   #4
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Its not mounted. See below:
[code]
mount
/dev/sda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
xenfs on /proc/xen type xenfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
none on /var/lib/xenstored type tmpfs (rw)

[/code
 
Old 02-21-2014, 03:41 PM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,399

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
Those dm-[0-3] devices might be dmraid devices. Run "dmraid -r" and see if anything is listed. You could also run "dmsetup deps" and see if any mapped device shows "(8, 17)" as a dependency. (Those are the major and minor device numbers for /dev/sdb1.)
 
  


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
Linux partition creating issue itmagesh@gmail.com Linux - Newbie 2 01-02-2014 12:36 PM
Creating linux filesystem on a thumb drive to be used as secondary OS Jamf Linux - Desktop 7 10-04-2012 12:02 PM
Creating a filesystem to use free space on an existing filesystem idsouza28 Linux - Newbie 7 06-05-2012 12:29 AM
Creating Users in Linux with specific rights: Issue?? rajnair0278 Linux - Software 1 07-10-2006 07:24 AM
Creating Filesystem for.. j_miguel_y Linux - General 1 06-10-2004 01:53 PM


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