LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-25-2006, 09:02 PM   #1
shadin
Member
 
Registered: Jun 2006
Posts: 44

Rep: Reputation: 15
Formatting a Partition - No Such Device or Address


I've made a new logical partition on my drive, which is /dev/sdb8. I've only got 20GB for / so I made a new partition to mount /usr/local/games on for installing Doom3, Quake4, and other Linux native games that use this directory.

Whenever I attempt to format the partition with mkfs.xfs /dev/sdb8, I get the following error:

Code:
mkfs.xfs: cannot open /dev/sdb8: No such device or address
Am I missing a step here? I've never worked with partitions after installation, so apparently I don't understand it as well as I thought?
 
Old 07-25-2006, 09:05 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
When you run cat /proc/partitions or fdisk -l /dev/sdb - is sdb8 listed?
 
Old 07-25-2006, 09:12 PM   #3
shadin
Member
 
Registered: Jun 2006
Posts: 44

Original Poster
Rep: Reputation: 15
It is not listed for cat /proc/partitions.

Code:
root@shodan:~# cat /proc/partitions
major minor  #blocks  name

   8     0   72613056 sda
   8     1   10490413 sda1
   8     2   62115322 sda2
   8    16  244198584 sdb
   8    17          1 sdb1
   8    21    2000029 sdb5
   8    22   20000893 sdb6
   8    23   20000893 sdb7
However, it is listed for fdisk -l /dev/sdb.

Code:
root@shodan:~# fdisk -l /dev/sdb

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        8341    66999051    5  Extended
/dev/sdb5               1         249     2000029+  82  Linux swap
/dev/sdb6   *         250        2739    20000893+  83  Linux
/dev/sdb7            2740        5229    20000893+  83  Linux
/dev/sdb8            5230        8341    24997108+  83  Linux
 
Old 07-25-2006, 10:10 PM   #4
shadin
Member
 
Registered: Jun 2006
Posts: 44

Original Poster
Rep: Reputation: 15
Well, I fixed it. All I needed to do was reboot.

It's amazing how I always forget to do that since switching to Slackware from Windows..
 
Old 07-25-2006, 10:26 PM   #5
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Yeah, when you mess with partition stuff it's usually recommended to reboot....

I think we've all done that.
 
  


Reply

Tags
format


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
Partition formatting TurboChicken Linux - Hardware 3 03-07-2006 11:16 AM
Formatting partition with XFS. duffmckagan Linux - Software 1 10-30-2005 01:58 PM
MAC Address Formatting mikeyt_333 Linux - Networking 4 12-10-2004 11:48 AM
loop: can't open device /dev/loop0: No such device or address miaviator278 Linux - Security 3 06-09-2004 10:24 PM
Formatting a FAT32 partition... SamH Linux - General 3 12-23-2003 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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