LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-14-2011, 02:10 PM   #1
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 468

Rep: Reputation: 30
Cant see the partitions


Hi Guys,

Im new to Gentoo I just installed it in my virtualbox,

Im just wondering why df is not showing my partitions as in fstab:



Quote:
GEN ~ # df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 7.3G 2.7G 4.3G 39% /
/dev/root 7.3G 2.7G 4.3G 39% /
rc-svcdir 1.0M 40K 984K 4% /lib/rc/init.d
udev 10M 172K 9.9M 2% /dev
shm 122M 0 122M 0% /dev/shm
GEN ~ # cat /etc/fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

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

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda3 / ext3 noatime 0 1
/dev/sda2 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0
GEN ~ #
 
Old 11-14-2011, 02:17 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,831

Rep: Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116
it is. the only conventional filesystem you have is /dev/sda3, which is mounted at /.
 
Old 11-14-2011, 03:03 PM   #3
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 468

Original Poster
Rep: Reputation: 30
How come its not it has different path? and where is my /boot?... is this just part of the gentoo design?
 
Old 11-14-2011, 03:18 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,831

Rep: Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116
/boot has no need to be mounted. it is never used as part of the running operating system. It should only be mounted if you wish to make changes to the bootloader config etc.
 
Old 11-14-2011, 05:16 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 10,448

Rep: Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622
Hmmm - I beg to differ.
I am constantly referring to the kernel config, even on non-gentoo systems.

Been a while since I built a gentoo, but I might also expect /boot to be mounted in that scenario. A trip through dmesg might be in order.
 
Old 11-15-2011, 01:48 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,831

Rep: Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116
Well there are always exceptions to any rule.
 
Old 11-15-2011, 06:12 AM   #7
segmentation_fault
Member
 
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 131

Rep: Reputation: 25
Quote:
/dev/sda1 /boot ext2 noauto,noatime 1 2
I think this is why your /boot is not mounted.
If you type
Code:
$ sudo mount /boot
it should be mounted.
If you want it automounted at every boot, remove the noauto option.
 
Old 11-15-2011, 04:20 PM   #8
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 468

Original Poster
Rep: Reputation: 30
Hi Fault,

I did change it to defaults but still same ouput from df.

Is that ok for gentoo?
 
Old 11-15-2011, 04:33 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,831

Rep: Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116
you are not meant to mount /boot by default according to Gentoo's best practises, that's *exactly* why "noauto" was in there in the first place. You are free to change it if you want, but when did you last need to change it? By not mounting it, you're reducing the chance of anything going wrong with that filesystem which could cause boot issues.
 
Old 11-16-2011, 12:05 AM   #10
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,905

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
If you want it to be mounted, modify your fstab accordingly and reboot.

If all you need from /boot is your config, please, enable the relevant option in your kernel build and pick it from /proc/config.gz instead.
 
Old 11-16-2011, 06:16 AM   #11
segmentation_fault
Member
 
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 131

Rep: Reputation: 25
Quote:
Originally Posted by SBN View Post
Hi Fault,

I did change it to defaults but still same ouput from df.

Is that ok for gentoo?
Did you reboot after the change? If you did and it's still not automounted, then I think there is a problem.
However, as mentioned, you should mount /boot only if you need to messup with your boot loader (eg install a new kernel).
 
Old 11-19-2011, 06:20 PM   #12
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 468

Original Poster
Rep: Reputation: 30
Yup after reboot it is still not mounted, but that ok now. However my root partition is showing /dev/root and not the one in the fstab like the other linux distro?
 
Old 11-20-2011, 02:11 AM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,831

Rep: Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116
you have no problems. Everything is fine. just use your system.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is it safe to resize my Slackware partitions after removing my Mint 10 partitions? Robert.Thompson Slackware 19 02-18-2011 11:47 AM
Change primary partitions to logical partitions AND migrate their data? chickenlinux Linux - Hardware 10 04-04-2010 04:31 PM
windows killed my partitions! no linux partitions found on this computer. The MJ Linux - Software 10 01-05-2007 08:31 AM
Question on creating more partitions than default ones, i.e. /home,/root partitions casmac Suse/Novell 1 12-20-2006 05:02 PM
how do I add partitions to drives that have Logical Volume (LVM) partitions? The MJ Linux - Software 5 08-17-2006 06:15 PM


All times are GMT -5. The time now is 07:32 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration