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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
12-07-2009, 01:32 AM
|
#1
|
LQ Newbie
Registered: Oct 2009
Posts: 24
Rep:
|
expert mode in fdisk
i want to know what the following means in fdisk expert command
Expert command (m for help): m
Command action
b move beginning of data in a partition
c change number of cylinders
d print the raw data in the partition table
e list extended partitions
f fix partition order
g create an IRIX (SGI) partition table
h change number of heads
m print this menu
p print the partition table
q quit without saving changes
r return to main menu
s change number of sectors/track
v verify the partition table
w write table to disk and exit
here "c" is to change the cylinders what does it mean.
Number of cylinders (1-1048576, default 4865):
i changed the number of cylinder from 4865 which was default to 5000 and then by "w" i complete the process but after restart the cylinder was default i.e 4865.\
My question is why :-
the cylinder number is (1- 1048576 , default 4865) what does it mean.
why the cylinder no is between 1-1048576.
for rest i'm working on it....
Last edited by kaushalsingh; 12-07-2009 at 01:34 AM.
|
|
|
12-07-2009, 03:39 AM
|
#2
|
Senior Member
Registered: May 2007
Posts: 1,007
Rep: 
|
fdisk
Why jump in the 'expert' section? fdisk is challenging and potentially damaging without that!
'm' is repeated as help and sort of print so far, confusing, yes but you have to work though the weird logic till it makes sense. I suggest you look on the net for linguistic work thoughs that make more sense than man pages.
Fred.
|
|
|
12-07-2009, 08:32 AM
|
#3
|
Member
Registered: Sep 2009
Posts: 110
Rep:
|
The OpenBSD install instructions have a good (though very technical) tutor about disks and stuff like cylinders - give it a read! See http://openbsd.org/faq/faq4.html
|
|
|
12-07-2009, 09:26 AM
|
#4
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
It's not the "cylinder number"---it is the number of cylinders.
There was once an archaic way of addressing drives---called "CHS" (for "Cylinder, Head, Sector") At one time I think there was physical basis, but now it's just units fed into the SW.
Look at the units in "fdisk -l". Can you imagine that certain values for the number of cylinders might not be allowed?
What problem are you trying to solve? Why do you need to change this parameter?
Note: changing things like this on a formatted disk with data might have unhappy results.......
|
|
|
12-07-2009, 02:34 PM
|
#5
|
LQ Newbie
Registered: Oct 2009
Posts: 24
Original Poster
Rep:
|
Quote:
Originally Posted by pixellany
It's not the "cylinder number"---it is the number of cylinders.
There was once an archaic way of addressing drives---called "CHS" (for "Cylinder, Head, Sector") At one time I think there was physical basis, but now it's just units fed into the SW.
Look at the units in "fdisk -l". Can you imagine that certain values for the number of cylinders might not be allowed?
What problem are you trying to solve? Why do you need to change this parameter?
Note: changing things like this on a formatted disk with data might have unhappy results.......
|
yeah i did the format of disk due to the expert option but i just want to learn it.
and sorry for that its the "number of cylinders".
In my previous thread of "fdisk -l" you told that the number of cylinder is "4865" its default .....it means the number of cylinders present in disk is "4865" ..... so what's the basic need of this command ........
till i know about that i changed the number of cylinder from "4865" to "5000" then it changed and after restart the cylinder changed to "4865"..
so i want to know what is the basic need of this command ......hope you understand what i want to ask...
and one most important question in which file the entry of hard disk is done .....
|
|
|
12-07-2009, 02:47 PM
|
#6
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
Sorry, but I still don't understand why you are concerned with changing the number of cylinders---just simple curiousity?. I do not know the answer, and the way I would approach is to simply try some experiments. I don't have a computer at the moment where I would risk this.
Quote:
and one most important question in which file the entry of hard disk is done .....
|
I don't understand.
|
|
|
12-07-2009, 05:06 PM
|
#7
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,434
|
|
|
|
12-08-2009, 12:49 AM
|
#8
|
LQ Newbie
Registered: Oct 2009
Posts: 24
Original Poster
Rep:
|
in which file entry of hard disk is done means if we want to create a new partition then how the system shows that entry where that entry is done in system . In "/etc/fstab" the entries of file system type is done . So like "fstab" where the entry of fdisk's all entries are done.
|
|
|
12-08-2009, 07:23 AM
|
#9
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
Quote:
Originally Posted by kaushalsingh
in which file entry of hard disk is done means if we want to create a new partition then how the system shows that entry where that entry is done in system .
|
Not in a file---in the MBR.
See the link supplied by chrism01
|
|
|
12-25-2009, 02:24 AM
|
#10
|
LQ Newbie
Registered: Oct 2009
Posts: 24
Original Poster
Rep:
|
Quote:
Originally Posted by pixellany
Not in a file---in the MBR.
See the link supplied by chrism01
|
sorry for the new thread but no one was able to understand what i'm asking so i started new thread .
and as mentioned in the diffrent thread i write the changes after changing the number of cylinders and it changed but after restart the cylinder came to default .
so i just want to know how to change no. of cylinders in expert option of "fdisk" command . and if it does not change then what is the use of these options ..
please don't send the link of "mbr or cylinder head sector" .
i know that and i studied all the options of fdisk only problem is with the expert options .
hope u understand what i want to ask ..
and one more question :-
if we run the command "fdisk -l"
then on some blocks the "+" is present ...
how can we create the "+" on all the partitions and if we want to remove the "+" then how can we remove it ..
plz don't explain why the "+" is used...
Last edited by kaushalsingh; 12-25-2009 at 02:32 AM.
|
|
|
12-25-2009, 03:24 AM
|
#11
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
|
Yes, Sir!
Quote:
Originally Posted by kaushalsingh
sorry for the new thread but no one was able to understand what i'm asking so i started new thread .
|
Sir. Another possibility is that some were able to understand but you, Sir, did not understand their responses.
Quote:
Originally Posted by kaushalsingh
sorry for the new thread but no one was able to understand what i'm asking so i started new thread .
and as mentioned in the diffrent thread i write the changes after changing the number of cylinders and it changed but after restart the cylinder came to default .
so i just want to know how to change no. of cylinders in expert option of "fdisk" command . and if it does not change then what is the use of these options ..
|
One possibility, Sir, is that the cylinder changing feature of fdisk was once useful and effective but that it is not useful for modern HDDs (for reasons mentioned already). Perhaps fdisk writes cylinder changes to the HDD and the HDD silently (no error message) ignores them -- because they are meaningless and harmless so there's no benefit in making a fuss.
Quote:
Originally Posted by kaushalsingh
please don't send the link of "mbr or cylinder head sector" .
|
No Sir, I have not even thought of posting it.
Quote:
Originally Posted by kaushalsingh
and one more question :-
if we run the command "fdisk -l"
then on some blocks the "+" is present ...
how can we create the "+" on all the partitions and if we want to remove the "+" then how can we remove it ..
|
Do you know what the "+" means, Sir? I don't and it is not in the man page.
Quote:
Originally Posted by kaushalsingh
plz don't explain why the "+" is used...
|
No, Sir. Actually I couldn't because I don't know why it is used -- but I didn't even think of explaining it. No, Sir, I would not do that. Sir.
|
|
|
12-25-2009, 04:36 AM
|
#12
|
LQ Newbie
Registered: May 2009
Location: the zero world
Distribution: F11, U9.04, Gentoo
Posts: 20
Rep:
|
you should dig up all the man pages, materials and references given and try to understand in detail about the following
1. Hard disk - old and new type
2. fdisk
3. MBR
good you are trying to understand and experiment, but your language is complicated... 
|
|
|
12-25-2009, 06:55 AM
|
#13
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
Kaushal*;
I can appreciate your frustration in trying to understand the details of something like disk partitioning. But please be aware that there is a language barrier here, and this will make communications difficult. You might want to consider getting someone to help you with the english.
Another bit of advice: Don't try to tell people not to explain things to you. Most members here will do their very best to address your questions--based on their interpretation of what you are trying to do. If they tell you something that you already know, you are free to ignore it.
For the question on the plus sign (+), Google found this:
http://www.google.com/search?hl=en&c...&aq=f&oq=&aqi=
Searched using ("fdisk plus sign")
|
|
|
12-25-2009, 08:06 AM
|
#14
|
LQ Newbie
Registered: Oct 2009
Posts: 24
Original Poster
Rep:
|
thanks for your response.
plz. suggest why the options like "change cylinder no. , change sectors etc. " are given in expert command .
how it is used ?
i tried a lot to find .
once again thanks for the response .
|
|
|
12-25-2009, 09:50 AM
|
#15
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
Quote:
Originally Posted by kaushalsingh
thanks for your response.
plz. suggest why the options like "change cylinder no. , change sectors etc. " are given in expert command .
how it is used ?
i tried a lot to find .
once again thanks for the response .
|
If you read the various documents that have been suggested, you will see that some of the nomenclature and conventions are simply tradition. The fact is that there is no real reason in modern systems to be changing or using cylinder, head, and sector settings.
To answer your specific question "How is it used?":
For most of us, it's not.......
|
|
|
All times are GMT -5. The time now is 03:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|