Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Other Versions > EOL (End Of Life) Versions
FedoraForum Search

Forgot Password? Join Us!

EOL (End Of Life) Versions This is a Forum to discuss problems and workarounds for versions of Fedora that have passed End of Life.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 8th March 2005, 11:57 PM
abeurts Offline
Registered User
 
Join Date: Mar 2005
Posts: 17
Cdrom issues after fresh installation of fc3 # 2.6.10-177

I have recently done a fresh install of fc3 cleaning all previous data on my hard drive. All my /home directories have been backed up on a CD-RW as home-backup.tgz. For some reason when I try to extract the files onto
my empty home directory its telling me that I don't have permission. In the command line as su I have attempted chmod 777 home-backup.tgz with no success. I suspect the problem has to do with the fresh installation of fc3.
I'm a newby so would greatly appreciate your help as I have already reinstalled fc3 twice and updated all software with up2date and still have the same problem.

Below I have listed a portion of what shows under system log:

Quote

Mar 7 10:19:49 S010600087448bb2c kernel: ide1: BM-DMA at 0xbfa8-0xbfaf, BIOS settings: hdcMA, hddio
Mar 7 10:19:49 S010600087448bb2c kernel: hdc: MAT****A CD-RW UJDA360, ATAPI CD/DVD-ROM drive
Mar 7 10:19:49 S010600087448bb2c kernel: hdc: ATAPI 24X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Mar 7 10:24:03 S010600087448bb2c fstab-sync[2991]: added mount point /media/cdrecorder for /dev/hdc
Mar 7 10:34:52 S010600087448bb2c kernel: SELinux: initialized (dev hdc, type iso9660), uses genfs_contexts
Mar 7 12:22:29 S010600087448bb2c kernel: SELinux: initialized (dev hdc, type iso9660), uses genfs_contexts
Mar 7 12:50:16 S010600087448bb2c kernel: hdc: media error (bad sector): status=0x51 { DriveReady SeekComplete Error }
Mar 7 12:50:16 S010600087448bb2c kernel: hdc: media error (bad sector): error=0x30
Mar 7 12:50:16 S010600087448bb2c kernel: end_request: I/O error, dev hdc, sector 746772
Mar 7 12:50:16 S010600087448bb2c kernel: Buffer I/O error on device hdc, logical block 186693
Mar 7 12:50:18 S010600087448bb2c kernel: hdc: media error (bad sector): status=0x51 { DriveReady SeekComplete Error }

Unquote

Thank you
Reply With Quote
  #2  
Old 9th March 2005, 02:15 AM
<(X)_HD_(X)> Offline
Registered User
 
Join Date: Feb 2005
Location: Oklahoma
Posts: 62
Check who is the owner og the tgz file with $ll *tgz
to change owner use chown shell command.
Reply With Quote
  #3  
Old 9th March 2005, 05:20 AM
abeurts Offline
Registered User
 
Join Date: Mar 2005
Posts: 17
Below please find the ownership details on the files I'm trying to extract. As you can see I also tried to change the ownership
with chown 777 with no success.
[root@S010600087448bb2c cdrecorder]# ls -l
total 578895
-r--r--r-- 1 root root 4144453 Feb 2 12:40 ect-backup.tgz
-r--r--r-- 1 root root 588643387 Feb 2 12:52 home-backup.tgz
[root@S010600087448bb2c cdrecorder]# chown 777 home-backup.tgz
chown: changing ownership of `home-backup.tgz': Read-only file system
[root@S010600087448bb2c cdrecorder]#

Alex
Reply With Quote
  #4  
Old 9th March 2005, 01:33 PM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,855
What are the permissions on your home directory?
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
  #5  
Old 9th March 2005, 02:55 PM
jowah Offline
Registered User
 
Join Date: Dec 2004
Location: Under your bed
Posts: 293
Quote:
Originally Posted by abeurts
Below please find the ownership details on the files I'm trying to extract. As you can see I also tried to change the ownership
with chown 777 with no success.
Code:
[root@S010600087448bb2c cdrecorder]# ls -l
total 578895
-r--r--r--  1 root root   4144453 Feb  2 12:40 ect-backup.tgz
-r--r--r--  1 root root 588643387 Feb  2 12:52 home-backup.tgz
[root@S010600087448bb2c cdrecorder]# chown 777 home-backup.tgz
chown: changing ownership of `home-backup.tgz': Read-only file system
[root@S010600087448bb2c cdrecorder]#
Alex
What you're trying to do there is changing properties of a file that's sitting on a CD-ROM disc, hence the failure. As the error message tells you, the CD is a read-only file system. Not even root can do that

Now, this would work:
Code:
# cd /home
# tar xzf /media/cdrecorder/home-backup.tgz
I'm assuming that the home-backup was made while standing in /home, meaning that the contents of home-backup.tgz is something like
Code:
user1/...
user2/...
user3/...
If, on the other hand, you created it from the "/" level and the archive contains files like
Code:
home/user1/...
home/user2/...
home/user3/...
you'd have to do
Code:
# cd /
# tar xzf /media/cdrecorder/home-backup.tgz
Check the contents of the archive with
Code:
# tar tvzf /media/cdrecorder/home-backup.tgz|less
before unpacking it, just to be sure.

Now, seeing how you have SELinux enabled (good, but can be troublesome sometimes) you'd want to make sure the files you restore are re-labeled correctly. Do this by
1 - creating a file ".autorelabel" in the root of the filesystem you want relabeled (assuming /home here)
2 - reboot
Code:
# touch /home/.autorelabel
# reboot
If you only have one partition for your whole installation, you'd make the first step there "touch /.autorelabel" instead.

Bonus tip: see that long "[root@S010600087448bb2c cdrecorder]" prompt? You might want to disable IPv6 useage on the machine. See here.

Last edited by jowah; 9th March 2005 at 09:57 PM.
Reply With Quote
  #6  
Old 9th March 2005, 03:53 PM
<(X)_HD_(X)> Offline
Registered User
 
Join Date: Feb 2005
Location: Oklahoma
Posts: 62
Quote:
chown 777 home-backup.tgz
This is wrong . $chown you.you <file> thats how
you is your user name.
Yes he was right, copy the files from the cd first, then change the permissions.
do $man chown and $man chmod in your terminal, that will clear a few things for you.
Reply With Quote
  #7  
Old 9th March 2005, 07:37 PM
abeurts Offline
Registered User
 
Join Date: Mar 2005
Posts: 17
Hi Jowah,
Your explanation was very comprehensive and full of detailed information. Thank you very much.
Unfortunately I was not able to recover all archived data I got the following error message:

I followed you instrucciones and first listed all files archived with the following command:

# tar tvzf /media/cdrecorder/home-backup.tgz|less

then noticed that the home directory was under / so extracted with following command:

# cd /

# tar xzf /media/recorder/home-backup.tgz

Most directories were extracted except for my Mail directory and some other ones I can recall. THe error I got is the following:

Quote
gzip: stdin: Input/output error
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

Unquote

Because I archived my /Home directory entirely I have a lot of system files that I'm not interested in
extracting into my clean /home directory. I would just like to extract directory that contains for example
my emails, email addresses and files I have created with calc or writer ??
I looked on the internet to see if there is a way to just list the directories but could not find anything.

Thank you for your help.
Reply With Quote
  #8  
Old 9th March 2005, 10:45 PM
jowah Offline
Registered User
 
Join Date: Dec 2004
Location: Under your bed
Posts: 293
Quote:
Originally Posted by abeurts
Most directories were extracted except for my Mail directory and some other ones I can recall. THe error I got is the following:
Code:
gzip: stdin: Input/output error
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
Yep, this confirms what your first post reflected - the log says the CD was partially unreadable/damaged. Bad burn? Faulty media? Crappy CD-writer? All of the above? Who knows?

So what to do now? Well, if you have another computer nearby, perhaps one running Windows, you might be able to read the CD under that OS and then transfer the tar file to your Linux machine over the net. Or, if it's small enough, put it on a USB memory stick and do it that way.
Quote:
Because I archived my /Home directory entirely I have a lot of system files that I'm not interested in extracting into my clean /home directory. I would just like to extract directory that contains for example my emails, email addresses and files I have created with calc or writer ?? I looked on the internet to see if there is a way to just list the directories but could not find anything.
Do you have enough free disk space? Check for free disk space by using df and add the "-h" parameter to have it report in Megabytes or Gigabytes.
Code:
# df -h
You might want to unpack the backup into a temporary folder, say into /tmp and then manually move things out of that an place them where you want them
Code:
# cd /tmp
# cp /media/cdrecorder/home-backup.tgz .
(now we wait and hope the CD-reader can read the whole file just fine)
# tar xzf home-backup.tgz
(Lots of stuff gets unpacked into /tmp/home/... )
After that, you'd have to manually copy over what you want to where you want it.

Last edited by jowah; 9th March 2005 at 10:47 PM.
Reply With Quote
  #9  
Old 10th March 2005, 01:28 AM
abeurts Offline
Registered User
 
Join Date: Mar 2005
Posts: 17
Yes there is enough room on the system:
Quote
[alex@S010600087448bb2c ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
27G 4.0G 22G 16% /
/dev/hda1 99M 12M 82M 13% /boot
none 126M 0 126M 0% /dev/shm
Unquote

I will try sending sending the file over the net from a computer running WIndows.
Thank you very much
Reply With Quote
Reply

Tags
177, cdrom, fc3, fresh, installation, issues

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CDROM issues on ASUS M51VA tkalfaoglu Hardware & Laptops 1 17th December 2008 04:34 AM
a few issues after fresh install angelbeast Using Fedora 3 12th November 2008 09:02 AM
Fresh install graphical issues. niadh Installation and Live Media 13 23rd October 2007 11:27 PM
Yum issues fresh install GrandpaGenocide Using Fedora 14 14th May 2007 04:02 PM
Fresh FC6 Installation, Screen Resolution Issues rlevitin EOL (End Of Life) Versions 6 19th January 2007 11:28 PM


Current GMT-time: 19:03 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat