LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-09-2004, 11:37 AM   #1
spchehe
LQ Newbie
 
Registered: Jul 2003
Posts: 26

Rep: Reputation: 15
Is this normal for fstab?


Hello

I'm running on dual boot, redhat and windows, and I want to remove my windows xp completely and incorporate the freespace to linux. But after checking fdisk -l and less /etc/fstab, it gives the following:

Disk /dev/hda: 30.0 GB, 30020272128 bytes
255 heads, 63 sectors/track, 3649 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 2362 18972733+ c Win95 FAT32 (LBA)
/dev/hda2 2363 3585 9823747+ 83 Linux
/dev/hda3 3586 3649 514080 82 Linux swap

and,

LABEL=LINUX / ext2 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0

Isn't the "LABEL=LINUX" part should be /dev/hda2? Also the less lilo.conf.anaconda gives:

prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
lba32

image=/boot/vmlinuz-2.4.20-8
label=linux
initrd=/boot/initrd-2.4.20-8.img
read-only
append="root=LABEL=LINUX"

other=/dev/hda1
optional
label=DOS

and the root should be /dev/hda2 as well? Can anyone tell me how to change them back to /dev/hda2, the normal state?

Thank you very much
 
Old 05-09-2004, 12:02 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Nothing is wrong. Partitions can be labled and referenced as such in fstab. See manpages for tune2fs for details. Since you are writing lilo to the MBR it is referenced as /dev/hda so again all is well.

If you want to resize hda2 you will need to use parted http://www.gnu.org/software/parted/parted.html.

You will need to boot from the install CD and select rescue mode. You will need to unmount the root filesystems which would be at /mnt/sysimage. Be sure to backup any important data. Other options would be to change the partition ID to linux, format copy data to use as either your /home or /var as an example.

Last edited by michaelk; 05-09-2004 at 12:04 PM.
 
  


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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 05:54 AM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 05:55 PM
Is this normal? Daliz Linux - Newbie 2 02-10-2004 11:29 AM
FSTAB entry for normal user to access windows partition rmanocha Linux - Software 4 01-29-2004 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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