Author Topic: SOLVED: Mounting a Partition at Boot Time  (Read 1304 times)

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10651
  • MLUs Forever!
Re: Mounting a Partition at Boot Time
« Reply #15 on: November 18, 2012, 03:16:09 AM »


just17 - it was being mounted by hald, but I didn't like the fact that it mounted it when it felt like it, and that /media is the wrong place for a permanent partition.


I find that comment odd ......  what do you mean?
« Last Edit: November 18, 2012, 04:21:31 AM by Just17 »
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Xenaflux

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3834
Re: Mounting a Partition at Boot Time
« Reply #16 on: November 18, 2012, 04:14:25 AM »
Quote
/mnt is for whatever you want it to be

Quote
Which doesn't mean that you have to be standards-compliant....

And the difference between my statement and yours is.................................?
The great thing in this world is not so much where we stand,
as in what direction we are moving.
                                                    (Oliver Wendell Holmes )

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6380
  • I'm going South
Re: Mounting a Partition at Boot Time
« Reply #17 on: November 18, 2012, 05:21:25 AM »
Quote
/mnt is for whatever you want it to be

Quote
Which doesn't mean that you have to be standards-compliant....

And the difference between my statement and yours is.................................?

Not very great.

Well, Gregg asked for a  "standard" place for his data partition. Then he confessed to being "obsessive about the 'accepted practices' thing". Now, a directory under /mnt is decidedly non-standard as a mountpoint for a permanent partition.

Which doesn't mean that your setup doesn't work for you or wouldn't work for Gregg if he copied it.

The same is true about mine by the way: I mount my main data partition (labelled "Data") as /home/<myname>/Data, and most of the data folders in my home directory are just symlinks to directories under ~/Data. So even if my data partition is mounted at a mountpoint under my home directory its contents are kept separate from the configuration files in that same directory.

One benefit is that I can reinstall the system without having to recreate the mountpoints under /mnt. And even if I reformat /home I won't lose the data on my data partition, although then I would have to recreate a mountpoint and a few symbolic links afterwards. If your /mnt is on a partition of its own, or if its subdirectories are on partitions of their own, the difference between your system and mine is really marginal. (Except that mine is more standards-compliant.)

/mnt is for whatever you want it to be

The same could be said about most standard directories. (At least so long as one doesn't try to create permanent mountpoints under /proc or /dev or /sys or /tmp.) And I'll gladly deviate from any standard if I see any benefit from doing so. But if I don't, I won't.
« Last Edit: November 18, 2012, 06:17:23 AM by Bald Brick »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10651
  • MLUs Forever!
Re: Mounting a Partition at Boot Time
« Reply #18 on: November 18, 2012, 06:30:44 AM »
....  and it seems I also have a variation on what some consider 'normal'  :D

I only have in fstab, mount points needed for the OS .....  /, /home & swap

All others which are user controlled I mount under /media.

Some, system-wide, mounts would be under /mnt

Although presently my /home is specified as a separate partition, any future installs that will not be the case.
My present /home partition is not used for storing user data files .....  I have the directories which contain such files as links from the data partition ...  such as Videos, Music, Pictures etc

So in future I see no benefit in having a separate /home.

In addition that data partition is mounted under /media and is auto mounted by the device notifier setting.

Should it ever fail to mount for some reason, the OS still boots, but my data files would not be accessible until it gets mounted.
Those files can be linked to any other install I might have without interfering with anything, and thus be available automatically for each install.

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline GreggB

  • Jr. Member
  • **
  • Posts: 45
Re: Mounting a Partition at Boot Time
« Reply #19 on: November 18, 2012, 10:50:24 AM »
My comment about HAL was based upon my experience. Some times it would mount the partition a couple of minutes after boot, sometimes it seemed to wait until I selected the partition in Dolphin. What started me on this "quest" was the time I clicked on the partition in Dolphin and I got an error message because it wasn't there. By the time I'd check to see if it truly wasn't mounted, HAL had stepped in and mounted it.

The standards doc that Bald Brick pointed me to is quite interesting. It is just a little more recent that the page I was looking at (2004 vs 2003). It mentions /usr in the text, yet there is no entry for /usr.

I didn't really intend to open a can of worms with my supplementary question. The main question (how to mount at boot) was answered swiftly (thanks). I think I understand that even though there are various recommended ways of doing things, in the end I have to do what suits me best.

Thanks again to everyone for their input.

Gregg.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10651
  • MLUs Forever!
Re: SOLVED: Mounting a Partition at Boot Time
« Reply #20 on: November 18, 2012, 11:46:09 AM »
Quote
in the end I have to do what suits me best.

Exactly ......  and that is the best way ... for you .... regardless 'standards'  ;)

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Xenaflux

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3834
Re: SOLVED: Mounting a Partition at Boot Time
« Reply #21 on: November 18, 2012, 04:42:11 PM »
Quote
Quote
in the end I have to do what suits me best.

Exactly ......  and that is the best way ... for you .... regardless 'standards'  Wink

+1
The great thing in this world is not so much where we stand,
as in what direction we are moving.
                                                    (Oliver Wendell Holmes )