LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 02-09-2009, 04:36 PM   #1
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Rep: Reputation: 32
backup issues


Hi my pclinux grub kept giving error tmp directories full. Same thing for root and user.

I want to backup my home directory to my usb music player. When I boot into as text mode. I have an external usb drive with two ntfs partitions.
I also have an 18 gig COWON IAUDIO7 media player.

When I can use

cd /media

I get

disk/ disk-1/ disk-2/ I AUDIO7/ I AUDIO7-1

I can cd into disk, disk-1, disk-2 and don't recognize anything on the ntfs drive.

When I try to cd into I AUDIO7 i get "no such file or directory"

Please help I have to got to backup my /home directory
 
Old 02-09-2009, 04:50 PM   #2
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,240

Rep: Reputation: 196Reputation: 196
I AUDIO7 directory's name has a space inside. Try cd "I AUDIO7" command (put directory's name in quotes).
 
Old 02-09-2009, 05:01 PM   #3
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
that's great! Now I can go into the I AUDIO7 directory.

But now when I do

cp /home/username /media/"I AUDIO7"

I get

cp: omitting directory '/home/username'
 
Old 02-09-2009, 05:05 PM   #4
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
and the strange thing is when I cd into I AUDIO7 and I AUDIO7-1 it does not show any of the files I recognize.

I did not deliberately create two partitions. So what is I AUDIO7-1?
 
Old 02-09-2009, 05:05 PM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Use
Code:
cp -R
 
Old 02-09-2009, 05:06 PM   #6
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
In fact none of the disks show any files?????
 
Old 02-11-2009, 12:50 PM   #7
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
could some body help me with this?

I cannot boot into kde

I have the console but don't know how to copy my home directory to external usb hard drive.

I can see the the drive when I do

cat /proc/scsi/scsi

i just don't know what the name of the drive is when I write to it.

Please help
 
Old 02-11-2009, 12:56 PM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
What is the output from
Code:
dmesg
when, you plugin the drive?
What is the output from
Code:
fdisk -l
with the drive attached?
 
Old 02-11-2009, 01:10 PM   #9
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
You could start by logging into the terminal as root and deleting all of the files in /tmp. Then reboot and see if you can login normally.,

To write to an ntfs filesystem, use the ntfs-3g filesystem. This is a fuse module. You may need to install the fuse & ntfs-3g filesystems.

You can try mounting your external drive manually. First you need to know which device it is. Monitor /var/log/messages while inserting the external drive. See which partition(s) is(are) detected.
sudo tail -f /var/log/messages

Another way is to use "fdisk -l" and see which partitions are ntfs:
Code:
/dev/sda4           23198       24322     9027584   17  Hidden HPFS/NTFS
You can look up details about a particular partition using "udevinfo".
Code:
udevinfo -q env -n sda4
ID_VENDOR=ATA
ID_MODEL=TOSHIBA_MK2049GS
ID_REVISION=LC00
ID_SERIAL=SATA_TOSHIBA_MK2049G_48CYT01OT
ID_SERIAL_SHORT=48CYT01OT
ID_TYPE=disk
ID_BUS=scsi
ID_ATA_COMPAT=TOSHIBA_MK2049GSY_48CYT01OT
ID_PATH=pci-0000:00:1f.2-scsi-0:0:0:0
ID_FS_USAGE=filesystem
ID_FS_TYPE=ntfs
ID_FS_VERSION=3.1
ID_FS_UUID=7CEC8E10EC8DC4BC
ID_FS_UUID_ENC=7CEC8E10EC8DC4BC
ID_FS_LABEL=HDDRECOVERY
ID_FS_LABEL_ENC=HDDRECOVERY
ID_FS_LABEL_SAFE=HDDRECOVERY
Suppose that the external drive is /dev/sdb and the first ntfs partition is /dev/sdb1.
Code:
# make sure the fuse kernel module is loaded
sudo /sbin/modprobe fuse

# create a mount point under /mnt
sudo mkdir /mnt/ntfs_1

# mount the ntfs filesystem
sudo mount -t ntfs-3g /dev/sdb1 /mnt/ntfs_1 rw,uid=<yourusername>,fmask=0117,dmask=0007,utf8

# backup your /home directory
tar -C / -cxzf /mnt/ntfs_1/home_bu.tar.gz /home
Here I used the tar program. Since you are backing up to an ntfs filesystem, it won't save the permissions, attributes or acls for the files. Creating an archive backup, this metadata is saved as well.

You might want to read Section 5.2 of the "tar" info manual. It covers using the -g option for incremental dumps. You could use this option and backup only new files in the future.

Last edited by jschiwal; 02-11-2009 at 01:21 PM.
 
Old 02-11-2009, 01:52 PM   #10
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
many thanks for all the replies. First of all to clarify a few changes since my initial post. I had a spare drive which I formatted in reiser fs and using as external usb drive.

When I do fdisk-1 I get


/dev/hda1 swap ( bootable ) (start at 1) end at 219 id 82 swap ( blocks 1759086 )
/dev/hda2 / start at 220 end at 1422 / ( blocks 9663097 )
/dev/hda3 start at 1423 end at 7296 ( blocks 47182905 ) id 5 extended
/dev/hda5 start at 1423 end 7296 ( blocks 47182873) id 83 linux


If i remember correctly hda2 is root partition.
Swap is self explanatory
I know I had left arount 48 gig for /home but don't if if that translates into had3 or hda5. The whole hard drive is no more than 60 gigs.

Lower down from the fdisk table i have:

Disk /dev/sda: 160 GB 160041885696

Device boot: /dev/sda1
start: 1
End: 19457
Blocks: 156288321
Id: 83
System: linux


I am logged in as root

cp -R /home/username/ /dev/sda1/my_backup

or

cp -R /home/username /dev/sda1

I get following error:

cp: accessing '/dev/sda1/my_backup': not a directory
 
Old 02-11-2009, 01:54 PM   #11
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
BTW it was when I tried to delete the tmp files that now I am prevented logging in KDE. I now realize i deleted a couple of files with the .kde extension which I should have done.

I have to learn a good backup method for the future. I prefer the console method.
 
Old 02-11-2009, 02:04 PM   #12
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
you first need to mount the drive
Code:
mount /dev/sda1 /mount

Last edited by repo; 02-11-2009 at 02:06 PM.
 
Old 02-11-2009, 02:08 PM   #13
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
When i do

mount /dev/sda1 /mount

I get

mount: mount point /mount does not exist
 
Old 02-11-2009, 02:15 PM   #14
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
then you need to create it
Code:
mkdir /mount
 
Old 02-11-2009, 02:19 PM   #15
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
i am now getting

mkdir /mount
mkdir: cannot crate directory '/mount': No space left on device

This very strange because the internal hard drive should have plenty of space
I am under the [root@username /]# directory
 
  


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
Backup script issues onthefritz Programming 3 06-18-2008 07:32 PM
strange backup issues tanoatlq Linux - Software 6 05-16-2008 11:33 AM
Backup Exec Permissions issues greencabby Linux - Enterprise 1 02-13-2007 03:46 PM
backup server - permission issues Red Squirrel Linux - Software 3 02-26-2006 04:52 PM
Tape backup issues joe_sixpack Linux - General 0 10-02-2003 08:06 PM


All times are GMT -5. The time now is 01:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration