LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-04-2004, 02:53 PM   #1
newjuan
LQ Newbie
 
Registered: Apr 2004
Location: St. Louis, Mo.
Distribution: Redhat 9
Posts: 26

Rep: Reputation: 15
Holy christmas batman! where'd my unformatted hd space go?


When I originally installed linux I had plans to eventually put XP on another partition (which I no longer am doing) so I left about 3 gigs of space unformatted. When I run fdisk I get the following which seems to omit my free space. My question is how do I find my free space so I can format and mount it? Is /dev/shm my free space that i'm looking for?

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hdc2 2016044 1877124 36508 99% /
/dev/hdc1 101089 9171 86699 10% /boot
none 192236 0 192236 0% /dev/shm
/dev/cdrom 405618 405618 0 100% /mnt/cdrom

Last edited by newjuan; 05-04-2004 at 03:02 PM.
 
Old 05-04-2004, 03:01 PM   #2
Caeda
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Suse 6.0+, Mandrake 5.0-10.0, Redhat 6.0-9.0, Gentoo 1.2+, Gnoppix, Knoppix, Sabayon, Ubuntu 5.04+
Posts: 1,811

Rep: Reputation: 45
Holy whips and chains batman!...

er.. anyway

It appears your free space would be that /dev/shm as it says 0 used 0%? Did you try fdisk /dev/hda or fdisk /dev/hdc to select a drive?
 
Old 05-04-2004, 03:06 PM   #3
newjuan
LQ Newbie
 
Registered: Apr 2004
Location: St. Louis, Mo.
Distribution: Redhat 9
Posts: 26

Original Poster
Rep: Reputation: 15
Ok I tried the following command to no avail:
[brandon@localhost brandon]$ /sbin/fdisk /dev/hda

Unable to open /dev/hda
[brandon@localhost brandon]$ /sbin/fdisk /dev/hdc

Unable to open /dev/hdc


What am I missing?
 
Old 05-04-2004, 03:21 PM   #4
Caeda
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Suse 6.0+, Mandrake 5.0-10.0, Redhat 6.0-9.0, Gentoo 1.2+, Gnoppix, Knoppix, Sabayon, Ubuntu 5.04+
Posts: 1,811

Rep: Reputation: 45
Dunno. When I type. "fdisk" it shows me a list of disks and askes me to type it agian as fdisk /dev/??? to select my disk...
 
Old 05-04-2004, 03:35 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,793

Rep: Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952
The df command only shows information about mounted filesystems.

You need to be logged in as root to use fdisk.

/dev/shm is shared memory.
http://fscked.org/writings/SHM/shm.html
 
Old 05-04-2004, 04:26 PM   #6
newjuan
LQ Newbie
 
Registered: Apr 2004
Location: St. Louis, Mo.
Distribution: Redhat 9
Posts: 26

Original Poster
Rep: Reputation: 15
While logged in as root, executing /sbin/fdisk, I get the following output:
[root@localhost brandon]# /sbin/fdisk /dev/hda

Unable to read /dev/hda

What am I doing wrong here? I just want my precious hard drive space back
 
Old 05-04-2004, 04:39 PM   #7
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
try:

su -
(password)
fdisk -l

Last edited by itsjustme; 05-04-2004 at 04:41 PM.
 
Old 05-04-2004, 05:16 PM   #8
newjuan
LQ Newbie
 
Registered: Apr 2004
Location: St. Louis, Mo.
Distribution: Redhat 9
Posts: 26

Original Poster
Rep: Reputation: 15
Ok, now I know the free space is located on /dev/hdc4 which has already been formatted for fat16 but when I try to delete the table as shown in the following text, I don't get the desired result.

Command (m for help): d
Partition number (1-4): 4
Warning: partition 4 has empty type

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
 
Old 05-05-2004, 09:53 AM   #9
Caeda
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Suse 6.0+, Mandrake 5.0-10.0, Redhat 6.0-9.0, Gentoo 1.2+, Gnoppix, Knoppix, Sabayon, Ubuntu 5.04+
Posts: 1,811

Rep: Reputation: 45
Hrm Don't suppose you have an old dos boot disk laying around? If you can find/get one, google for "aefdisk" program, it'll do wonders at re-doing partition tables It should fit on any old dos boot floppy too.
 
Old 05-05-2004, 10:43 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,793

Rep: Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952
Post the output of fdisk. If partition 4 has an empty type I'm wondering whats going on.

Boot the RH install CD and select rescue mode then you should be able to modify hdc
 
  


Reply



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
K3B won't recognise a unformatted dvd+rw when inserted into drive. jackstoage Linux - Software 1 01-29-2005 04:13 PM
viewing an unformatted hard drive nitaish Linux - General 8 10-16-2004 11:40 PM
Holy Nvidia Drivers Batman! Nego Linux - Hardware 5 07-08-2004 01:49 AM
Holy gee goosh wilikers "BATMAN" is it really true????????? caleb star Linux - Software 1 12-10-2003 04:22 PM
Riddle me this Batman -> Samba/Linneighborhood Timboi Linux - Networking 4 02-12-2003 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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