LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-26-2009, 06:35 AM   #1
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Rep: Reputation: 33
problems with filesystem


I have slackware 13 on my laptop for 3 weeks. I've installed partimage and try to run it to make image, but it says that there is errors on my filesystem.

I do the following in console (logout KDE)

1. init 1
2. login as root
3. umount /dev/sda4 ;my linux partition, but it notify me that the device is not mounted and I continue to the next step
4. fsck.ext3 -v -y /dev/sda4 ;it says that the FS is clean
5. fsck.ext3 -v -y -f /dev/sda4 ;it run for 1-2min and fix all errors. I run it again just in case to see it will be errors again, OK
6. mount /dev/sda4 ;it says that device is already mounted
7. init 3
8. login, start partimage again but the same error occur.

Any idea? Maybe not umount and mount device properly?

I get "Device not mounted" on step 4 and 5
and "Already mounted" on step 6

What I am not doing good?

Last edited by konzo; 11-26-2009 at 06:37 AM.
 
Old 11-26-2009, 06:44 AM   #2
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 32
Are you trying to image your /home or root partition while using them at the same time ?

I'd use a live CD for that.
 
1 members found this post helpful.
Old 11-26-2009, 08:39 AM   #3
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Original Poster
Rep: Reputation: 33
Yes, but umount command didn't unmount the device.

I have "System rescue cd" and fsck.ext3 -v -y -f /dev/sda4 run with no warning, but can't make partition image because sda4 is my only ext3 partition and I don't know how to tell partimage to record image elsewhere.

I have 1TB external drive, but I can't see it in /dev.

In addition to that slackware didn't recognize my mouse, audio device and keyboard anymore, when I login to KDE.

Anyway I will reinstall. Tell me what I have to make in order to make an image of my drive if fsck find errors on my filesystem again?
 
Old 11-26-2009, 09:30 AM   #4
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 32
Well, using the system rescue cd is good.

I just tested it on my system, and it sees external usb disks no problem. That would be an easy way to add storage temporarily for backup. If you don't like usb storage you can use NFS or samba mounts as well.

After booting from the CD you can see all available storage with something like

Code:
fdisk -l
and mount a partition (to store the image, not the one you want to backup)

Code:
mount /dev/some_partition /XX
Then just use something like this on the command line:

Code:
partimage -z 1 save /dev/sda1 /XX/image.gz
Replace /dev/sda1 with the partition you want to backup. In this case I just mounted the external usb disk to /XX and used it to store the image.

Very straight forward. The main point here is that you simply _can't_ (and shouldn't) image a partition while it is mounted.

Last edited by rtspitz; 11-26-2009 at 09:32 AM.
 
1 members found this post helpful.
Old 11-26-2009, 09:53 AM   #5
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,617

Rep: Reputation: 442Reputation: 442Reputation: 442Reputation: 442Reputation: 442
Quote:

I have "System rescue cd" and fsck.ext3 -v -y -f /dev/sda4 run with no warning, but can't make partition image because sda4 is my only ext3 partition and I don't know how to tell partimage to record image elsewhere.
Konzo,

You should get familiar first the application before using it, you are working on partitions, if you have no time reading partimage Help or Tutorial you should not dare use it or you'd damage your files.

Quote:
I have 1TB external drive, but I can't see it in /dev.
Try issue command: --$: sudo fdisk -l
After entering password you should see how your hard disk is appropriated.

Quote:
In addition to that slackware didn't recognize my mouse, audio device and keyboard anymore, when I login to KDE.
I cannot imagine why. Most mice today are well supported in Slackware.
Have you md5sum checked your Slackware DVD installer if it is perfectly copied?

Quote:
Anyway I will reinstall. Tell me what I have to make in order to make an image of my drive if fsck find errors on my filesystem again?
fsck objects when being run against a mounted system drive. That's self evident. If you want an integrity check over your system disk you should boot from another drive, say a live CD.
Your decision to reinstall is wise, that's the only way to be certain for now that you are not yet closely familiar with linux. Before you install use 'md5sum' command to check whether the DVD installer is healthy or not.

BTW, to copy or image a partition you do not need partimage. There is a linux command so powerful to do that yet so simple to play with. Use 'dd' command. To learn 'dd' command read the manual, issue this on terminal: --$ man dd

Try do this:

dd if=/dev/sda4 of=/filename bs=1024

This should write a 1:1 image of sda4 partition into that 'filename', using blocks of 1024 size. (you can omit 'bs=1024' it will use default. There is also an archiving option. See an example how dd works even in remote copying here. A HowTO for dd is here.

Hope this helps.
Good luck.

Last edited by malekmustaq; 11-26-2009 at 09:57 AM.
 
1 members found this post helpful.
Old 11-26-2009, 10:22 AM   #6
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 32
If you don't feel familiar enough with linux in general, I strongly suggest to stay away from dd !

It is a very powerful tool and makes it all too easy to destroy ALL of your data just by pressing enter. You can do that with partimage as well, but the user interface makes it easier to handle and verify that what you entered is really what you want.

Every time you use dd as root should make some drops of cold sweat run down your forehead.

Last edited by rtspitz; 11-26-2009 at 10:24 AM.
 
1 members found this post helpful.
Old 11-27-2009, 04:17 AM   #7
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Original Poster
Rep: Reputation: 33
Thank you guys for the advices. I'll try to make image and place it on the external hdd before reinstall just to see it work.

Quote:
Originally Posted by malekmustaq View Post
Konzo,
I cannot imagine why. Most mice today are well supported in Slackware.
Have you md5sum checked your Slackware DVD installer if it is perfectly copied?
When I install slackware everithing was working, even the screen resolution was ok. I am amazed with it just type dhcp to get settings from my ruter and start working.
The mouse and others stop working when I run fsck with rescue cd and when booting, it run again. Both times filesystem was modified. I thing that messed things up.

Anyway, I will try and reinstall. I'll make image with partimage and will take care with dd later. I'm trying different distros and have nothing to loose. Thank you again!
 
  


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
problems during filesystem encryption raklo Linux - Software 0 12-21-2006 01:55 AM
Problems with root filesystem Sushy Slackware 4 10-15-2005 07:44 AM
Filesystem Problems markus79 SUSE / openSUSE 1 10-14-2005 11:22 AM
Filesystem problems... Nazxul Linux - General 15 04-11-2005 02:28 PM
problems with root filesystem ramzai Linux - Newbie 2 02-11-2005 02:04 PM


All times are GMT -5. The time now is 06:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration