Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Double "/boot" directory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
darkstar44
n00b
n00b


Joined: 05 Oct 2012
Posts: 18
Location: America

PostPosted: Mon Dec 17, 2012 11:21 pm    Post subject: [SOLVED] Double "/boot" directory Reply with quote

I have a problem, on a new install of Gentoo (3.5.7 kernel) i ended up with two /boot directorys.
the OS is working fine and i can emerge everything ok. but i am worried it might lead to trouble later.
or is this normal,this has never happened before and the only thing i did differant this time was
to add (FEATURES="buildpkg userfetch") to my make.conf i noticed this when recompiling the
kernel for video drivers and cp the kernel did not work. i had to cp it to /boot/boot or use rescue cd
and copy with "mc"


Last edited by darkstar44 on Mon Dec 31, 2012 7:42 am; edited 1 time in total
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Mon Dec 17, 2012 11:27 pm    Post subject: Reply with quote

You can't usually have two directories with the same name in the same parent directory. Unless there is some sort of whitespace in the name.

Can you please post the output of the following:

Code:
ls -lb /

_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Mon Dec 17, 2012 11:56 pm    Post subject: Reply with quote

Actually, what you probably noticed was normal. If you ls your boot directory, you should see a symmlink to /boot. This is allows for an infinite chain, so ls /boot/boot/boot/boot/boot/boot/boot should actually work. This is partially so grub can be configured the same way with or without a separate /boot partition.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
darkstar44
n00b
n00b


Joined: 05 Oct 2012
Posts: 18
Location: America

PostPosted: Tue Dec 18, 2012 3:54 am    Post subject: here is my ls -lb / Reply with quote

Code:
Gentoo-2012 / # ls -lb /
total 8904
drwxr-xr-x   2 root root    4096 Dec 16 19:57 bin
drwxr-xr-x   2 root root    4096 Dec 17 08:50 boot
drwxr-xr-x  15 root root    4120 Dec 17 22:41 dev
drwxr-xr-x  40 root root    4096 Dec 17 22:24 etc
drwxr-xr-x   2 root root    4096 Dec 16 20:16 grub
drwxr-xr-x   3 root root    4096 Dec 16 20:50 home
-rw-r--r--   1 root root 4519376 Dec 17 08:19 kernel2
-rw-r--r--   1 root root 4516656 Dec 17 08:47 kernel3
drwxr-xr-x   9 root root    4096 Dec 17 08:06 lib
drwx------   2 root root   16384 Dec 16 14:34 lost+found
drwxr-xr-x   2 root root    4096 Dec 13 00:47 media
drwxr-xr-x   3 root root    4096 Dec 16 20:31 mnt
drwxr-xr-x   2 root root    4096 Dec 13 00:47 opt
dr-xr-xr-x 113 root root       0 Dec 17 22:39 proc
drwx------   6 root root    4096 Dec 17 07:56 root
drwxr-xr-x   4 root root    4096 Dec 13 02:42 run
drwxr-xr-x   2 root root    4096 Dec 16 20:16 sbin
drwxr-xr-x  11 root root       0 Dec 17 22:39 sys
drwxrwxrwt   4 root root    4096 Dec 17 22:20 tmp
drwxr-xr-x  12 root root    4096 Dec 16 16:35 usr
drwxr-xr-x   9 root root    4096 Dec 16 20:05 var
Gentoo-2012 / #


Code tags applied by NeddySeagoon
Back to top
View user's profile Send private message
darkstar44
n00b
n00b


Joined: 05 Oct 2012
Posts: 18
Location: America

PostPosted: Tue Dec 18, 2012 4:12 am    Post subject: something new Reply with quote

This may not be serious. I could not post from my install because my WM is not
installed yet. so i am using the gentoo live-dvd and i found some thing strange

when i do "ls /" from my install system i get this

bin boot dev etc grub home kernel2 kernel3 lib lost+found media mnt opt proc root run sbin sys tmp usr var

but when i do "ls /boot" i get the same output

bin boot dev etc grub home kernel2 kernel3 lib lost+found media mnt opt proc root run sbin sys tmp usr var

when i do those same commands from the live-dvd its normal even if i chroot from the live-dvd

"ls /" from the live-dvd

Gentoo-2012 boot # ls /
bin boot dev etc grub home kernel2 kernel3 lib lost+found media mnt opt proc root run sbin sys tmp usr var

"ls /boot" from the live-dvd

Gentoo-2012 boot # ls /boot
kernel1 kernel2 kernel3

those kernels in the main dir listing are from recompiles following the handbook (thats how i found the problem in the first place)
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Tue Dec 18, 2012 10:27 am    Post subject: Reply with quote

This may not be dead serious, but it sure is strange. So, actually, you have your root tree inside /boot again.

As /boot is clearly a directory (and not a symlink), I'd check for two scenarios: Either you cross-mounted your root directory to /boot or you have copied it there.

To decide, please try creating a file bla.txt in /, then go to /boot and check if it also appears there.

