On Wed, Aug 20, 2008 at 8:18 PM, hypermonkey2 <[EMAIL PROTECTED]> wrote: > > Hi again! > > I recently tried installing sage on a usb flash drive (2gig) to be > able to run sage on an Eee pc. However i run into trouble with the > file permissions. > Throughout the unpacking of the sage.tar.gz, there is trouble changing > ownership to uid 1000. > In a nutshell, i do not have ownership of my usb drive. how can i fix > this?
There is a way to fix this I think. Pasted below are some notes I wrote to myself over the summer when I tried something like this, which may or may not help. Description of installing Kubuntu Hardy on an external SD card in an Asus EEE PC. The main problem encountered is that the SD card is known as (hd2,0) /dev/sdc when booting from an external USB stick, and as (hd1,0) /dev/sdb when booting from HDD or SD card. Equipment: - Asus EEE PC Model 701 - 8GB removable SD Card installed - 2GB USB stick Procedure: Followed instructions in http://ubuntu-eee.tuxfamily.org/index.php5?title=Install:_from_a_Live_Ubuntu_image_on_a_USB_stick to make a bootable USB stick and to install Kubuntu on the SD card. Notes: - during initial screen when eee is booting, press Esc to get a menu to allow you to select boot device. Select the USB stick, of course, but note that the SD card also shows up as a USB device, so select the correct one. - used manual partioning during installation to select the 8GB SD card, which shows up at that time as /dev/sdc. I partioned it into 3 parts: - 4000 Kbytes ext2 / - 500 Kbytes swap - rem ext2 /files Install was pretty uneventful, though a bit slower than expected. Perhaps took 1 hr or so. Symptom at end: =============== - could only boot off external USB stick - if try to boot off internal hdd, would get grub error 21 (missing file, apparently). - if try to boot off 8GB SD card, would get only blank screen Besides the device renaming problem noted above, I think the MBR on the SD card was also pooched. At the end, I now have a system that will dual boot the original Asus distributed linux or Kubuntu hardy on the removable SD card. It will boot from either the internal hdd or the removable SD card. On each, I get a grub boot menu, with the installation on that device being the default, but with the ability to select the linux on the other device. Here is what I eventually ending up doing: ========================================== 1. boot from USB stick. At this stage /dev/sda = internal hdd /dev/sdc = removable SD 2. open a console window 3. Copy and fix grub menu entries from removable SD to internal hdd: cd mkdir sda1 mkdir sdc1 sudo mount /dev/sda1 sda1 sudo mount /dev/sdc1 sdc1 sudo vi sda1/boot/grub/menu.lst # internal hdd - comment out 'hiddenmenu' (if you want) - set timeout to 10 (or so) - copy menu entries from ~/sdc1/boot/grub/menu.lst (on the removable SD) to the end and change all occurrences of (hd2,0) to (hd1,0) sudo vi sda1/boot/grub/device.map # internal hdd - it should read to be correct when you are NOT booting from USB stick: (hd0) /dev/sda (hd1) /dev/sdb sudo vi sdc1/boot/grub/menu.lst # removable SD - comment out 'hiddenmenu' (if you want) - set timeout to 10 (or so) - copy original menu entries from ~/sda1/boot/grub/menu.lst (on the internal hdd) to the end. - change all occurrences in the original part of (hd2,0) to (hd1,0) sudo vi sdc1/boot/grub/device.map # removable SD - it should read to be correct when you are NOT booting from USB stick: (hd0) /dev/sda (hd1) /dev/sdb # the above 4 edits allow you to boot off either # device and still get a boot menu to select # which install. Probably overkill, but its # what I ended up with after a lot of trial and error. sudo grub-install --root-directory=sda1 /dev/sda sudo grub-install --root-directory=sdc1 /dev/sdc 3. To fix the MBR on the removable SD, WHILE STILL BOOTED FROM USB STICK: su grub root (hd2,0) setup (hd2) exit (or quit?) Now it should work. > > Thanks a bunch! > cheers > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---