Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Separate /usr on Linux requires initramfs question [SOLVED]
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
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 436
Location: Missouri

PostPosted: Mon Oct 21, 2013 10:06 am    Post subject: Separate /usr on Linux requires initramfs question [SOLVED] Reply with quote

Hi, I apologize if this question annoys anyone, but I am quite confused on this subject. I have neglected my install and haven't updated in a while. When this came up in the news yesterday, I have been trying to search out an answer to this. I don't think I have / and /usr on separate file systems, but I'm not sure. I was hoping someone could tell me exactly what it is I need to do to make my gentoo install happy. I did look at the wiki, but it just confused me further. Here is my fstab just for information purposes:
Code:

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

/dev/sdb1          /boot           ext3    defaults,noatime     1 2
/dev/sdb2          none            swap    sw                   0 0
/dev/sdb3          /               ext3    noatime              0 1
/dev/sr1                                         /mnt/cdrom      auto    noauto$
/dev/sda2          /mnt/windows    ntfs-3g  defaults,rw,user,umask=0 0 0


I would appreciate any and all help I can get.

Thanks!

Todd


Last edited by todd93 on Fri Oct 25, 2013 12:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
anbc
n00b
n00b


Joined: 26 Jul 2013
Posts: 47

PostPosted: Mon Oct 21, 2013 10:19 am    Post subject: Reply with quote

issue the following command in a terminal window to see your mount points

Code:
# mount | column -t


Here is an example of some output
Code:
/dev/sda     on  /                         type  btrfs        (rw,noatime,ssd,space_cache)
proc         on  /proc                     type  proc         (rw,nosuid,nodev,noexec,relatime)
tmpfs        on  /run                      type  tmpfs        (rw,nosuid,nodev,relatime,size=3289304k,mode=755)
sysfs        on  /sys                      type  sysfs        (rw,nosuid,nodev,noexec,relatime)
udev         on  /dev                      type  devtmpfs     (rw,nosuid,relatime,size=10240k,nr_inodes=4111250,mode=755)
cgroup_root  on  /sys/fs/cgroup            type  tmpfs        (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
openrc       on  /sys/fs/cgroup/openrc     type  cgroup       (rw,nosuid,nodev,noexec,relatime,release_agent=/lib64/rc/sh/cgroup-release-agent.sh,name=openrc)
cpuset       on  /sys/fs/cgroup/cpuset     type  cgroup       (rw,nosuid,nodev,noexec,relatime,cpuset)
cpu          on  /sys/fs/cgroup/cpu        type  cgroup       (rw,nosuid,nodev,noexec,relatime,cpu)
cpuacct      on  /sys/fs/cgroup/cpuacct    type  cgroup       (rw,nosuid,nodev,noexec,relatime,cpuacct)
freezer      on  /sys/fs/cgroup/freezer    type  cgroup       (rw,nosuid,nodev,noexec,relatime,freezer)
bfqio        on  /sys/fs/cgroup/bfqio      type  cgroup       (rw,nosuid,nodev,noexec,relatime,bfqio)
mqueue       on  /dev/mqueue               type  mqueue       (rw,nosuid,nodev,noexec,relatime)
devpts       on  /dev/pts                  type  devpts       (rw,nosuid,noexec,relatime,gid=5,mode=620)
shm          on  /dev/shm                  type  tmpfs        (rw,nosuid,nodev,noexec,relatime)
/dev/sdb     on  /home                     type  btrfs        (rw,noatime,subvol=HOME)
tmpfs        on  /tmp                      type  tmpfs        (rw,noatime,nodiratime)
binfmt_misc  on  /proc/sys/fs/binfmt_misc  type  binfmt_misc  (rw,nodev,noexec,nosuid)


You can see that /usr is not explicitly mounted on a separate partition.

If your /usr is not on a separate partition then no changes need to be made to your system (if I have understood your question)
Back to top
View user's profile Send private message
ssuominen
Developer
Developer


Joined: 30 Sep 2005
Posts: 2000
Location: Finland

PostPosted: Mon Oct 21, 2013 11:33 am    Post subject: Reply with quote

anbc wrote:
issue the following command in a terminal window to see your mount points
Code:
# mount | column -t



Nice use of column. Somehow it never occured to me before. Thanks.
Back to top
View user's profile Send private message
anbc
n00b
n00b


Joined: 26 Jul 2013
Posts: 47

PostPosted: Mon Oct 21, 2013 2:47 pm    Post subject: Reply with quote

Quote:
Nice use of column. Somehow it never occured to me before. Thanks.

No prob! I love finding tidbits like this, too.
Back to top
View user's profile Send private message
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 436
Location: Missouri

PostPosted: Tue Oct 22, 2013 9:43 am    Post subject: Reply with quote

anbc wrote:
issue the following command in a terminal window to see your mount points

Code:
# mount | column -t


Here is an example of some output
Code:
/dev/sda     on  /                         type  btrfs        (rw,noatime,ssd,space_cache)
proc         on  /proc                     type  proc         (rw,nosuid,nodev,noexec,relatime)
tmpfs        on  /run                      type  tmpfs        (rw,nosuid,nodev,relatime,size=3289304k,mode=755)
sysfs        on  /sys                      type  sysfs        (rw,nosuid,nodev,noexec,relatime)
udev         on  /dev                      type  devtmpfs     (rw,nosuid,relatime,size=10240k,nr_inodes=4111250,mode=755)
cgroup_root  on  /sys/fs/cgroup            type  tmpfs        (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
openrc       on  /sys/fs/cgroup/openrc     type  cgroup       (rw,nosuid,nodev,noexec,relatime,release_agent=/lib64/rc/sh/cgroup-release-agent.sh,name=openrc)
cpuset       on  /sys/fs/cgroup/cpuset     type  cgroup       (rw,nosuid,nodev,noexec,relatime,cpuset)
cpu          on  /sys/fs/cgroup/cpu        type  cgroup       (rw,nosuid,nodev,noexec,relatime,cpu)
cpuacct      on  /sys/fs/cgroup/cpuacct    type  cgroup       (rw,nosuid,nodev,noexec,relatime,cpuacct)
freezer      on  /sys/fs/cgroup/freezer    type  cgroup       (rw,nosuid,nodev,noexec,relatime,freezer)
bfqio        on  /sys/fs/cgroup/bfqio      type  cgroup       (rw,nosuid,nodev,noexec,relatime,bfqio)
mqueue       on  /dev/mqueue               type  mqueue       (rw,nosuid,nodev,noexec,relatime)
devpts       on  /dev/pts                  type  devpts       (rw,nosuid,noexec,relatime,gid=5,mode=620)
shm          on  /dev/shm                  type  tmpfs        (rw,nosuid,nodev,noexec,relatime)
/dev/sdb     on  /home                     type  btrfs        (rw,noatime,subvol=HOME)
tmpfs        on  /tmp                      type  tmpfs        (rw,noatime,nodiratime)
binfmt_misc  on  /proc/sys/fs/binfmt_misc  type  binfmt_misc  (rw,nodev,noexec,nosuid)


You can see that /usr is not explicitly mounted on a separate partition.

If your /usr is not on a separate partition then no changes need to be made to your system (if I have understood your question)


Thank you so much, this is what I love about Gentoo, the little tricks that you can use to find out what you need! here's the output of mount points:

Code:

# mount | column -t
rootfs       on  /                         type  rootfs       (rw)
/dev/sdb3    on  /                         type  ext3         (rw,noatime,commit=0)
proc         on  /proc                     type  proc         (rw,nosuid,nodev,noexec,relatime)
tmpfs        on  /run                      type  tmpfs        (rw,nosuid,nodev,relatime,mode=755)
udev         on  /dev                      type  devtmpfs     (rw,nosuid,relatime,size=10240k,nr_inodes=490391,mode=755)
devpts       on  /dev/pts                  type  devpts       (rw,nosuid,noexec,relatime,gid=5,mode=620)
shm          on  /dev/shm                  type  tmpfs        (rw,nosuid,nodev,noexec,relatime)
sysfs        on  /sys                      type  sysfs        (rw,nosuid,nodev,noexec,relatime)
debugfs      on  /sys/kernel/debug         type  debugfs      (rw,nosuid,nodev,noexec,relatime)
cgroup_root  on  /sys/fs/cgroup            type  tmpfs        (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
openrc       on  /sys/fs/cgroup/openrc     type  cgroup       (rw,nosuid,nodev,noexec,relatime,release_agent=/lib64/rc/sh/cgroup-release-agent.sh,name=openrc)
cpu          on  /sys/fs/cgroup/cpu        type  cgroup       (rw,nosuid,nodev,noexec,relatime,cpu)
/dev/sdb1    on  /boot                     type  ext3         (rw,noatime,commit=0)
/dev/sda2    on  /mnt/windows              type  fuseblk      (rw,nosuid,nodev,noexec,allow_other,blksize=4096,default_permissions)
binfmt_misc  on  /proc/sys/fs/binfmt_misc  type  binfmt_misc  (rw,nodev,noexec,nosuid)
usbfs        on  /proc/bus/usb             type  usbfs        (rw,noexec,nosuid,devmode=0664,devgid=85)
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1632

PostPosted: Tue Oct 22, 2013 10:41 am    Post subject: Reply with quote

Won't df tell you?

Will
Back to top
View user's profile Send private message
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 436
Location: Missouri

PostPosted: Wed Oct 23, 2013 9:42 am    Post subject: Reply with quote

cwr wrote:
Won't df tell you?

Will


what's df?
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1122

PostPosted: Wed Oct 23, 2013 10:19 am    Post subject: Reply with quote

man 1 df
will tell you if you have
Code:
$ equery b $(which df)
 * Searching for /bin/df ...
sys-apps/coreutils-8.21 (/bin/df)

_________________
fun2gen2
Back to top
View user's profile Send private message
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 436
Location: Missouri

PostPosted: Thu Oct 24, 2013 9:52 am    Post subject: Reply with quote

ulenrich wrote:
man 1 df
will tell you if you have
Code:
$ equery b $(which df)
 * Searching for /bin/df ...
sys-apps/coreutils-8.21 (/bin/df)


oh, okay, gotcha, and yes it does, thank you!

Code:

 # df
Filesystem     1K-blocks      Used Available Use% Mounted on
rootfs         960309992  97152724 814376300  11% /
/dev/root      960309992  97152724 814376300  11% /
tmpfs            1994768       668   1994100   1% /run
udev               10240         0     10240   0% /dev
shm              1994768       192   1994576   1% /dev/shm
cgroup_root        10240         0     10240   0% /sys/fs/cgroup
/dev/sdb1         108865     90759     12485  88% /boot
/dev/sda2      976657404 718062164 258595240  74% /mnt/windows
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1122

PostPosted: Thu Oct 24, 2013 12:15 pm    Post subject: Reply with quote

You can boot linux without an initrd, if you have all compiled into the kernel needed to mount / (root partition) , because you don't have any seperate /usr, which one could see looking at your /etc/fstab. But I didn't want to miss the chance of RTFM regarding df :)
_________________
fun2gen2
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