LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-26-2002, 03:07 PM   #1
mrburrito00
LQ Newbie
 
Registered: Sep 2002
Posts: 2

Rep: Reputation: 0
format part of disk/repartition?


hi,

when i installed redhat on this box, i was told to only format part of the 120GB drive that i had with the understanding that i could format the rest and repartition later. looking back now, i should have just formatted the entire thing. i was wondering if anyone could help me format the unformatted sections of my drive and then partition it.

here is what sfdisk -l produces:

Disk /dev/hdc: 232581 cylinders, 16 heads, 63 sectors/track
Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hdc1 * 0+ 101 102- 51376+ 83 Linux
/dev/hdc2 102 15339 15238 7679952 83 Linux
/dev/hdc3 15340 19402 4063 2047752 83 Linux
/dev/hdc4 19403 232580 213178 107441712 f Win95 Ext'd (LBA)
/dev/hdc5 19403+ 23466 4064- 2048224+ 83 Linux
/dev/hdc6 23467+ 26514 3048- 1536160+ 83 Linux
/dev/hdc7 26515+ 28038 1524- 768064+ 83 Linux
/dev/hdc8 28039+ 29078 1040- 524128+ 82 Linux swap

can someone point me in the right direction? thanks in advance!
 
Old 09-26-2002, 03:56 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
First you need to create partitions. You format them, when they're created.
To create a partition you can use fdisk or any other, similar utility coming with your distro. When a partition is created use
mkfs -t ext2 /dev/hdc9
Note that it's a good idea to check 3 times if the partition you have in mkfs command line is the one you'd like to format!
 
Old 09-27-2002, 04:12 PM   #3
mrburrito00
LQ Newbie
 
Registered: Sep 2002
Posts: 2

Original Poster
Rep: Reputation: 0
cool - thanks for the help.

i have one more question. i need to "add" to the size of my /tmp dir. i heard that i cant really add to to the size of that partition w/o something like partition magic, but that i should create a new partition and then mount it as tmp?

so do i just create a new partition. umount the old one and mount it as /tmp2 or something. then format and mount the new partition as /tmp and then copy any/all files from /tmp2 to /tmp?

thanks again
 
Old 09-28-2002, 01:26 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You've got 2 options:
1) You can resize your current /tmp using parted. It's easier when after the /tmp partition there's free space or a partition you'd like to make smaller.
2) You can create a new partition, mount it somewhere, format it, copy all the data and change /tmp entry in fstab to point to the new partition. After reboot new /tmp will be used and you can do everything with the new one (for example add its space to your /home partition if you wish).
 
  


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
Hard Disk rePartition fieldyweb Linux - Newbie 13 11-15-2005 05:42 AM
repartition and/or format. is there a quick way? Dasc Debian 1 11-14-2005 07:59 PM
Hopfuly right part (Disk Partion) GLDarkKnight Linux - Software 2 10-06-2005 02:11 PM
How to make more than one SCSI disk part of the same partition??? MArgRes Linux - Hardware 3 09-10-2003 09:44 PM
Use part of hard disk as backup device? doris Linux - General 2 06-01-2001 08:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:03 AM.

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