LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2012, 04:14 PM   #1
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Rep: Reputation: 0
can't change permissions


CentOS 5.5 no X.

I used dd to clone partitions to a USB drive. As it turns out, I now need to work with some of the files on said drive. I am unable to chmod/chown. The error I get is:
Code:
[root@compute-01 4]# chown root:root  temp.tar.gz
chown: changing ownership of `temp.tar.gz': Read-only file system
[root@compute-01 4]#
how can I change permissions/ownership on this drive?
 
Old 02-20-2012, 04:19 PM   #2
uhelp
Member
 
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205

Rep: Reputation: 43
remount it writable
 
Old 02-20-2012, 04:33 PM   #3
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Original Poster
Rep: Reputation: 0
is there some trick to it I don't know about? I used
Code:
mount /dev/sdc1 -w /mnt/1
and that didn't work.
 
Old 02-20-2012, 04:39 PM   #4
uhelp
Member
 
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205

Rep: Reputation: 43
Code:
mount -t ntfs-3g /dev/sdc1 /mnt/do-not-use-ntfs
should do it....

If you want to mount it writable for only one specific user use something like this:
Code:
mount -t ntfs-3g   -o uid=UserName, gid=GroupName, umask=0022   /dev/sdc1   /path/to/mount/point

Last edited by uhelp; 02-20-2012 at 04:47 PM. Reason: user specific mount added
 
Old 02-20-2012, 04:45 PM   #5
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Original Poster
Rep: Reputation: 0
I think we're on the wrong path here. I'm pretty sure this is a UUID issue. I used dd so it should be an exact copy with permissions and everything.
Code:
[root@compute-01 temp]# mount
/dev/sdc1 on /mnt/1 type ext3 (rw)
/dev/sdc2 on /mnt/2 type ext3 (rw)
/dev/sdc4 on /mnt/4 type ext3 (rw)
 
Old 02-20-2012, 04:48 PM   #6
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Original Poster
Rep: Reputation: 0
ls -lah shows directories like this:
Code:
?---------  ? ?          ?             ?            ? mm9
?---------  ? ?          ?             ?            ? m-tmp
?---------  ? ?          ?             ?            ? mytmp
?---------  ? ?          ?             ?            ? numpy-1.6.1
 
Old 02-20-2012, 04:56 PM   #7
uhelp
Member
 
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205

Rep: Reputation: 43
Sorry. My fault.

No clue how i came to the assumption it is a windows drive...

Please give the exact "dd" command you used.

If you think it is only a matter of UUID, then use /dev/disk/by-id/whateverThisDriveIs
instead of /dev/sdc1
"ls -l" shows it.
 
Old 02-20-2012, 04:57 PM   #8
uhelp
Member
 
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205

Rep: Reputation: 43
Quote:
Originally Posted by daisychick View Post
ls -lah shows directories like this:
Code:
?---------  ? ?          ?             ?            ? mm9
?---------  ? ?          ?             ?            ? m-tmp
?---------  ? ?          ?             ?            ? mytmp
?---------  ? ?          ?             ?            ? numpy-1.6.1
that is very bad.
Something went terrible wrong.
 
Old 02-20-2012, 05:04 PM   #9
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Original Poster
Rep: Reputation: 0
heh, I broke out of it before it was finished because it was taking too long. 58 hours to copy 1.8TB to a usb drive. Took all weekend. I was thinking I would just use rsync to copy over what's missing. How do I show the uuid with ls?

dd command was
Code:
dd if=/dev/sda of=/dev/sdb conv=notrunc,noerror
 
Old 02-20-2012, 05:08 PM   #10
uhelp
Member
 
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205

Rep: Reputation: 43
It is always a good idea to cut of the engines over the atlantic ocean when the flight takes to much time.
Brings one quite fast back to drowning.

Change into directory and give "ls -l" or use
ls -l /dev/disk/by-id
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How can I change file permissions in windows ntfs partition.Even root can't change it e3399 Linux - Newbie 3 03-02-2011 11:54 PM
[SOLVED] filesystem permissions question - making so user can't change permissions? c0pe Linux - Security 4 07-12-2010 10:06 AM
How to change permissions rendani Linux - Software 1 07-09-2007 03:58 AM
Change permissions rust8y Solaris / OpenSolaris 4 11-20-2006 06:10 AM
How to change permissions? SonoranFun Linux - Newbie 4 11-02-2004 11:10 AM


All times are GMT -5. The time now is 06:49 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration