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

Notices

Reply
 
LinkBack Search this Thread
Old 09-11-2011, 01:42 PM   #1
RHTopics
Member
 
Registered: May 2006
Posts: 35

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
jefro
Guru
 
Registered: Mar 2008
Posts: 10,246

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
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
RHTopics
Member
 
Registered: May 2006
Posts: 35

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
RHTopics
Member
 
Registered: May 2006
Posts: 35

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:

automount

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.
 
  


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
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


All times are GMT -5. The time now is 05:24 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 Google+: linuxquestions
Open Source Consulting | Domain Registration