LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Can't copy files to root owned files! Help! (https://www.linuxquestions.org/questions/linux-general-1/cant-copy-files-to-root-owned-files-help-860069/)

christophercheeseman 02-01-2011 02:34 PM

Can't copy files to root owned files! Help!
 
When i installed ubuntu. I made a seperate partition so that i could copy an ISO image onto it of an up-to-date version of ubuntu. I wanted to then boot the ISO up so i could install the new version that way. I've already tried doing it through the update manager but it'll download, almost be done with installing and it freezes on me. so i figured this would be easier. However i do not know how to gain access to the other partition to copy the ISO image. Please help.

mk27 02-01-2011 03:23 PM

Just download the image into a single file, you don't need to use any update manager. Then copy the image into the partition (eg, /dev/hda3) like this:

Code:

dd if=theimage.iso of=/dev/hda3
Now try mounting the partition:

Code:

mount -t auto /dev/hda3 /mnt/somedir

christophercheeseman 02-01-2011 03:53 PM

i tried that and still wont copy over. i need permissions to copy it over. How do i get permissions for the partition?

RockDoctor 02-01-2011 04:37 PM

Code:

sudo dd if=theimage.iso of=/dev/hda3

christophercheeseman 02-01-2011 05:05 PM

i tried that too.....

christopher@christopher-laptop:~$ sudo dd if=/home/christopher/Desktop/ubuntu-10.10-desktop-i386.iso of=/media/sda5/
dd: opening `/media/sda5/': Is a directory

and then i tried..

christopher@christopher-laptop:~$ sudo cp '/home/christopher/Desktop/ubuntu-10.10-desktop-i386.iso' /media/sda5
cp: cannot create regular file `/media/sda5/ubuntu-10.10-desktop-i386.iso': Read-only file system


What else can i do???

RockDoctor 02-01-2011 06:44 PM

Obviously /media/sda5 is a directory, not a device. /dev/sda5 is a device. There's a difference;)

mk27 02-01-2011 07:29 PM

ps. the device should not be mounted when you copy onto it, either:

Code:

umount /dev/sda5
If it fails because it's busy, get your filebrowser out of the /media/sda5 directory and try umount again.

Now do the dd, using /dev/sda5 as the output file.


All times are GMT -5. The time now is 11:54 PM.