[SOLVED] Help with new disk but don't know how to add | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

[SOLVED] Help with new disk but don't know how to add

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-08-2013
samnyc samnyc is offline
Registered User
 
Join Date: Jan 2009
Last Activity: 13 October 2014, 4:46 PM EDT
Posts: 225
Thanks: 66
Thanked 3 Times in 3 Posts
[SOLVED] Help with new disk but don't know how to add

Hi,

This Linux server is a VM, on the VMware, I added new disk for this system. I was not able to see the new disk. I did try the scan command but didn't work. I then rebooted the system. Now when I do


Code:
 
fdisk -l
Disk /dev/sda: 161.0 GB, 161061273600 bytes
255 heads, 63 sectors/track, 19581 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         268     2048287+  82  Linux swap / Solaris
/dev/sda3             269       19581   155131672+  83  Linux

On the Vmware, I added another disk for 150 Gig.

Here is the output from df -h


Code:
 
df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             144G  135G  1.9G  99% /
/dev/sda1              99M   26M   68M  28% /boot
tmpfs                 942M     0  942M   0% /dev/shm

where is my new disk? how do I add that.

---------- Post updated at 04:47 PM ---------- Previous update was at 04:25 PM ----------

I was able to add the new...


Code:
 
fdisk -l
Disk /dev/sda: 161.0 GB, 161061273600 bytes
255 heads, 63 sectors/track, 19581 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         268     2048287+  82  Linux swap / Solaris
/dev/sda3             269       19581   155131672+  83  Linux
Disk /dev/sdb: 161.0 GB, 161061273600 bytes
255 heads, 63 sectors/track, 19581 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb4               1       19581   157284351    5  Extended

but when I do mkfs, I get error message. Any idea?


Code:
 
mkfs ext3 /dev/sdb4
mke2fs 1.39 (29-May-2006)
mkfs.ext2: invalid blocks count - /dev/sdb4

Sponsored Links
    #2  
Old 01-08-2013
Corona688 Corona688 is online now Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 25 November 2014, 5:56 PM EST
Location: Saskatchewan
Posts: 19,936
Thanks: 847
Thanked 3,418 Times in 3,203 Posts
That's a really weird partition table for /dev/sdb. It's bizzare that it starts at 4, and that it's 'extended' means it's not even intended to have a filesystem inside it, just other partitions.

I don't think adding a new disk is going to help solve your / being 99% full, anyway. Did you ever find the huge file from your other thread?
Sponsored Links
    #3  
Old 01-09-2013
samnyc samnyc is offline
Registered User
 
Join Date: Jan 2009
Last Activity: 13 October 2014, 4:46 PM EDT
Posts: 225
Thanks: 66
Thanked 3 Times in 3 Posts
Thanks. I made a mistake by adding it as Extended. I deleted and re-added as primary disk. After that I got it working.
The Following User Says Thank You to samnyc For This Useful Post:
Corona688 (01-09-2013)
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
dd cloning of whole disk Royalist Ubuntu 24 09-03-2012 05:40 PM
Using sed to change lines and add them if they don't exist.. Silentbtdeadly UNIX for Dummies Questions & Answers 2 05-13-2012 11:26 AM
AIX 7.1 don't detect my DataDomain Library stephnane AIX 2 03-09-2012 05:06 AM
Solaris 10 installation issue Error 25: Disk cannot be read - Solved admin_xor Solaris 1 10-22-2011 02:42 AM
( VxVM ) How to add the removed disk back to previous disk group waibabe Solaris 1 04-18-2009 08:53 AM



All times are GMT -4. The time now is 07:01 PM.