However, I'd guess that, before you chrooted, you have indeed mounted the / filesystem twice: Once to the / and once to /boot. Could you please post the mount -o bind stuff you've entered before chrooting into the new Gentoo environment?
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
darkstar44
n00b
n00b


Joined: 05 Oct 2012
Posts: 18
Location: America

PostPosted: Tue Dec 18, 2012 10:45 am    Post subject: double /boot Reply with quote

You are right "lxg" my / is copied in /boot.
my "chroot" consits of
mount -o bind /proc ./proc
mount -o bind /dev ./dev
mount -o bind /sys ./sys
done from /mnt/gentoo
i will try the bla.txt and let you know
Back to top
View user's profile Send private message
darkstar44
n00b
n00b


Joined: 05 Oct 2012
Posts: 18
Location: America

PostPosted: Tue Dec 18, 2012 11:01 am    Post subject: bla.txt Reply with quote

laptop /
Code:
# ls /
bin      boot  etc   home     kernel3  lost+found  mnt  proc  run   sys  usr
bla.txt  dev   grub  kernel2  lib      media       opt  root  sbin  tmp  var
laptop / #


and here is /boot

laptop /
Code:
# ls /boot
bin      boot  etc   home     kernel3  lost+found  mnt  proc  run   sys  usr
bla.txt  dev   grub  kernel2  lib      media       opt  root  sbin  tmp  var
laptop / #


it does not seem to be causing any problems, except when i recompile the kernel
and copy it to /boot (i have to copy it to /boot/boot for it to work)
it just confused me as i am new to gentoo. and have successfuly installed it
four or five times, and this never happened before.
i partly followed a youtube video called (Gentoo install LVM GPT)
except i did not do the lvm/gpt part. thats the only thing i can think of
that would cause this. thanks for everyones help if nothing else i can always
reinstall and follow the quick install guide (its never let me down) thanks again.

Code tags applied by NeddySeagoon
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Tue Dec 18, 2012 11:34 am    Post subject: Reply with quote

First, can you please wrap shell ouput into code tags, that's much better readable.

The fact that bla.txt appears in both listings proves that / and /boot are the same filesystem.

When I said "mount -o bind stuff", I actually meant "mount /dev/sdxx" stuff, i.e. the part where you mount the partitions into your new system (as per section 4.f of the handbook). Could you post that please?
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Tue Dec 18, 2012 3:56 pm    Post subject: Reply with quote

darkstar44,

Some of your info is confusing. Chroot using:
Code:
mount /dev/sda5 /mnt/gentoo
mount /dev/sda6 /mnt/gentoo/home
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
/usr/sbin/chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="\[\033[1;33m\]chroot to ->\[\033[1;31m\](gentoo) #\[\e[0m\] "

Change /dev/sda5 and /dev/sda6 to reflect your partitions. Then return
Code:
cd / && pwd && ls -l

cd /boot/ && pwd && ls -l

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
darkstar44
n00b
n00b


Joined: 05 Oct 2012
Posts: 18
Location: America

PostPosted: Tue Dec 18, 2012 6:56 pm    Post subject: mount stuff Reply with quote

I think you mean this
i only mount one partition

Code:
mount /dev/sda3 /mnt/gentoo


it took me a while to figure that out (code tags)

I use one partition i used to use a boot partition
but now just one for /
but im trhinking about going back to boot and root.
after this mess.

to BillWho

Code:
dean@laptop / $ cd / && pwd && ls -l
/
total 8904
drwxr-xr-x  2 root root    4096 Dec 18 00:32 bin
-rw-r--r--  1 root root      11 Dec 18 05:48 bla.txt
drwxr-xr-x 21 root root    4096 Dec 18 05:48 boot
drwxr-xr-x 14 root root    3900 Dec 18 12:29 dev
drwxr-xr-x 50 root root    4096 Dec 18 12:29 etc
drwxr-xr-x  2 root root    4096 Dec 16 20:16 grub
drwxr-xr-x  3 root root    4096 Dec 16 20:50 home
-rw-r--r--  1 root root 4519376 Dec 17 08:19 kernel2
-rw-r--r--  1 root root 4516656 Dec 17 08:47 kernel3
drwxr-xr-x  9 root root    4096 Dec 17 08:06 lib
drwx------  2 root root   16384 Dec 16 14:34 lost+found
drwxr-xr-x  2 root root    4096 Dec 13 00:47 media
drwxr-xr-x  4 root root    4096 Dec 18 00:23 mnt
drwxr-xr-x  3 root root    4096 Dec 18 01:11 opt
dr-xr-xr-x 68 root root       0 Dec 18 12:29 proc
drwx------  6 root root    4096 Dec 18 06:10 root
drwxr-xr-x  5 root root     180 Dec 18 12:29 run
drwxr-xr-x  2 root root    4096 Dec 16 20:16 sbin
dr-xr-xr-x 12 root root       0 Dec 18 12:29 sys
drwxrwxrwt  5 root root    4096 Dec 18 12:55 tmp
drwxr-xr-x 12 root root    4096 Dec 16 16:35 usr
drwxr-xr-x  9 root root    4096 Dec 16 20:05 var


