![]() |
how to know my linux partition?
Hi,
my have 2 os on my pc, XP and RHlinux, XP has 3 partition, C,D,E and the rest is for linux. now i want to update my kernel, meet some question, one is to decide which the root partition use on my linux, /dev/hdaX I really don't know how to figure out my linux partition, i use hardware browse, but it seems no use for me, it shows that i have hda2--hda9, which hda5-hda6 is fat32(i know for win), hda7-8 are ext3 and hda9 is linux-swap how can i know which is my root partition? Does anybody be so kind to tell me?:confused: thx in advance!! |
Issue "df -h" without the quotes...
It will look something like this Code:
bash-2.05b$ df -h |
Re: how to know my linux partition?
[QUOTE]Originally posted by morrisset
Hi, my have 2 os on my pc, XP and RHlinux, XP has 3 partition, C,D,E and the rest is for linux. afaik you can have 4 primary partitions hda1-hda4 are reserved for primary partitions i assume you have only one primary and winxp is installed on it that is hda 1 or C: under windows other partitions are logical partitions inside the extended partition. hda5 is for extended partition so on hda6 is first logical partition which is win D, hda7 win E your first linux partition should be hda8 and so on (if you have few linux partitions....). should be, but doesn't have to be. Your first logical partition could be linux one. I assumed wrong you have two primary partitions hda1 & hda 2 (C & D) extended partition hda5 logical part hda6 (fat32(E)) logical part hda7 (ext2) - probably /boot logical part hda8 (ext2) - probably / (root) logical part hda9 (swap) you can also just type mount and you will see which hd partition is mounted as what : deda:~ # mount /dev/hda2 on / type reiserfs (rw) root proc on /proc type proc (rw) devpts on /dev/pts type devpts (rw,mode=0620,gid=5) /dev/hda1 on /boot type ext2 (rw) tmpfs on /dev/shm type tmpfs (rw) usbdevfs on /proc/bus/usb type usbdevfs (rw) |
.
|
Re: Re: how to know my linux partition?
Quote:
To make your output easier to read, you can either use the Code button in the Post Reply window and paste your output there, or put [_code_] without the underscores before it, and [_/code_] without the underscores after it, so it looks like this: Code:
bash-2.05b$ mount |
Chinaman
I have 6Gb HD for debian, any proposals how to distribute that space among /usr /home /var /tmp & / partitions. Minimal values or sometin. should run samba,ssh,KDE, and be used as home internet gateway tnx |
Code:
Thanks for the code thing :-) |
Quote:
I like a separate /tmp in case some log gets out of hand, without /tmp being in / then it can't make my system inoperable. Depending upon your needs, 512MB could be plenty - or way too much. As for the other ones, look at how much space you're now using for each of them, and plan accordingly. It it helps to look at mine, the ones in the coded part of the df -h post are with a full install of Slack 10.0. When you separate them from / especially /usr where most of the apps are located, you can keep that / partition smaller. And with a /home partition for any files you're saving, that is the one that grows the most. Since you're running Debian, I would suggest that you go to the website of Markus Welsch who IMO is a real Debian and security guru... You're welcome for the code thing. Look at others and try them by using the Preview Reply button. |
thx for you help!
here is my linux information, but i can't understand it, could someone help me? this is my partiton table Quote:
Quote:
|
Quote:
Quote:
|
You didn't issue "df -h" or "mount" but instead did "fdisk -l" and "cat /etc/fstab"
If you want help, you should follow the advice given. ;-} |
No, that is your boot partition, which is why it says /boot
Code:
/dev/hda8 23G 3.7G 18G 17% / <-- this is your root partition |
No, that's your /boot partition. (It makes sence having /boot as a sep logical volume only if your computer can boot from it. )
The root partition is /dev/hda8 |
Re: how to know my linux partition?
Quote:
i don't know exactly what that is , core of OS i suppose ;-) i look at it like installing new service pack on windows but much more complicated :scratch: windows helped me to not understand things & to feel stupid isn't so bad to feel that way, cant beat the feeling yet, resistance is futile. :cry: China tnx for links & tips & tricks |
scatterhead:
I couldn't agree you more,but now,I meet a big trouble Say, my RH is 2.40 and i wanna update to 2.6.7 to make the soundcard work. for a newbie, I search for many others experience and try, after I finish compile, and reboot it, i meet kernel panic, which is the problem a mentioned before. so I try to modify grub.conf and fstab, but....2.6.7 i couldn't get in still kernel panic, now 2.40 either :cry: I only can get in a repair filesystem(maybe) and its a read-only system, i can't change the fstab at all!!! please, if you know the solution, please let me know! thx for readable, i post my linux information under this thread. |
All times are GMT -5. The time now is 01:39 PM. |