Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-20-2011, 10:51 PM   #1
LQ Newbie
Registered: May 2011
Posts: 2

Rep: Reputation: Disabled
Cannot rename or delete image folders

I am happy to report I successfully setup a cloning station using Ubuntu 10.4 Lucid Lynx and Clonezilla.

I learned the hard way you have to restore images to a hard drive of a larger size than the drive the image was ripped from. I had already ripped 6 or more images and have them in the Home_Partimag folder and cannot delete or rename these images.

I want to remake these images and rip them from smaller hard drives.

Any commands I can use to be able to do this?
Old 05-20-2011, 10:59 PM   #2
LQ Guru
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,150

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
Check the owner:group of the image files and permissions. If you don't know how, post back.
Old 05-28-2011, 06:11 PM   #3
LQ Newbie
Registered: May 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
I have learned how through the command line to delete the images I do not need. I have been unable to transfer and image I have save to a flash drive using Clonezilla Live to my servers Home/Partimag folder.

One of my techs screwed up my server trying to change the login privledges etc. I had to start from scratch. Ended up getting fired because the bosses just do not understand what I am doing. I successfully cloned 5 units but then had this setback. It only took me about an hour to reset everything and they came to me and asked "is it working?" I said "it worked" but... Then it just spiraled out of control. I am the only guy that understands what is going on and can take our production from 10-20 units a per day to 100+ per day. Too bad I hurt their feelbads.

I feel accomplished nonetheless and would like to know the command I need to copy from the desktop or flash drive to the home/partimag folder.

Last edited by Neo727; 05-28-2011 at 06:17 PM.
Old 05-28-2011, 06:32 PM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Firstly, I'm not certain if the flash drive contains an image written over the entire device, or contains files of images. For files over 2 GB you don't want to use a fat32 filesystem.

It doesn't sound like you understand mount points. If the flash drive is mounted, and you want to copy files to or from it, you do so from the mount point. E.G. cp /media/flash/file /home/username/Desktop/.

If the flash drive had a image written over the flash device itself, and you want to use the partition/filesystems image to recreate that filesystem, you would use dd as root:
Here is an example using dd to copy the image from /dev/sdb to the main drive /dev/sda. This would replace everything on /dev/sda. You might do this from a live distro to create a bare metal backup:
dd if=/dev/sdb of=/dev/sda bs=1024

More likely, you would use dd to copy an image file:
dd if=/media/flash/imagefile of=/dev/sda bs=1024

For production servers, they may use Red Hat. Red Hat uses LVM volumes, so there would be a lot more for you to learn. I'd recommend installing Fedora Core, CentOS or Scientific Linux on your own system.

Last edited by jschiwal; 05-28-2011 at 06:34 PM.


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
find -exec command to recursively delete files and folders in folders with X name Joan Murt Linux - Newbie 2 07-08-2009 05:35 PM
Cannot rename or delete files Josho Linux - Newbie 3 04-07-2009 03:47 PM
Need to rename files and folders with invalid characters in the names laureynsr Linux - Newbie 5 04-01-2009 04:13 PM
Rename multiple files in folders??? adds2one Linux - Software 19 10-05-2006 01:22 AM
how do i delete and rename my file in c++? christina_rules Programming 5 06-24-2006 01:05 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:32 PM.

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