Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21361 - Cannot copy snapshot file to /usr
Summary: Cannot copy snapshot file to /usr
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Everything (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-20 15:55 UTC by Ross Henderson
Modified: 2005-03-25 11:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Henderson 2003-05-20 15:55:29 UTC
I am trying to install Gentoo Linux on a PII 333Mhz system with 128MB RAM, 10 
GB Hard drive, which is a standalone system - ie has no connection to the 
internet or an LAN. I also have a Win XP system which I use to connect to the 
internet.

I have got to the point of installing the portage tree. I have followed the 
instructions to the letter. Since the system I am using is a standalone, I 
donwloaded the snapshot file portage-20030518.tar and dumped it on a CD. I 
have tried to copy the file to the /usr directory, but I keep getting a 
message saying that it is a read only file system. I have tried a chmod to 
o+r+w /usr but I still get a message "Read only file system"

Suggestions???

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2003-05-20 17:23:21 UTC
It's me again... :)  
  
What does the output of the "mount" command say?    
  
There's two possibilities happening here.  Either your /usr is mounted somehow onto a read  
only device (like a CD), or there's a boottime error that's happening causing your file system  
to be mounted read only.  
  
Check the boot log ("dmesg") and see if you notice any errors.   Post them back if you have 
any. 
  
  
Comment 2 Ross Henderson 2003-05-21 15:46:17 UTC
The output of the mount command is

proc on /proc type (rw)
none on /dev/type devfs (rw)
tmpfs on /mnt/.init.d type tmpfs (rw,mode=0644, size=2048k)
tmpfs on /dev/shm type tmpfs (rw)
usbdevfs on proc /bus/usb type usbdevfs (rw)
/dev/cdroms/cdrom0 on /mnt/cdrom type iso9660(ro)
/mnt/cdrom/livecd.cloop on /mnt/cloop type ext2 (ro)
tmpfs on  / type tmpfs (rw)
/dev/hda3 on /mnt/gentoo type ext2 (rw)
/dev/hda1 on /mnt/gentoo/boot tpye ext2 (rw)
/proc on /mnt/gentoo/boot type ext (rw)
/proc on /mnt/gentoo/proc type none (rw,bind)
/mnt/cdrom/gentoo/packages on /mnt/gentoo/GRP type none (rw,bind)
/dev/cdroms/cdrom1 on /mnt/cdrom1 type iso9660 (ro)

I looked at dmesg and the only errors I could find were relating to not finding a PNP network card, other than that, there is nothing relating to the mount point /usr.
Comment 3 Ross Henderson 2003-05-22 02:35:59 UTC
Some more info

I did a ls -l /usr and got the result

lrwxrwxrwx /root root 13 May 22 06:52 /usr -> /mnt/cloop/usr

I looked at the contents of /usr and also /mnt/cloop/usr and they are identical!!! Does this mean that somehow there is a link between /usr and /mnt/cloop/usr??? If this is the case then how do I go about unlinking these directories??? I have tried the unmount /mnt/cloop/usr command only to be told that the unmount command is not found.

Suggestions??
Comment 4 Ross Henderson 2003-05-23 02:01:23 UTC
I managed to copy the file to /mnt/gentoo/usr. The reason I was trying to copy it to /usr was that in the FAQ's it said to download the portage tree and copy it to /usr, but if you do a chroot /mnt/gentoo /bin/bash then /mnt/gentoo becomes /. I have now managed to extract the portage tree and do a env-update successfully (at last!!!!!!!!!!!!!!!!!!!!!!!) 

I have now got to the point of updating the system using

emerge sync
emerge -up world
emerge -u world

I get an error when I used emerge sync saying that rsync://URL in here was not available, which is understandable as my linux PC isn't connected to the internet. I get a list of packages to be updated from emerge -up world. But when I do emerge -u world then it looks for zlib-1.1.4.tar.bz2 from 

www.ibiblio.org/pub/linux/distibutions/gentoo/distfiles/

which since my PC isn't connected to the internet is not possible. If I download this file, then how do I update the system without connecting to the internet???????

I also tried installing the kernel but it is also looking for a file from the internet - linux-2.4.20.tar.bz2. Likewise if I download this file then how do I install the kernel without connecting to the internet????????
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-18 16:48:52 UTC
put all files you download into /mnt/gentoo/usr/portage/distfiles
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2005-03-25 11:25:14 UTC
Moving these so we can remove the "Install CD" component from "Gentoo Linux".

I apologize to everyone for this spam, but according to the bugzilla developers,
this is the only reasonable way to do this.