LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-08-2004, 11:54 AM   #1
mikeshn
Member
 
Registered: Feb 2002
Distribution: Fedora Core 2
Posts: 586

Rep: Reputation: 30
Create partition?


I need to create /tmp partition. Any help how I can do this?

[root@localhost root]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 73G 11G 58G 16% /
/dev/hda1 99M 6.3M 88M 7% /boot
none 252M 0 252M 0% /dev/shm
 
Old 02-08-2004, 12:03 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
well first do you have free unpartitioned space on the drive ?
otherwise your going to need to get an app that will allow you to resize your present partitions, to make room ...

but to do this you will fire up :
fdisk /dev/hdX (where X is replaced of course by you to the proper letter)
after you make the partition, write the table and then :
mkfs -t ext3 /dev/hdX (again replace X, and replace ext3 if you use a different fs)

and then make changes to your fstab to reflect the changes ... it will look something like this ... (remember this is false info, and you'll have to replace the /dev/hdX and fs type if need be)
Code:
/dev/hda8     /tmp        ext3          defaults         1   2
 
Old 02-08-2004, 01:31 PM   #3
mikeshn
Member
 
Registered: Feb 2002
Distribution: Fedora Core 2
Posts: 586

Original Poster
Rep: Reputation: 30
What application can resize the partition?

Quote:
Originally posted by DrOzz
well first do you have free unpartitioned space on the drive ?
otherwise your going to need to get an app that will allow you to resize your present partitions, to make room ...

but to do this you will fire up :
fdisk /dev/hdX (where X is replaced of course by you to the proper letter)
after you make the partition, write the table and then :
mkfs -t ext3 /dev/hdX (again replace X, and replace ext3 if you use a different fs)

and then make changes to your fstab to reflect the changes ... it will look something like this ... (remember this is false info, and you'll have to replace the /dev/hdX and fs type if need be)
Code:
/dev/hda8     /tmp        ext3          defaults         1   2
 
Old 02-08-2004, 03:40 PM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
since i don't know what the fs is on the partition you are resizing, i am just going to suggest to you to do a search on this site, cause I along with many others have gave suggestions. ..
worse comes to worse use google, but you will find the answer on here. ...
i usually just say Partition Magic (which is for windows, but supports linux ext3 fs) just to give an example, but there are others, such as GNU Parted which is of course for linux ..
 
Old 02-08-2004, 03:52 PM   #5
jlturbos
Member
 
Registered: Jun 2002
Location: Pennsylvania
Distribution: Anything and Everything
Posts: 61

Rep: Reputation: 15
Try qtparted and then edit your /etc/fstab to reflect the new partition.

JL
 
Old 02-08-2004, 04:32 PM   #6
mikeshn
Member
 
Registered: Feb 2002
Distribution: Fedora Core 2
Posts: 586

Original Poster
Rep: Reputation: 30
I installed qparted on Fedora. And the program works

I have the following partitions:
[root@localhost root]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 73G 12G 58G 17% /
/dev/hda1 99M 6.3M 88M 7% /boot
none 252M 0 252M 0% /dev/shm


Before I can resize the partition I have to unmount. When I try to do so, I get the following message:

[root@localhost root]# umount /dev/hda2
umount: /: device is busy

Any idea how I can unmount the partition?
 
Old 02-08-2004, 05:37 PM   #7
colnago
Member
 
Registered: Nov 2003
Location: Canada
Distribution: ArchLinux
Posts: 324

Rep: Reputation: 30
The problem being umount-ing / when you are using a bunch of stuff from there. If you don't have one already, get a linux boot cd like knoppix or pclinuxos and then you can do partition stuff like this w/o having to worry about the os on the hard drive.

If you ever screw up your boot loader or fstab, one of these cd based distributions is great to have as well.
 
Old 02-08-2004, 08:31 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,971

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
df only displays information on mounted partitions. You also have a swap partition which is not displayed with the df command.

To see all of your partitions log in as root
fdisk -l /dev/hda

You can also you the 1st CD and boot to rescue mode.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using partition magic to create Linux partition then install EviLBoX Linux - General 5 09-12-2008 05:01 AM
How to resize a partition and create/mount a new partition? Maarten_Holland Linux - Newbie 1 04-20-2005 08:56 AM
Trying to create a partition help embassy Linux - Software 3 12-08-2004 07:03 PM
create new partition vande Linux - Newbie 1 10-13-2004 11:35 PM
How do I create new partition? akilhoffer Linux - Newbie 5 08-31-2004 02:55 PM


All times are GMT -5. The time now is 08:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration