Re: [SLUG] mount LVM from Ubuntu live CD

2010-02-20 Thread Daniel Pittman
Martin Visser writes: > I don't get how sync will write anything to a "ro" filesystem. > That seems to be to break a fundamental kernel and filesystem principle. ...ah. Um, it doesn't write anything to the file system, as such. It triggers the dirty pages in the kernel cache to write out to th

Re: [SLUG] mount LVM from Ubuntu live CD

2010-02-20 Thread John Ferlito
On Sun, Feb 21, 2010 at 02:03:29PM +1100, Martin Visser wrote: > I don't get how sync will write anything to a "ro" filesystem. That seems to > be to break a fundamental kernel and filesystem principle. It won't change anything on the file system as to how it existed in RAM/DISK at the time of th

Re: [SLUG] mount LVM from Ubuntu live CD

2010-02-20 Thread Martin Visser
I don't get how sync will write anything to a "ro" filesystem. That seems to be to break a fundamental kernel and filesystem principle. I would have thought either the "remount" would either force a flush of dirty blocks before it switches to "ro", or alternatively those blocks still dirty at the

Re: [SLUG] mount LVM from Ubuntu live CD

2010-02-20 Thread Daniel Pittman
Jeremy Visser writes: > On 19/02/10 13:41, Daniel Pittman wrote: > >> ] mount / -o remount,rw >> ] passwd root # ...and give it a good password >> ] mount / -o remount,ro >> ] sync; sync; sync >> # wait thirty seconds, because paranoia never hurts >> ] sync; sync; sync; reboot > >> Just be aware

Re: [SLUG] mount LVM from Ubuntu live CD

2010-02-20 Thread Jeremy Visser
On 19/02/10 13:41, Daniel Pittman wrote: > ] mount / -o remount,rw > ] passwd root # ...and give it a good password > ] mount / -o remount,ro > ] sync; sync; sync > # wait thirty seconds, because paranoia never hurts > ] sync; sync; sync; reboot > Just be aware that you don't get a lot of nice th

Re: [SLUG] mount LVM from Ubuntu live CD

2010-02-20 Thread Daniel Pittman
Michael Chesterton writes: > On 19/02/2010, at 1:41 PM, Daniel Pittman wrote: > >> Try booting the kernel with 'init=/bin/bash' on the command line, and then: >> >> ] mount / -o remount,rw >> ] passwd root # ...and give it a good password >> ] mount / -o remount,or >> ] sync; sync; sync >> # wai

Re: [SLUG] mount LVM from Ubuntu live CD

2010-02-20 Thread Michael Chesterton
On 19/02/2010, at 1:41 PM, Daniel Pittman wrote: > Try booting the kernel with 'init=/bin/bash' on the command line, and then: > > ] mount / -o remount,rw > ] passwd root # ...and give it a good password > ] mount / -o remount,or > ] sync; sync; sync > # wait thirty seconds, because paranoia nev

Re: [SLUG] mount LVM from Ubuntu live CD

2010-02-19 Thread Amos Shapira
I've just installed a persistent 64 bit Ubuntu karmic koala on a USB memory stick using the built in live cd creator. I could then install additional packages like skype and flash player and still have them there after a reboot. (the purpose of all this exercise was to test Linux hardware support a

Re: [SLUG] mount LVM from Ubuntu live CD

2010-02-18 Thread Daniel Pittman
david writes: > Can it be done? Sure. > All the instructions I've found on the net require installation of lvm2 - not > sure this is practical on Live CD, even if it was connected to the net, which > it isn't. ...it is practical, and works, but you do need a net connection. IIRC, the live *DV

Re: [SLUG] mount LVM from Ubuntu live CD

2010-02-18 Thread Mike
I've read in the past that the alternate ubuntu live cd has lvm support built in. Maybe check that out, also maybe something like knoppix could do the trick On 19/02/2010, at 0:00, david wrote: Can it be done? All the instructions I've found on the net require installation of lvm2 - n