Code:
dean@laptop / $ cd /boot/ && pwd && ls -l
/boot
total 8920
drwxr-xr-x  2 root root    4096 Dec 18 00:32 bin
-rw-r--r--  1 root root      11 Dec 18 05:48 bla.txt
drwxr-xr-x  2 root root    4096 Dec 17 08:50 boot
drwxr-xr-x  3 root root    4096 Dec 13 00:47 dev
drwxr-xr-x 50 root root    4096 Dec 18 12:29 etc
drwxr-xr-x  2 root root    4096 Dec 16 20:16 grub
drwxr-xr-x  3 root root    4096 Dec 16 20:50 home
-rw-r--r--  1 root root 4519376 Dec 17 08:19 kernel2
-rw-r--r--  1 root root 4516656 Dec 17 08:47 kernel3
drwxr-xr-x  9 root root    4096 Dec 17 08:06 lib
drwx------  2 root root   16384 Dec 16 14:34 lost+found
drwxr-xr-x  2 root root    4096 Dec 13 00:47 media
drwxr-xr-x  4 root root    4096 Dec 18 00:23 mnt
drwxr-xr-x  3 root root    4096 Dec 18 01:11 opt
drwxr-xr-x  2 root root    4096 Dec 13 00:04 proc
drwx------  6 root root    4096 Dec 18 06:10 root
drwxr-xr-x  4 root root    4096 Dec 13 02:42 run
drwxr-xr-x  2 root root    4096 Dec 16 20:16 sbin
drwxr-xr-x  2 root root    4096 Dec 13 00:47 sys
drwxrwxrwt  5 root root    4096 Dec 18 12:55 tmp
drwxr-xr-x 12 root root    4096 Dec 16 16:35 usr
drwxr-xr-x  9 root root    4096 Dec 16 20:05 var

my chroot for this install
Code:
 mount -o bind /proc ./proc
mount -o bind /dev ./dev
mount -o bind /sys ./sys

chroot command
Code:
 env -i HOME=/root TERM=$TERM chroot . /bin/bash --login


i did a eselect profile on a previous install and nothing worked. after picking desktop
i could login, but no desktop,keyboard, or mouse
so i did'nt do that this time.
Back to top
View user's profile Send private message
darkstar44
n00b
n00b


Joined: 05 Oct 2012
Posts: 18
Location: America

PostPosted: Tue Dec 18, 2012 6:59 pm    Post subject: double /boot Reply with quote

I am going to check my bash history
and or post it here
Back to top
View user's profile Send private message
darkstar44
n00b
n00b


Joined: 05 Oct 2012
Posts: 18
Location: America

PostPosted: Tue Dec 18, 2012 7:25 pm    Post subject: Thanks for your help Reply with quote

Thanks for everyones help.
but i need to reinstall my os.
my boot time currently is 23 seconds
last install following the guide was 08 seconds

I hate leading everyone to no solution but
it takes four hours to do a base install so i need
to determine if thats best (as i have other oblagations tomorrow)

also i remember now that i stoped the install after the kernel emerging
but before the kernel compiling and i could have done something goofy
upon re chrooting anywho thanks for this much i'll try a new install by the guide
and post the results here.

thanks to LXG for the code tag suggestion
it is better
Back to top
View user's profile Send private message
darkstar44
n00b
n00b


Joined: 05 Oct 2012
Posts: 18
Location: America

PostPosted: Thu Dec 20, 2012 1:37 pm    Post subject: its solved Reply with quote

I finaly solved what went wrong.
when i stoped the install and
then restarted later i mounted
my root in the wrong place
(/boot) i just did an install in virtualbox and everythings normal
thanks for everyones help

thats because in virtualbox i had /boot,/root,/swap
this was not the problem (virtualbox is not a good problem solver)
so of course it worked because my partitions matched my fstab (see below)


Last edited by darkstar44 on Mon Dec 31, 2012 7:50 am; edited 1 time in total
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Fri Dec 21, 2012 11:06 am    Post subject: Reply with quote

You're welcome. Please add [SOLVED] to the first post's title. :)
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
darkstar44
n00b
n00b


Joined: 05 Oct 2012
Posts: 18
Location: America

PostPosted: Mon Dec 31, 2012 7:40 am    Post subject: Solved (double /) Reply with quote

I just solved this my problem is that i have gentoo installed on 1 partition /dev/sda3 my fstab,
shows where the two / directorys come from
Code:

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

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda3               /boot           ext3            defaults        1 2
/dev/sda3               /               ext3            defaults        0 1
/dev/sda5               none            swap            sw              0 0
/dev/cdrom              /mnt/cdrom      auto            noauto,ro       0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0

/boot should not be there, or it could be commented out
I googled around and sort of figured this out hope this helps others. :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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