Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Bodhi This forum is for the discussion of Bodhi Linux.


  Search this Thread
Old 09-11-2011, 01:42 PM   #1
Registered: May 2006
Posts: 45

Rep: Reputation: 3
Boot Bodhi 1.2.0 Live CD without auto mounting hd partitions

Booting Bodhi Linux 1.2.0 as a Live CD.

Does anyone know if there is a boot parameter that can be used to not have the hard drive partitions automatically mounted when booting the Live CD?

Right now I am using the following command to unmount the partitions after I boot up:

sudo umount -a -v -t ext3

But I would prefer to not have them mounted.
Old 09-11-2011, 02:47 PM   #2
Registered: Mar 2008
Posts: 20,167

Rep: Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181
Remaster the iso would be the correct way.

I doubt there is any cheat code to prevent mounting.

Contact bodhi developers for maybe a script that could do a simple edit to the iso image to fix that.
Old 09-11-2011, 04:06 PM   #3
Registered: May 2006
Posts: 45

Original Poster
Rep: Reputation: 3
Thanks for the reply.

I agree there probably is not a cheat code, but there should be one when a Live CD auto mounts existing partitions.
Old 09-12-2011, 11:55 AM   #4
Registered: May 2006
Posts: 45

Original Poster
Rep: Reputation: 3
Follow up.

I remastered the "iso" using isomaster, unsquashfs, and mksquashfs on an Ubuntu 10.4 installation to stop the auto mounting.

Used isomaster to extract the file "casper/filesystem.squashfs" from the bodhi_1.2.0.iso into a temporary directory.

Used the command "sudo unsquashfs filesystem.squashfs" to create a directory named "squashfs-root".

Edited file "squashfs-root/etc/rc.local", commented out the following line:


Saved the file.

Deleted the file "filesystem.squashfs".

Used the command "sudo mksquashfs squashfs-root filesystem.squashfs" to build a new "filesystem.squashfs" file.

Used isomaster again to do the following:

- remove the old casper/filesystem.squashfs file from the "iso"
- add the new "filesystem.squashfs" to the "iso"
- save the modified "iso" as a new name

Burned the new "iso" to a CD and then tested it to confirm it would boot up without auto mounting the hard drive partitions.

The remastered CD seems to work fine. One odd thing though, the modified "filesystem.squashfs" file is smaller than the original one. I just let it use the defaults when creating the new "filesystem.squashfs" with mksquashfs.

Last edited by RHTopics; 09-12-2011 at 12:00 PM.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer won't boot live-cd, bios is boot from disc, accidentally emptied partitions. pleasefloss Linux - Newbie 12 01-14-2010 07:20 PM
how to change auto mounting of other partitions? james2b Fedora 5 12-14-2008 05:00 AM
Way to not auto mount HD partitions; Mandriva One 2008 Spring Live CD RHTopics Mandriva 9 03-28-2008 02:00 AM
auto mounting of hard disk partitions rm1 Programming 3 11-08-2004 09:04 AM
Auto-Mounting on Boot. dolvmin Linux - Software 2 08-03-2003 05:39 PM > Forums > Linux Forums > Linux - Distributions > Bodhi

All times are GMT -5. The time now is 12:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration