
02-11-2010, 06:52 AM
|
Cheetah
|
|
Join Date: Feb 2010
Posts: 1
|
|
Is it possible to mount a USB stick drive?
Quote:
Originally Posted by peet
Hi, I also faced “unbound variable” problem and here is Galileo’s solution in more detail:
Steps needed:
1) create ramdisk
2) copy rc.liveboot to ramdisk
3) edit rc.liveboot on ramdisk
4) run rc.liveboot from ramdisk
5) exit
More details:
1) to create ramdisk, use lines from rc.liveboot. You view this file using command cat, i.e. writing “cat /etc/rc.liveboot | more”. Using down arrow key scroll nearly to the end of the file where you will see “RAMDisk()”. Now press “q”. The text will remain on the screen but you will be able to write commands. Here are commands you have to execute (one by one). Please note I changed:
- system-image=no in “hdik” line
- ram://51200 in “hdik” line
- $mntpt to /Volumes in “mount” line
Commands to execute:
dev=`hdik -drivekey system-image=no -drivekey eject-upon-logout=no -nomount ram://51200`
newfs $dev #hack to init partition table automatically
newfs_hfs $dev
mount -t hfs -o nosuid,nodev $dev /Volumes
2) If previous step finished without errors you have working ramdisk in /Volumes. Now copy rc.liveboot to it:
cp /etc/rc.liveboot /Volumes
3) To edit rc.liveboot on ramdisk type:
emacs /Volumes/rc.liveboot
Now scroll the file till line 85 and comment this lines (put # before them):
set ${volinfo}
devname=$1
fstype=$2
To save yor changes pres Ctrl+X and then Ctrl+C. Editor will ask you of saving changes, press “y”.
4) To run rc.liveboot from ramdisk:
sh /Volumes/rc.liveboot init 2000000
If everything works fine you should see two lines of text, first saying something like “messed with swap”
5) enter command “exit” and watch as your live Leopard is starting
Hope this helped.
Thank to creators of this great live distro!
|
Hi this works great thanks for posting! Is this caused because I dont have a HFS partition?
Anyway just a couple of notes that may help others:
emacs crashed on my machine so I used nano succesfully.
I only have 2GB of RAM, need 1.1GB to run so that only leaves 0.9GB for RAM drive space.
'rc.liveboot init 2000000' caused a kernel panic so I tried 'rc.liveboot init 512000' and it worked fine.
And also a question: I have copied the modified rc.liveboot to a USB stick, and I want to know if I can mount the USB stick to save making a RAM drive everytime I want to run it?
Update: Yes I made an HFS partition and this line 85 error disappears. Simple.
Another thing I noticed is the DVD would not boot with my USB printer plugged in (took me ages to figure that out) so if you have problems unplug unsued USB peripherals.
Last edited by rayzinnz; 02-27-2010 at 02:45 AM.
|