CloudUSB Booting But do not save my inputs.

24 views
Skip to first unread message

Vieira

unread,
Apr 3, 2011, 2:20:48 PM4/3/11
to cloudusb
Hello People,

CloudUSB is really a very good Idea.

First boot takes a very long time, I had changed password using passwd
command.

After reboot ( lasting too much) password is the same as before
(cloudusb).

and no input remains saved, as firefox preferences, no data remains
persistent.

DO I have to make a special command to save data i have entered?

Ciao from Brazil.

Vieira

giangiammy

unread,
Apr 3, 2011, 2:57:19 PM4/3/11
to clou...@googlegroups.com
Hi!

I tested the password change via graphical GUI
(System->Preferences->About me in the english version).

the new password is correctly setted on the next reboot.
(I never tested via command line with passwd, but should
work the same way ...)

I usually start the usb key the first time, change the password
and then initialize dropbox, as encfs uses the login
password to encrypt the filesystem.

For Firefox, I tested adding bookmarks, and those are stored
and kept on the following reboot.

The USB key is write enabled (some have an hardware
button to disable writing)?

The key has free space?
You can check with df, and the 
/media/casper-rw should have free space.

If you connect CloudUSB to your dropbox, it
syncronize the data you have on dropbox and
download them to PC: that data could fill the
usb key ...

Just making some hypotesis ... hoping his can help!

bye
giammy
 





Vieira Brazil

unread,
Apr 3, 2011, 4:18:30 PM4/3/11
to clou...@googlegroups.com
Hi Giammy,

Thanks for your answer.

Until now, no way to change password takes effect, after reboot its all the same. (Via GUI).

My Data Traveler Kingston stick 2 Gb has no lock function. If it works Ill buy a big one.

I am receiving an error window just after login has finished saying:   gvfsd-metadata closed unexpectedly

About Space, what do you notice in this display? (but there in no
casper-rw )

cloudusb@cloudusb:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
aufs                 1002M   22M  981M   3% /
none                  995M  288K  995M   1% /dev
/dev/sda1             1.7G  967M  707M  58% /cdrom
/dev/loop0            933M  933M     0 100% /rofs
none                 1002M  156K 1002M   1% /dev/shm
tmpfs                1002M   12K 1002M   1% /tmp
none                 1002M   96K 1002M   1% /var/run
none                 1002M     0 1002M   0% /var/lock
none                 1002M     0 1002M   0% /lib/init/rw
cloudusb@cloudusb:~$

I dont want to setup dropbox for now. But I want to save my input.

See the Fdisk display:

cloudusb@cloudusb:~$ sudo fdisk -l
[sudo] password for cloudusb:

Disk /dev/sda: 2063 MB, 2063597568 bytes
64 heads, 62 sectors/track, 1015 cylinders
Units = cylinders of 3968 * 512 = 2031616 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0217934c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         866     1716770    c  W95 FAT32 (LBA)
Partition 1 has different physical/logical endings:
     phys=(213, 186, 31) logical=(865, 20, 34)
Partition 1 does not end on cylinder boundary.
/dev/sda2             866        1016      297984   83  Linux
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(213, 200, 52) logical=(865, 35, 7)
Partition 2 has different physical/logical endings:
     phys=(250, 225, 39) logical=(1015, 47, 30)
Partition 2 does not end on cylinder boundary.
cloudusb@cloudusb:~$

See also the mount display:

cloudusb@cloudusb:~$ mount
aufs on / type aufs (rw)
none on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
/dev/sda1 on /cdrom type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/loop0 on /rofs type squashfs (ro,noatime)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/cloudusb/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=cloudusb)
cloudusb@cloudusb:~$

Interesting, /dev/sda1 is remount-ro

Interesting, Boot process is trying to read diskette.

Now Ive disconnected all HD and diskette and DvD drive is empty. I think boot is more fast.

I am answering to these EMails using CloudUSB.

I wish I could use CloudUSB for many Things.

Grazie tanti


Um forte abraço,

Vieira


2011/4/3 giangiammy <giang...@gmail.com>

giangiammy

unread,
Apr 4, 2011, 3:04:09 AM4/4/11
to clou...@googlegroups.com
Hi Vieira,


> My Data Traveler Kingston stick 2 Gb has no lock function. If it works Ill buy a big one.
>
> I am receiving an error window just after login has finished saying:   gvfsd-metadata closed unexpectedly
>
> About Space, what do you notice in this display? (but there in no
casper-rw )

2Gb should be enough.

The gvfsd-metadata closed unexpectedly

is an error I saw, but I did not find how to remove.
In a persistent configuration it will show just the 1st boot.

The problem, as you pointed out is that there's no casper-rw.
To create the key I used tutorials found on the web
(here an example)
http://www.debuntu.org/how-to-install-ubuntu-linux-on-usb-bar

