LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-06-2006, 01:40 PM   #1
jaz2003
LQ Newbie
 
Registered: Aug 2006
Posts: 4

Rep: Reputation: 0
Smile /boot partition problem


Hi;
I installed SUSE Linux 10.1 and noticed the following after entering the "df" command:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 2755044 2443272 311772 89% /
udev 242152 140 242012 1% /dev
/dev/hda3 13638744 716768 12921976 6% /home

I cannot see the /dev/hda2 mounted on /boot, but /boot is inside /dev/hda2. How can I fix this problem?.

Thank you
Joe

Last edited by jaz2003; 08-06-2006 at 01:41 PM.
 
Old 08-06-2006, 02:00 PM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
I guess I don't understand the problem. df just shows how much of each partition is being used, and where it is mounted. If you are trying to see how much space is being used by /boot, then try this:

Code:
du -s /boot
Regards,

Alunduil
 
Old 08-06-2006, 02:21 PM   #3
Ehwaz
Member
 
Registered: Aug 2006
Distribution: FC, Mandriva, Suse
Posts: 52

Rep: Reputation: 15
Seems like /boot is just residing under the / (/dev/hda2) partition.
 
Old 08-06-2006, 02:24 PM   #4
jaz2003
LQ Newbie
 
Registered: Aug 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Smile /boot problem

Hi Alunduil;

I guess I did not explained myself right, I just used "df" to see where is my /dev/hda2 mounted and my problem is that the /dev/hda2 is not mounted in the /boot.

How can I mount /dev/hda2 on /boot?

P.S: Yes, /boot is residing under /dev/hda2???

Thank you
Joe

Last edited by jaz2003; 08-06-2006 at 02:31 PM.
 
Old 08-06-2006, 02:33 PM   #5
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
First, you should make sure that you know that /dev/hda2 is only the information necessary for /boot, and that you know where your root partition (/) is located.

Once you know this, you just edit the corresponding entries in your /etc/fstab file, and point them to the correct location. I'm including mine for your _reference_, and if you have questions post back.

Code:
/dev/hda1               /boot           ext3            noauto,noatime        1 2
/dev/hda2               none            swap            sw                    0 0
/dev/hda3               /               ext3            noatime               0 1
/dev/hda5               /usr            ext3            noatime               0 1
/dev/hda6               /usr/local      ext3            noatime               0 1
/dev/hda7               /var            ext3            noatime               0 1
/dev/hda8               /home           ext3            noatime               0 1
/dev/hdc                /mnt/cdrom      auto            noauto,user,ro        0 0
/dev/fd0                /mnt/floppy     auto            noauto,user           0 0
/dev/usb/pendrive       /mnt/usbdisk    auto            noauto,user           0 0

proc                    /proc           proc            defaults              0 0

shm                     /dev/shm        tmpfs           nodev,nosuid,noexec   0 0
Regards,

Alunduil
 
Old 08-06-2006, 03:22 PM   #6
jaz2003
LQ Newbie
 
Registered: Aug 2006
Posts: 4

Original Poster
Rep: Reputation: 0
/boot problems

Alunduil;
Below is my information from the fstub, as you can see I only have three partitions, How can create one for the /boot?

Thank you
Joe


/dev/hda2 / reiserfs acl,user_xattr 1 1
/dev/hda3 /home reiserfs acl,user_xattr 1 2
/dev/hda1 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0
 
Old 08-06-2006, 03:35 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
First, why do you need a separate /boot partition? If your system is working OK, then leave it alone.

To create a new partition: fdisk in a terminal, or something with a GUI like Gparted. (This is a nice thing to have--comes on a bootable CD)

If you do not have empty space on the drive , then you will need to re-size one of your other partitions. Gparted does this.

After making a /boot partition, you will need to copy the files from the existing /boot, and then make an entry in /etc/fstab for /boot
 
Old 08-06-2006, 03:42 PM   #8
jaz2003
LQ Newbie
 
Registered: Aug 2006
Posts: 4

Original Poster
Rep: Reputation: 0
/boot problems

Hi Alunduil;
Thanks for the tips and info, here is the story:

The reason I need this partition is becuase I have Windows XP and SUSE Linux in another drive, so I am following a procedure that allows me to do a dual-boot and it requires me to have /dev/hda2 to be mounted on /boot.

Should I follow your suggestion below?

Thanks
Joe
 
Old 08-06-2006, 03:45 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Dual-boot does not require /boot on a separate partition.

What does this refer to??
Quote:
Should I follow your suggestion below?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition problem with dual boot system senseney Linux - Laptop and Netbook 3 01-19-2006 04:51 PM
problem with Microsoft updates after dual boot partition maparus Linux - Newbie 4 11-22-2005 09:50 PM
dual boot partition problem blizunt7 Fedora 6 09-20-2005 12:42 AM
partition boot record problem cs-cam Linux - General 3 12-13-2004 11:34 AM
Problem after formatting boot partition daniel_lidstrom Mandriva 2 12-06-2004 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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