Can I use fromhd= home= opt= at the same time?


Forum: HD Install
Topic: Can I use fromhd= home= opt= at the same time?
started by: clydew

Posted by clydew on July 30 2005,18:03
Is it possible to use dsl fromhd=/dev/hda1 home=hda1 opt=hda1 on my boot line?

I get an error because hda1 is mounted as non-writeable /cdrom.  Do I need a second disk for this?  If not, where do I create my initial /home and /opt?

Posted by mikshaw on July 30 2005,20:21
This is just a guess, but maybe it will work if you throw "toram" into the mix.  As far as I can tell this would load the system into ram, freeing up the harddrive so it can be mounted for home and opt.
Posted by cbagger01 on July 30 2005,22:47
Try adding "frugal" to your boot commands
Posted by clydew on July 31 2005,02:10
Thanks folks for the great suggestions!

I don't have enough memory for toram, so I'll have to check that out later...

Frugal gives me the ability to modify files on my hard drive, which I could not do before with fromhd.

The system can't seem to mount my home or opt because it is already mounted...I'll keep working on it!

Posted by mikshaw on July 31 2005,02:25
Holy crap....
I've been using DSL for over a year, and never noticed the frugal boot option. That's beautiful!
I think it's time to reconsider my partition setup again. Thanks.

Posted by mikshaw on Aug. 01 2005,20:36
cbagger01: frugal doesn't seem to do it.  I tried the following in grub:
root=/dev/hda4 dsl home=hda4 frugal

I received an error saying the drive was already mounted.  I'm thinking there should be a failsafe built in....something that checks to see if it's mounted and then does "mount --bind" if the drive is already mounted.

Posted by adssse on Aug. 02 2005,04:07
This may sound stupid, but what exactly does the frugal boot option do? I have heard of it but didnt see a clear cut answer when I searched the forums.
Posted by mikshaw on Aug. 02 2005,04:51
When you boot without it, the root device is mounted read-only, even if it is a writeable device.  The frugal option apparently remounts the device read-write.
Posted by adraker on Aug. 02 2005,12:49
Wow .
Like Adssse, I looked for info
after I noticed the new Grub install script
had this boot option by default.
I removed it, not knowing what it was,
when I had some unrelated problems.
(Yes, it's actually very very clever to remove
things you don't understand!).
So that means the root filesystem of a Frugal
install can be rw.....I dont have to boot a live
cd to make changes to Grubs menu.list,
or add things to my treasured /optional
directory?
Wow.

Posted by adssse on Aug. 02 2005,13:27
Wow, I had no idea, I guess I need to ask questions more often. That would certainly be nice in certain situations especially. Thanks for the info.
Posted by mikshaw on Aug. 02 2005,20:50
So the question still remains...can we have persistent home and opt on the same partition as KNOPPIX?

Could do it similar to way i did persistence before the boot option, although it's kinda messy and probably not foolproof.

1) boot with "frugal" and *without* "opt=" or "home="
2) have /opt/bootlocal.sh replace home and opt symlinks with actual directories (mointpoints), and mount your persistent directories to those mountpoints:
rm -rf {/home,/opt} && mkdir -p {/home,/opt}
chown root.staff /opt
mount --bind /cdrom/home /home
mount --bind /cdrom/opt /opt

I don't remember if this is exactly the way I had it before, but it looks kinda right =o)

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.