Linux - NewbieThis 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.
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.
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?
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)
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)
Thanks for the mention of the command "mount" - I didn't realize that would give the output.
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
/dev/hdd2 on / type reiserfs (rw)
proc on /proc type proc (rw)
/dev/hdd1 on /boot type reiserfs (rw)
/dev/hdd3 on /usr type reiserfs (rw)
/dev/hdd5 on /home type reiserfs (rw)
/dev/hdd6 on /var type reiserfs (rw)
/dev/hdd7 on /tmp type reiserfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sdb1 on /mnt/sdb1 type vfat (rw,noexec,nosuid,nodev,umask=1000,user=mingdao)
/dev/hda7 on /DATA_FAT32 type vfat (rw,noexec,nosuid,nodev,umask=1000,user=mingdao)
/dev/scd0 on /mnt/cdrw type iso9660 (ro,noexec,nosuid,nodev,unhide,user=mingdao)
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
Originally posted by scatterhead 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
That's not exactly my forte, but these are suggestions:
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.
Last edited by Bruce Hill; 07-09-2004 at 08:20 AM.
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
Originally posted by morrisset
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
you have more than enough to investigate before updating kernel
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
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.