LinuxQuestions.org
Review your favorite Linux distribution.
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 11-20-2009, 01:39 AM   #1
kaushalsingh
LQ Newbie
 
Registered: Oct 2009
Posts: 24

Rep: Reputation: 15
fdisk command


hi,
in fdisk -l command the output is

[root@localhost singh]# fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xecd5ecd5

Device Boot Start End Blocks Id System
/dev/sda1 * 1 6374 51199123+ 7 HPFS/NTFS
/dev/sda2 6375 38912 261361485 f W95 Ext'd (LBA)
/dev/sda5 6375 16573 81923436 7 HPFS/NTFS
/dev/sda6 16574 26772 81923436 7 HPFS/NTFS
/dev/sda7 26773 36971 81923436 7 HPFS/NTFS
/dev/sda8 36972 38912 15591051 83 Linux



now if i want to delete the partition of "/dev/sda5" and again create the partition then it will become "/dev/sda9" . I want that after deleting the partition and again creating it of same size i want to give it the same number i.e if /dev/sda5 is deleted then again creating it how we can get the option to make it /dev/sda5..

If no such command is there then suggest me about it and where i can make change so that it can be made possible.
 
Old 11-20-2009, 03:12 AM   #2
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Delete and re-create it with the same size and device ID?

Why do you want to delete it then? Just modify its partition type to your needs (without deleting), and create the required file system on it.
 
  


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
Fdisk command not working aggiedvm Linux - Newbie 3 12-24-2007 09:27 PM
About fdisk command satimis Linux - Software 5 04-05-2006 11:29 AM
fdisk command not found? tiang_ono Linux - Newbie 7 05-17-2004 10:48 PM
fdisk command thefetus Linux - Newbie 5 11-19-2003 02:15 PM
fdisk not a command? toob Linux - Newbie 11 04-26-2003 10:56 PM

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

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