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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
[root@benchabane benchabane]# parted /dev/sda print
Model: ATA Hitachi HTS54161 (scsi)
Disk /dev/sda: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 45.7GB 45.7GB primary ntfs
2 45.7GB 46.2GB 524MB primary ext4 boot
3 46.2GB 120GB 73.8GB primary lvm
[benchabane@benchabane ~]$ su
[root@benchabane benchabane]# fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xfaafb49d
Device Boot Start End Blocks Id System
/dev/sda1 63 89257202 44628570 7 HPFS/NTFS
/dev/sda2 * 89257984 90281983 512000 83 Linux
/dev/sda3 90281984 234440703 72079360 8e Linux LVM
BUT grub is using hda nomination in the grub.conf
# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,1)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_benchabane-lv_root
# initrd /initrd-[generic-]version.img
title Fedora (188.8.131.52-45.fc14.i686)
kernel /vmlinuz-184.108.40.206-45.fc14.i686 ro root=/dev/mapper/vg_benchabane-lv_root rd_LVM_LV=vg_benchabane/lv_root rd_LVM_LV=vg_benchabane/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=fr rhgb quiet
title Morad WindowS
I just dont understand why?cause i was trying to add windows to the grub bootloader ,i did it anyway but i don't get this point?
thx in advance
Grub does not use letter to identify drives or partitions. So sda can be (hd0)in Grub, hda can also be (hd0) as indicated above by gd2shoe, it is the first drive detected. The output from commands like fdisk showing sda or hda have little to do with Grub notation. Grub refers to drives with (hd) and count physical drives from zero, partitions from zero in Grub Legacy and partitions from one in Grub2. The only letter you will see in this type of Grub entry will be the (hd...).
Grub does not use letters to identify drives or partitions it uses numbers. So sda can be (hd0)in Grub, hda can also be (hd0) as indicated above by gd2shoe, it is the first drive detected. The output from commands like fdisk showing sda or hda will not necessarily correspond to Grub notation. Grub refers to drives with (hd) and counts physical drives from zero, partitions from zero in Grub Legacy and partitions from one in Grub2. The only letters you will see in this type of Grub entry will be the (hd...).