In particular, the casper-rw partition must exist: that is,
there must be a partition to write data to (to have the
persistent feature) and that partition must have the
casper-rw label

When I create the usb key (script create-usb-key_1.1.sh the relevant part is:

debug "Formatting partition (1) ..."
umount ${SELECTEDDISK}1 2>/dev/null
mkfs.vfat ${SELECTEDDISK}1 | (zenity --title "Formatting ..." --text "Formatting ${SELECTEDDISK}1 ..." --progress --pulsate --auto-close)

(partition for the operating system)

debug "Formatting partition (2) ..."
umount ${SELECTEDDISK}2 2>/dev/null
mkfs.ext2 -b 4096 -L casper-rw ${SELECTEDDISK}2 | (zenity --title "Formatting ..." --text "Formatting ${SELECTEDDISK}2 ..." --progress --pulsate --auto-close)

and this is the partition for the persistent data: note the "-L casper-rw" option.
That option is needed.
in the usb key both partition must be present: you probably
have the 2 partition, but the second has not the label casper-rw.
(this is present in the script create-usb-key_1.1.sh at line 177)

On the running system you need to have a /media/casper-rw
otherwise it will not be persistent.

By the way, another critical point to have the persistent configuration is:

sed -i 's/append initrd=\/ubninit file=\/cdrom\/preseed\/custom.seed boot=casper quiet splash --/append initrd=\/ubninit file=\/cdrom\/preseed\/custom.seed boot=casper persistent quiet splash --/g' /media/usbkey/syslinux.cfg

that is the boot option in syslinux.cfg must be
boot=casper persistent quiet splash --

while the default is:
boot=casper quiet splash --

In your key, in file /syslinux.cfg there's the persistent option?

this is present in the script create-usb-key_1.1.sh at line 192.

Hope this helps (and thanks for the very good description of your problem,
with all the commands output!)

buona giornata!
giammy

Vieira Brazil

unread,
Apr 4, 2011, 4:58:10 PM4/4/11
to clou...@googlegroups.com
Hi Giammy,

Today I've bought a new 4Gb stick. I ran create... script as I made on saturday, and everything is working.

I didn't run setup script as before. But now my data is persistent.

The problem is that I have a friend ( poor girl), she received as a Gift an old toshiba notebook but after 1 mount of using it the "IDE"  Hard Drive doesnt work anymore.

I gave her a "Parted Magic" Live CD an she is using firefox to browse Emails, but she cant play a video, and more...

Now I can set up a very good Linux for her, Browsing and playing everything...  Thats the aim of my research.

But help me understand something:

     First partition is 1,5 Gb and it has the CloudUSB image.

     Second partition i 2.5 Gb and is persistent.

     If I install some sotware like VLC or Ubuntu-Extras, this software will be on first or second partition (second I guess so),

     What is the link for old and New software???

     If I save something in Documents User folder will it be persistent???

Thats all for now, and many many thanks for your answers and explanations.

Grazie mille,

Buona sera


Um forte abraço,

Vieira




2011/4/4 giangiammy <giang...@gmail.com>

Gianluca Moro

unread,
Apr 5, 2011, 2:57:22 AM4/5/11
to clou...@googlegroups.com
Hi Vieira,

On Mon, Apr 4, 2011 at 10:58 PM, Vieira Brazil <vieira...@gmail.com> wrote:
> Hi Giammy,
>
> Today I've bought a new 4Gb stick. I ran create... script as I made on
> saturday, and everything is working.
>

very good!

...

>
>      First partition is 1,5 Gb and it has the CloudUSB image.
>
>      Second partition i 2.5 Gb and is persistent.
>
>      If I install some sotware like VLC or Ubuntu-Extras, this software will
> be on first or second partition (second I guess so),
>

yes: the 1st partition will keep the preinstalled software.
All the new software, personal documents go
on the second partition.

>      What is the link for old and New software???

the new installed software? you call it from command line
of from gui as normal.

If you need to personalize with various software, you
can get a look at the script
http://cloudusb.net/files/cloudusb-build_1.1.sh

This is the script I used to create the cloudusb ISO.
From your messages, i understand you have some
expertise in IT, so I think you should have no problem.
(essentially, you start from a clean system, install
and update all you need, then create the iso).

The advantage is that in this way you build a personalized
cloudusb with all the software your friend needs, and
she can use all the second partition for her data.

>
>      If I save something in Documents User folder will it be persistent???
>

yes: it's persistent

> Thats all for now, and many many thanks for your answers and explanations.
>

I'm happy to be of help!

bye
giammy

--
Gianluca Moro           Enjoy CloudUSB:  http://www.cloudusb.net/
QQ: 1843508436                                      http://www.giammy.com
There's a right way and a wrong way to do everything: the wrong
way is to keep trying to make everybody else do it the right way

Reply all
Reply to author
Forward
0 new messages