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

Tags
beginners

 

 
Thread Tools Search this Thread
# 1  
Old 01-08-2013
[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

# 2  
Old 01-08-2013
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?
# 3  
Old 01-09-2013
Thanks. I made a mistake by adding it as Extended. I deleted and re-added as primary disk. After that I got it working.
This User Gave Thanks to samnyc For This Post:
Corona688 (01-09-2013)
 

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Solved: Disk Unable to Boot br1an Solaris 50 11-12-2013 07:45 AM
[Solved] While loop error when add sqlplus command ken6503 Shell Programming and Scripting 5 11-01-2013 11:01 AM
[solved] How to blink faulty disk in Solaris hardware? manalisharmabe Solaris 9 10-26-2013 10:00 AM
[Solved] Add row of numbers jimmyf UNIX for Dummies Questions & Answers 5 02-02-2013 04:36 PM
[solved]Config/enable_mapping missing, how to add? taltamir Solaris 0 01-09-2013 01:55 PM
[Solved] Working with date (add minutes using variables) Lord Spectre Shell Programming and Scripting 2 07-15-2012 02:10 PM
[Solved] DCMU (disk control and monitor utility) sun fire pabloli150 Emergency UNIX and Linux Support 1 06-29-2012 04:47 AM
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
[Solved] Need to add Single quotes to particular lines mac4rfree Shell Programming and Scripting 4 04-27-2012 10:11 AM
Solaris 10 installation issue Error 25: Disk cannot be read - Solved admin_xor Solaris 1 10-22-2011 02:42 AM
Disk Storage Need to Add more Disk fpalero Solaris 0 11-10-2010 02:54 AM
vxvm root disk booting problem - solved with boot -a. How? badoshi Solaris 4 03-01-2010 10:39 AM
( VxVM ) How to add the removed disk back to previous disk group waibabe Solaris 1 04-18-2009 08:53 AM