LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-01-2011, 02:34 PM   #1
christophercheeseman
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Rep: Reputation: 0
Question 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.

Last edited by christophercheeseman; 02-01-2011 at 04:16 PM.
 
Old 02-01-2011, 03:23 PM   #2
mk27
Member
 
Registered: Sep 2008
Distribution: fedora, gentoo, ubuntu
Posts: 148

Rep: Reputation: 23
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
 
1 members found this post helpful.
Old 02-01-2011, 03:53 PM   #3
christophercheeseman
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Original Poster
Rep: Reputation: 0
i tried that and still wont copy over. i need permissions to copy it over. How do i get permissions for the partition?
 
Old 02-01-2011, 04:37 PM   #4
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
Code:
sudo dd if=theimage.iso of=/dev/hda3
 
Old 02-01-2011, 05:05 PM   #5
christophercheeseman
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Original Poster
Rep: Reputation: 0
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???
 
Old 02-01-2011, 06:44 PM   #6
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
Obviously /media/sda5 is a directory, not a device. /dev/sda5 is a device. There's a difference
 
Old 02-01-2011, 07:29 PM   #7
mk27
Member
 
Registered: Sep 2008
Distribution: fedora, gentoo, ubuntu
Posts: 148

Rep: Reputation: 23
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.

Last edited by mk27; 02-01-2011 at 07:31 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to erase files owned by root? maiden2 Linux - Newbie 6 12-22-2007 07:44 PM
how to edit files owned by root? maiden2 Linux - Newbie 3 12-12-2007 12:32 PM
Editing files owned by root SiW Programming 5 07-31-2007 01:36 PM
all users have access to root owned files sakatola Linux - Security 2 07-22-2005 12:45 AM
vfat mount - all files are 'root' owned, but even root can't -WX d33pdream Linux - General 5 02-28-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration