Disk /dev/sdb doesn't contain a valid partition table | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Disk /dev/sdb doesn't contain a valid partition table

Red Hat


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-26-2013
jediwannabe jediwannabe is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 13 June 2014, 2:43 AM EDT
Posts: 50
Thanks: 6
Thanked 0 Times in 0 Posts
Disk /dev/sdb doesn't contain a valid partition table

I've installed Oracle Linux 5 as a guess OS on VirtualBox. I've added a new disk to the virtual machine.


Code:
[root@11gr2-secondary ~]# fdisk -l

Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          32      257008+  83  Linux
/dev/sda2              33        1337    10482412+  83  Linux
/dev/sda3            1338        1990     5245222+  83  Linux
/dev/sda4            1991        3916    15470595    5  Extended
/dev/sda5            1991        2643     5245191   83  Linux
/dev/sda6            2644        3165     4192933+  82  Linux swap / Solaris
/dev/sda7            3166        3687     4192933+  83  Linux

Disk /dev/sdb: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

Before the above I've done a mkfs on the new virtual disk, i.e.


Code:
[root@11gr2-secondary ~]# mkfs -t ext3 /dev/sd
sda   sda1  sda2  sda3  sda4  sda5  sda6  sda7  sdb   
[root@11gr2-secondary ~]# mkfs -t ext3 /dev/sd
sda   sda1  sda2  sda3  sda4  sda5  sda6  sda7  sdb   
[root@11gr2-secondary ~]# mkfs -t ext3 /dev/sd
sda   sda1  sda2  sda3  sda4  sda5  sda6  sda7  sdb   
[root@11gr2-secondary ~]# mkfs -t ext3 /dev/sdb
mke2fs 1.39 (29-May-2006)
/dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
524288 inodes, 1048576 blocks
52428 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1073741824
32 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks: 
    32768, 98304, 163840, 229376, 294912, 819200, 884736

Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.


Code:
Disk /dev/sdb doesn't contain a valid partition table
[root@11gr2-secondary ~]# mkdir -p /u03
[root@11gr2-secondary ~]# mount /dev/sd
sda   sda1  sda2  sda3  sda4  sda5  sda6  sda7  sdb   
[root@11gr2-secondary ~]# mount /dev/sd
sda   sda1  sda2  sda3  sda4  sda5  sda6  sda7  sdb   
[root@11gr2-secondary ~]# mount /dev/sd
sda   sda1  sda2  sda3  sda4  sda5  sda6  sda7  sdb   
[root@11gr2-secondary ~]# mount /dev/sdb /u0
mount: mount point /u0 does not exist
[root@11gr2-secondary ~]# mount /dev/sdb /u03

anyone know how to resolve the above issue?

thanks
Sponsored Links
    #2  
Old 03-26-2013
in2nix4life's Avatar
in2nix4life in2nix4life is offline
Registered User
 
Join Date: Oct 2007
Last Activity: 26 August 2014, 4:21 PM EDT
Location: East Coast
Posts: 611
Thanks: 1
Thanked 175 Times in 161 Posts
Doesn't look like you actually created a partition on the new disk.
Sponsored Links
    #3  
Old 03-26-2013
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 26 August 2014, 10:57 PM EDT
Location: Saskatchewan
Posts: 19,255
Thanks: 773
Thanked 3,230 Times in 3,028 Posts
It warned you here:


Code:
/dev/sdb is entire device, not just one partition!

Usually, you'd run fdisk or parted on /dev/sda to divide it into partitions, then run mkfs on /dev/sda1 and the like, not use /dev/sda directly.
    #4  
Old 03-26-2013
jediwannabe jediwannabe is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 13 June 2014, 2:43 AM EDT
Posts: 50
Thanks: 6
Thanked 0 Times in 0 Posts
should how should I format and partition properly?

thanks
Sponsored Links
    #5  
Old 03-26-2013
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 26 August 2014, 10:57 PM EDT
Location: Saskatchewan
Posts: 19,255
Thanks: 773
Thanked 3,230 Times in 3,028 Posts
You got it backwards, partition, then format.

Run fdisk /dev/sdb

Create a new partition table with 'o'

Create a new partition with 'n'

Let it use the default values by hitting ENTER when it asks for numbers, to take the entire available disk in this partition

Write the new partition table with 'w', which should dump you back to the prompt.

Then you should have a /dev/sdb1 to format as you please with mkfs.
Sponsored Links
    #6  
Old 03-26-2013
Peasant's Avatar
Peasant Peasant is online now
Registered User
 
Join Date: Mar 2011
Last Activity: 27 August 2014, 4:40 AM EDT
Posts: 646
Thanks: 17
Thanked 146 Times in 142 Posts
But it should mount (and it did from the example)

Looks like success to me :

Code:
[root@11gr2-secondary ~]# mount /dev/sdb /u0
mount: mount point /u0 does not exist
[root@11gr2-secondary ~]# mount /dev/sdb /u03 # success

Please issue mount (and nothing else) and check if /dev/sdb is mounted.
Sponsored Links
    #7  
Old 03-31-2013
freebird8z freebird8z is offline
Registered User
 
Join Date: Mar 2013
Last Activity: 18 April 2013, 10:49 AM EDT
Posts: 14
Thanks: 0
Thanked 2 Times in 2 Posts
Rule of thumb: first create partitions, save partition table, create filesystem and THEN mount the partition. If you miss any of these steps, you may not be able to get what you want.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Creating a hidden partition that doesn't mount automatically nextyoyoma OS X (Apple) 0 01-11-2013 08:40 AM
Remove /dev/sdb partition using fdisk - BY ACCIDENT! kevindoman UNIX for Advanced & Expert Users 5 04-02-2008 02:26 PM
Remove /dev/sdb partition using fdisk - BY ACCIDENT! kevindoman UNIX for Dummies Questions & Answers 2 03-31-2008 02:50 PM
resizing the partition table sriny UNIX for Advanced & Expert Users 5 11-13-2006 03:50 PM
Ran out of space on /dev/root partition Martyn Filesystems, Disks and Memory 2 07-07-2006 09:58 AM



All times are GMT -4. The time now is 04:50 AM.