Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Weird Problem - /boot has become / !
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
arthurdent
n00b
n00b


Joined: 19 Feb 2005
Posts: 24

PostPosted: Sat Apr 16, 2005 7:45 pm    Post subject: Weird Problem - /boot has become / ! Reply with quote

Hello all,

My "/boot" directory has somehow become my "/" directory! (or vice versa)

I have been doing quite a lot of tinkering recently so I don't know what caused this problem or when it happened. It became apparant when, having emerged world and got a brand new shiny 2.6.11-gentoo-r6 kernel I decided to compile it. That all went fine. My grub.conf file just points to /boot/vmlinux (with an optional entry for /boot/vmlinux.old in case I need to use the old kernel).So having booted into what I thought was my new kernel I did a "uname -a" and found to my surprise that I was still in the old (r5) kernel.

When I looked into /boot I found that the new vmlinux was there, as was the usual system map and config stuff, but SO WAS mnt etc dev proc usr var AND boot as well as all the other usual / directories. In other words I was not looking at "/boot" but at "/" ! I did a "cd /" and "ls -la" and a "cd /boot" and "ls -la" just to check and indeed the listings were the same!

My old vmlinux files now appear to reside in /boot/boot.

The most significant bit of tinkering I have done recently is to install "ivman" to get my USB stick automounted (see this thread).

What on earth is going on and how do I fix it?

Any suggestions gratefully received.


Many thanks

Mark
Back to top
View user's profile Send private message
Piot
n00b
n00b


Joined: 06 Apr 2005
Posts: 30
Location: Netherlands

PostPosted: Sat Apr 16, 2005 7:58 pm    Post subject: Reply with quote

Can you post your fstab file and the output of fdisk -l.
_________________
"And I will strike down upon thee with great vengeance and furious anger those who attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon you." ~ Ezechiel 25:17
Back to top
View user's profile Send private message
arthurdent
n00b
n00b


Joined: 19 Feb 2005
Posts: 24

PostPosted: Sat Apr 16, 2005 9:24 pm    Post subject: Reply with quote

Code:
# fdisk -l

Disk /dev/hda: 20.4 GB, 20490559488 bytes
255 heads, 63 sectors/track, 2491 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        2231    17920476    c  W95 FAT32 (LBA)
/dev/hda2            2232        2491     2088450    f  W95 Ext'd (LBA)
/dev/hda5            2232        2491     2088418+   b  W95 FAT32

Disk /dev/hdb: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1        5222    41945683+   c  W95 FAT32 (LBA)
/dev/hdb2            5223        7833    20972857+  83  Linux
/dev/hdb3            7834       24792   136223167+   5  Extended
/dev/hdb5            7834        7907      594373+  82  Linux swap / Solaris
/dev/hdb6            7908       10340    19543041   83  Linux
/dev/hdb7           10341       12773    19543041   83  Linux
/dev/hdb8           12774       13990     9775521   83  Linux
/dev/hdb9           13991       15207     9775521   83  Linux
/dev/hdb10          15208       16424     9775521   83  Linux
/dev/hdb11          16425       17641     9775521   83  Linux
/dev/hdb12          17642       20074    19543041   83  Linux
/dev/hdb13          20075       22507    19543041   83  Linux
/dev/hdb14          22508       24792    18354231   83  Linux


Code:
# <fs>             <mountpoint>    <type>     <opts>            <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hdb8      /boot      reiserfs   noauto,noatime,notail   0 0
/dev/hdb8      /      reiserfs   noatime,notail      1 1
/dev/hdb5      none      swap      sw         0 0
/dev/hdb2      /home      ext3      defaults      0 0
/dev/cdroms/cdrom0   /mnt/cdrom   iso9660      noauto,ro      0 0
/dev/fd0      /mnt/floppy   auto      noauto         0 0
/dev/hda1      /mnt/msdos   vfat       users,rw,uid=john   0 2
/dev/hda5      /mnt/dos2   vfat      users,rw,uid=john    0 2
/dev/hdb1      /mnt/newdisk   vfat      users,rw,uid=john    0 2
/dev/hdb6      /mnt/fedora   ext3      defaults      0 0
none         /proc/bus/usb   usbfs      defaults      0 0

# NOTE: The next line is critical for boot!
none         /proc      proc      defaults      0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none         /dev/shm   tmpfs      defaults      0 0

/dev/hdd                /media/cdrecorder       auto    exec,user,noauto,managed 0 0


Any clues?

Thanks for helping...

Mark
Back to top
View user's profile Send private message
Lucky B
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 235
Location: Florida

PostPosted: Sun Apr 17, 2005 10:53 am    Post subject: Reply with quote

Quote:
Code:
/dev/hdb8      /boot      reiserfs   noauto,noatime,notail   0 0
/dev/hdb8      /      reiserfs   noatime,notail      1 1


Tell me you see that =P
Back to top
View user's profile Send private message
arthurdent
n00b
n00b


Joined: 19 Feb 2005
Posts: 24

PostPosted: Sun Apr 17, 2005 3:56 pm    Post subject: Reply with quote

Quote:
Tell me you see that =P


Errrr, sorry but I'm afraid I don't.

a) The fstab file is a bit of a black art as far as I'm concerned, and
b) It hasn't changed since I set it up a few months ago - it has worked up until now.

Please tell me what it should be.

Thanks for your help...
Back to top
View user's profile Send private message
hinken
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2004
Posts: 109

PostPosted: Sun Apr 17, 2005 5:14 pm    Post subject: Reply with quote

Lucky B wrote:
Quote:
Code:
/dev/hdb8      /boot      reiserfs   noauto,noatime,notail   0 0
/dev/hdb8      /      reiserfs   noatime,notail      1 1


Tell me you see that =P


You are mounting the same partition to two different places ("/" and "/boot").
You can(should) only mount one partition to one place.
Is /dev/hda8 the root or the boot?
Back to top
View user's profile Send private message
arthurdent
n00b
n00b


Joined: 19 Feb 2005
Posts: 24

PostPosted: Sun Apr 17, 2005 5:30 pm    Post subject: Reply with quote

Doh! Now I get it (I think).

I don't have a seperate /boot partition. /boot is simply a directory on /
I guess that means that I should hust have the / entry - is that right?

Thanks

Mark

Edit : Yup - done that it works. Thanks guys!
I am just a little confused as to why it should suddenly start playing up when it had never been a problem before. Anyhow - all OK now.

Thanks again.
Back to top
View user's profile Send private message
Lucky B
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 235
Location: Florida

PostPosted: Sun Apr 17, 2005 6:38 pm    Post subject: Reply with quote

arthurdent wrote:

I am just a little confused as to why it should suddenly start playing up when it had never been a problem before. Anyhow - all OK now.

Thanks again.


Because /boot is noauto, so it was only mounted when you installed the new kernel.

The mounting the same partition in two places is analogous to creating a hardlink.

But I thought mount is supposed to complain when you try to mount a partition twice, shows how much I know.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum