[ale] unallocated space

Joseph A. Knapka jknapka at earthlink.net
Thu Aug 29 14:43:58 EDT 2002


"Zyman, Andy" wrote:
> 
> Joseph,
> thank You for input.
> But, and you are right here, df returns space in "filesystem". But i don't
> have a fs there. it's unallocated "raw" space. I'm thinking maybe mkfs will
> help me? But it creates fs on partition and this not (?) a partition....

Ah, right, I should have read your message more thoroughly.
I think the only way you will get this information is from
a partitioning tool. If you run "fdisk /dev/hd?" (where ? is
the drive number), and do "p" to tell it to print the
partition table, it will tell you what units the partition
number are expressed in ("Cylinders of 512 * 8192 bytes" or
something like that). You can then use the total available
space in those units and a little multiplication to find
the available space in bytes. Or you could just create
a filesystem on the empty space (after making a partition
there, of course) and run df.

As for adding space to an existing partition, I guess there
are partitioning tools that will do that, but you might
have better luck with the "md" (multidevice) driver - it
lets you combine several partitions into a single
logical one, without having to mess with the physical
partitions.

Cheers,

-- Joe
 
> > -----Original Message-----
> > From: Joseph A. Knapka [mailto:jknapka at earthlink.net]
> > Sent: Thursday, August 29, 2002 2:29 PM
> > To: Zyman, Andy
> > Cc: 'ale at ale.org'
> > Subject: Re: [ale] unallocated space
> >
> >
> > "Zyman, Andy" wrote:
> > >
> > > Hello,
> > > very simple question for you:
> > > how can i see the amount of unallocated space under Linux?
> >
> > From a shell, run
> > df
> > ("disk free") to see the amount of free space on all filesystems.
> >
> > -- Joe
> >
> > > problem:
> > > I have hd for 40 gb. I have Nt and rh73 installed. I need
> > more space in
> > > /home to install Oracle9i. I found "parted". Which might (
> > i don't know yet
> > > ) add or expand the partition.
> > > the problem is that it asks not for how much space i want
> > to add but for
> > > starting/ending sectors/segments ( don't remember right now ).
> > > so now i need to find out where the unused space is. And i
> > just don't know
> > > how to do this.
> > > Another problem - it ( parted ) asks not for mb i want to
> > add but for ( i
> > > think ) segments, so i have to know where the space is...
> > > any help?
> > >
> > > P.S. on top of this i was trying to find where is the disk
> > druid ( i liked
> > > it gui interface, was very convenient for me ), but failed...
> > > Please advice.
> > >
> > > Thank You
> > >  Andy
> > >
> > > ---
> > > This message has been sent through the ALE general discussion list.
> > > See http://www.ale.org/mailing-lists.shtml for more info.
> > Problems should be
> > > sent to listmaster at ale dot org.
> >
> > --
> >   "I'd rather chew my leg off than maintain Java code, which
> >    sucks, 'cause I have a lot of Java code to maintain and
> >    the leg surgery is starting to get expensive." - Me
> >

-- 
  "I'd rather chew my leg off than maintain Java code, which
   sucks, 'cause I have a lot of Java code to maintain and
   the leg surgery is starting to get expensive." - Me

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list