Re: OK, I give..Help?

2007-02-16 Thread sfjro

"Chris Furlough":
> > Then you did it. And you see everything under /root/jukebox_cddb/aufs,
> > except /proc, /sys, /dev/pts and /dev/shm, don't you?
> > Is it enough for you?
> 
> Either I don't understand aufs, or it's not working.  After the above mount, 
> I went to /root, and created a file, and threw some text into it.  Now, in 
> theory, if I understand correctly, this file should ONLY exist virtually, as 
> in only in the AUFS.  So, I reboot, and when it comes up, the file is there, 
> and I can cat it normally.  Is the / dir NOT read-only?  Is this file 
> existing in AUFS across boots?

You went to /root, it is out of aufs.
Your aufs is /root/jukebox_cddb/aufs, isn't it?
Your newly created file is saved in /root.

I am afraid you don't understand aufs or mount.
Probably, you need to try LiveCD, for example SLAX.
Basically, it doesn't save the created files in your hard drive.
Also, I recommend you to read the manual of chroot(8).


Junjiro Okajima

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


Re: OK, I give..Help?

2007-02-16 Thread Chris Furlough
> "Chris Furlough":
>> What I'd like to be able to do, is to mount something over the whole "/"
>> mount point.
>
> Then you did it. And you see everything under /root/jukebox_cddb/aufs,
> except /proc, /sys, /dev/pts and /dev/shm, don't you?
> Is it enough for you?


Either I don't understand aufs, or it's not working.  After the above mount, 
I went to /root, and created a file, and threw some text into it.  Now, in 
theory, if I understand correctly, this file should ONLY exist virtually, as 
in only in the AUFS.  So, I reboot, and when it comes up, the file is there, 
and I can cat it normally.  Is the / dir NOT read-only?  Is this file 
existing in AUFS across boots?

Chris 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


Re: OK, I give..Help?

2007-02-13 Thread sfjro

"Chris Furlough":
> What I'd like to be able to do, is to mount something over the whole "/" 
> mount point.

Then you did it. And you see everything under /root/jukebox_cddb/aufs,
except /proc, /sys, /dev/pts and /dev/shm, don't you?
Is it enough for you?

Junjiro Okajima

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


Re: OK, I give..Help?

2007-02-13 Thread Chris Furlough
> Will you show me your /proc/mounts?

rootfs / rootfs rw 0 0

udev /dev tmpfs rw 0 0

/dev/hda2 / reiserfs rw 0 0

proc /proc proc rw 0 0

sysfs /sys sysfs rw 0 0

debugfs /sys/kernel/debug debugfs rw 0 0

devpts /dev/pts devpts rw 0 0

tmpfs /dev/shm tmpfs rw 0 0

/dev/hda3 /root/jukebox_cddb reiserfs rw 0 0

none /root/jukebox_cddb/aufs aufs 
rw,xino=/root/jukebox_cddb/rw/.aufs.xino,br:/root/jukebox_cddb/rw=rw:/=ro 0 
0





What I'd like to be able to do, is to mount something over the whole "/" 
mount point.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


Re: OK, I give..Help?

2007-02-12 Thread Chris Furlough
> Are you sure that you chdir-ed to different filesystem, i.e. different 
> disk
> partition?

I tried that, and it didn't complain, and looks like it worked.
 (no errors at least). 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Re: OK, I give..Help?

2007-02-12 Thread sfjro

"Chris Furlough":
> > $ cd /differnt/filesystem
> > $ mkdir rw aufs
> > $ sudo mount -t aufs -o br:./rw:/ none ./aufs
:::
> aufs test_add:364:mount[3452]: / is overlapped

Are you sure that you chdir-ed to different filesystem, i.e. different disk
partition?
Will you show me your /proc/mounts?

Junjiro Okajima

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Re: OK, I give..Help?

2007-02-12 Thread Chris Furlough
> What will happen if you try this command?
> 
> $ cd /differnt/filesystem
> $ mkdir rw aufs
> $ sudo mount -t aufs -o br:./rw:/ none ./aufs


mount: wrong fs type, bad option, bad superblock on none
(...)

dmesg | tail reveals:

aufs test_add:364:mount[3452]: / is overlapped



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Re: OK, I give..Help?

2007-02-12 Thread sfjro

"Chris Furlough":
> Let me explain it again, I want to mount the root "/" as read-only, and =
> have aufs mounted over the top to catch all the writes that the OS, or =
> applications do.  Can someone shoot me a command line, and an fstab =
> entry that would handle this?

It highly depends upon your filesystems or partitions, since,,,
- aufs doesn't follow down different filesystem under a branch.
  When you have two disk partitions, / and /usr, and you specify / as a
  branch of aufs, you don't see /usr from aufs.
- aufs doesn't allow a branch overlapping.
  It means all the branches cannot be a child of another branch on the
  same disk partition.

What will happen if you try this command?

$ cd /differnt/filesystem
$ mkdir rw aufs
$ sudo mount -t aufs -o br:./rw:/ none ./aufs


Junjiro Okajima


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


OK, I give..Help?

2007-02-12 Thread Chris Furlough
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642