LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 12-11-2013, 10:12 PM   #1
sayhello_to_the_world
Member
 
Registered: May 2013
Posts: 220

Rep: Reputation: Disabled
storing data to external hdd ends up in creating folders - nothing more


hello dear linux -experts,

running a new extern harddrive

and i work with linux (opensuse 12.3)

i want to copy data to the extern drive (NTFS) - but what happenes

there only folders were created - nothing more. Why !?

i have no glue at all.

btw. i try to do these backups with dolphin.
i am not so familiar with terminal.


plz advice

greetings
 
Old 12-12-2013, 03:34 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,926

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by sayhello_to_the_world View Post
hello dear linux -experts,

running a new extern harddrive and i work with linux (opensuse 12.3) i want to copy data to the extern drive (NTFS) - but what happenes there only folders were created - nothing more. Why !?

i have no glue at all.

btw. i try to do these backups with dolphin. i am not so familiar with terminal.
plz advice
Spell out your words, please. And what do you mean by "I have no glue at all"???

You don't say how you're trying to do 'backups' with dolphin...assuming you mean you want to COPY the files, but depending on how they're selected, what options you have in dolphin, that could be a problem...also in how you paste them.

All you need to do to copy folders from the command line is use the "-R" flag...again, read the man pages. If you want to copy everything from one directory to another, you would type in:
Code:
cp -R /home/documents/* /media/externaldrive
...and press ENTER.
 
Old 12-12-2013, 06:03 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Quote:
Originally Posted by sayhello_to_the_world View Post
hello dear linux -experts,

running a new extern harddrive

and i work with linux (opensuse 12.3)

i want to copy data to the extern drive (NTFS) - but what happenes

there only folders were created - nothing more. Why !?

i have no glue at all.

btw. i try to do these backups with dolphin.
i am not so familiar with terminal.


plz advice

greetings
1. how did you mount the external drive?
2. what commands have you issued to copy the data?
3. what commands have you issued to verify that the data did not copy and only created directories?

please use the code flags to demonstrate EXACTLY what you typed and what the exact results is from the computer. ex: [ code ] foo [ / code ] just remove the spaces between [ ] and / you will get an output like so:

Code:
[user@centos ~]$ d Pi/
total 16
drwxrwxr-x.  4 user user 4096 Feb 15  2013 ./
drwx------. 19 user user 4096 Dec 12 18:01 ../
drwx------.  2 user user 4096 Feb 15  2013 rpfr-17-xfce-r1/
drwx------.  2 user user 4096 Feb 15  2013 rpfr-17-xfce-r2/
[user@centos ~]$ cp .DS_Store Pi/
[user@centos ~]$ d Pi/
total 24
drwxrwxr-x.  4 user user 4096 Dec 12 18:02 ./
drwx------. 19 user user 4096 Dec 12 18:01 ../
-rw-------.  1 user user 6148 Dec 12 18:02 .DS_Store
drwx------.  2 user user 4096 Feb 15  2013 rpfr-17-xfce-r1/
drwx------.  2 user user 4096 Feb 15  2013 rpfr-17-xfce-r2/
side note, in my server d is an alias for ls -laF

Code:
[user@centos ~]$ alias
alias d='/bin/ls -laF'
alias dird='/bin/ls -laFp | grep /'
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
alias vi='vim'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
now i did not mount an external drive, etc... but this should give you some kind of idea what we need to further help you.
 
Old 12-13-2013, 02:28 PM   #4
sayhello_to_the_world
Member
 
Registered: May 2013
Posts: 220

Original Poster
Rep: Reputation: Disabled
hello dear lleb


first of all - many many thanks for the quick answer - and your explanations.

here what i did today (i did this before i read your posting)

note - it was formated with ntfs

several hours ago i used the opensuse 12.3 patitioner -

yast:: system:: partitioner

i formated this terabyte hdd with ext4

now i cannot write to it - i think i have to mount it:

which mounting point i have to use!?

see the protocoll:
i tried to use the mounting point srv - it did not work - i tried to change...


mounting-point /dev/sdb1 to /usr/local changed

it tid not work: What can i do now

Quote:
Gerät: /dev/sdb1
Größe: 931.51 GB
Verschlüsselt: Nein
Gerätepfad: pci-0000:00:12.2-usb-0:1:1.0-scsi-0:0:0:0-part1
Geräte-ID 1: ata-ST1000DM003-1CH162_S1DE523L-part1
Geräte-ID 2: scsi-SASMT_2105_B8140000000000000503-part1
Geräte-ID 3: wwn-0x5000c5006c7d7e56-part1
FS-ID: 0x83 Linux native
Dateisystem:
Dateisystem: Ext4

Einhängepunkt: /srv
Kennung: HDDRIVE2GO
lleb - can you help me - i need some advices


for any and all help i will be very very thankful

greetings
 
Old 12-13-2013, 02:55 PM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
as root issue the following commands
Code:
# fdisk -l
you are looking for the external drive name/lettering /dev/sdX# were X is a letter typically b-z and # is a number 1, 2, 3, etc... once this is located, write it down. I take it this is a USB connected external HDD. you may also wish to issue the following command:

Code:
# blkid
/dev/mapper/vg_centos-lv_root: UUID="5e28e0c1-91ea-49c8-8d9e-836e6c59efeb" TYPE="ext4" 
/dev/sdb1: UUID="7b6db420-abc8-4ad9-a8a1-a8da83552e09" TYPE="ext4" 
/dev/mapper/vg_centos-lv_swap: UUID="bb5d0ac4-0336-4d43-a3f5-fb76ca22220a" TYPE="swap" 
/dev/mapper/vg_centos-lv_home: UUID="3e4c900e-7e47-485d-a6d3-de8c541f3016" TYPE="ext4" 
/dev/sdb2: UUID="DLsmEj-NyRX-4v8T-iuew-R0ol-LWj8-KxB1lf" TYPE="LVM2_member" 
/dev/sdc1: UUID="dfba63a0-9b78-44bf-bb5f-12f141472a06" TYPE="ext4" 
/dev/sda1: UUID="2284e13a-7d41-461d-aa97-131612ac6174" TYPE="ext4"
Note that this is a different way to mount a device, but as your is most likely USB this will reduce the risk of a drive letter change. Think MS Windows. Sometimes when you plug in a USB device it is drive letter E:\ while other times it might be D:\ or F:\ for that matter yet it is always the same device.

drive letter changing is one of issues with USB connected HDDs for backups and other means of transferring/transmitting data via scripts.

now you need to create its mount point

Code:
# mkdir /mnt/external
thats just for giggles. call the mount point what ever you wish, but do keep in mind if your system automagically mounts it will probably either be in
Code:
/media 
or
/media/run
or something along those lines.

now you can either manually mount the drive or add it to your fstab and have it mount with the system booting.

Code:
# cat /etc/fstab 

#
# /etc/fstab
# Created by anaconda on Fri Jan  4 14:43:59 2013
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_centos-lv_root /                       ext4    defaults        1 1
UUID=7b6db420-abc8-4ad9-a8a1-a8da83552e09 /boot                   ext4    defaults        1 2
/dev/mapper/vg_centos-lv_home /exports/centos                   ext4    defaults        1 2
/dev/mapper/vg_centos-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
UUID=2284e13a-7d41-461d-aa97-131612ac6174	/exports/NFS	ext4	rw,user	0 0
note the difference, no " " around the UUID numbers. this is important.

also to mount it manually i believe, but am not 100% on this this command should work for you:
Code:
mount -t ext4 UUID=2284e13a-7d41-461d-aa97-131612ac6174 /exports/NFS
in my case that is. as for making it so normal users can access this share you should read up on sudo and the visudo file as well as setting and changing permissions and ownership.

this is make it r/w but only for the root user. you still will need to read up on changing permissions.

http://linuxcommand.org/lts0070.php

http://www.linux.org/threads/file-pe...ns-chmod.4094/

http://www.linux.com/learn/tutorials...le-permissions
 
Old 12-13-2013, 03:15 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by sayhello_to_the_world View Post
which mounting point i have to use!?
Whatever you want, but whatever you decide to use, you have to create it first with mkdir. Make it something new and unique to that drive. Most importantly, it should be an empty directory, as any files or directories in there will disappear when you mount the drive, you should NOT use a critical system directory like /usr/local!

Quote:
Originally Posted by sayhello_to_the_world View Post
i tried to use the mounting point srv - it did not work - i tried to change...


mounting-point /dev/sdb1 to /usr/local changed

it tid not work: What can i do now
I have no idea what any of this means. You have provided no information here...no commands, no output, no error messages.
 
Old 12-13-2013, 03:28 PM   #7
sayhello_to_the_world
Member
 
Registered: May 2013
Posts: 220

Original Poster
Rep: Reputation: Disabled
helllo you both

many many thanks for the hints.




first of all here we have the results for the command fdisk -l
note - this was the first thing i did after reading the above posts:

afterwards - that means in the next hour i want to create its mount point
with

Code:
# mkdir /mnt/external

or with that:
Code:
/media 
or
/media/run
note - iwill do it in the next few hours - and come back and report all the findings.

first of all - here we have the very very first results oft the fdisk command...

Code:
Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1              63     8385929     4192933+  82  Linux Swap / Solaris
/dev/sda2         8385930     8594774      104422+  83  Linux
/dev/sda3         8594775     8803619      104422+  83  Linux
/dev/sda4   *     8803620   976768064   483982222+   5  Erweiterte
/dev/sda5         8803683    12996584     2096451   83  Linux
/dev/sda6        12996648    21382514     4192933+  83  Linux
/dev/sda7        21382578    42347339    10482381   83  Linux
/dev/sda8        42347403    63312164    10482381   83  Linux
/dev/sda9        63312228    84276989    10482381   83  Linux
/dev/sda10       84277053    88469954     2096451   83  Linux
/dev/sda11       88470018    96855884     4192933+  83  Linux
/dev/sda12       96855948   117820709    10482381   83  Linux
/dev/sda13      117821440   159766527    20972544   83  Linux
/dev/sda14      159768576   976766975   408499200   83  Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 Köpfe, 63 Sektoren/Spur, 121601 Zylinder, zusammen 1953525168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xcd407128
                                                                                                                                                                                                
   Gerät  boot.     Anfang        Ende     Blöcke   Id  System                                                                                                                                  
/dev/sdb1   *          64  1953520063   976760000   83  Linux

what do you say.... [sorry for the german tongue - i will try to do the commands in engl. Utf8 in the future...


look forward to hear from you
greetings
 
Old 12-13-2013, 03:30 PM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Looks like you're ready to mount it
Code:
mkdir -p /mnt/external
mount /dev/sdb1 /mnt/external
Of course you can change "/mnt/external" to any directory you want (so long as it's not a critical system directory).
 
Old 12-13-2013, 04:44 PM   #9
sayhello_to_the_world
Member
 
Registered: May 2013
Posts: 220

Original Poster
Rep: Reputation: Disabled
hello dear suicidaleggroll - many many thx for all.

i did it - as you adviced

Quote:
Originally Posted by suicidaleggroll View Post
Looks like you're ready to mount it
Code:
mkdir -p /mnt/external
mount /dev/sdb1 /mnt/external
Of course you can change "/mnt/external" to any directory you want (so long as it's not a critical system directory).

hmm i did it: but at the moment i cannot copy anything to the drive?
note: i tried to copy with dolphin - but it did not work

what can i do now!? What can i try now.

any command for the commandline to - check the system?
 
Old 12-13-2013, 05:02 PM   #10
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
You keep saying "it doesn't work", but provide no other details. WHAT isn't working? Are you getting an error message? Is the directory not visible? Does it act like it's copying but nothing shows up? You need to provide more information than "it doesn't work" in order for us to see what's going on.
 
Old 12-13-2013, 05:55 PM   #11
sayhello_to_the_world
Member
 
Registered: May 2013
Posts: 220

Original Poster
Rep: Reputation: Disabled
hello dear suicidaleggroll


thx for the quick reply.

Quote:
Originally Posted by suicidaleggroll View Post
You keep saying "it doesn't work", but provide no other details. WHAT isn't working? Are you getting an error message? Is the directory not visible? Does it act like it's copying but nothing shows up? You need to provide more information than "it doesn't work" in order for us to see what's going on.

hmm youre right!

i can see the diretory - all that is nice.

well if i try to do a copy into that - with dolphin - it does not work -
note: i can see the directory - but if i copy a folder from the home-of my machine and want to subsequently
copy it to the external hdd - then it fails.

note: i cannot create a directory in the external hdd -

if i try to do so - with dolphin, it does not work at all. i am not able to create a diretcory within the external hdd - at least not with dolphin. And - another trial: if i try to copy a file from home - and try to put it to the external hdd - then it is not possible to put the file to the external directory.



note: if i move the file - in dolphin - to the external diretory then the folder is shown "invers" that means it is not accessible or writeable....

what can i do!?
 
Old 12-13-2013, 06:36 PM   #12
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Open a terminal and try copying something that way
Code:
cp /path/to/some/file /mnt/external/
And post the result, including any error message if there was one.

It sounds like it may just be a permissions issue.
 
Old 12-13-2013, 07:50 PM   #13
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Quote:
Originally Posted by sayhello_to_the_world View Post
hello dear suicidaleggroll - many many thx for all.

i did it - as you adviced




hmm i did it: but at the moment i cannot copy anything to the drive?
note: i tried to copy with dolphin - but it did not work

what can i do now!? What can i try now.

any command for the commandline to - check the system?
ok when you state you tried to copy via dolphin, that indicates to me that you are using the GUI tools to try and copy the data to the drive that is mounted by root and is for root access only.

thus my links above on how to change file permissions so that your user can access the drive.

if those links dont translate well, please indicate what you do and do not understand.
 
  


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
creating a multi-boot partion on an external HDD jms89 Linux - Newbie 2 01-25-2013 04:27 PM
[SOLVED] Data Recovery for External HDD Novatian Linux - Software 1 11-19-2010 09:49 AM
Storing data to an external device from my Aspire One trevorj Linux - Newbie 7 08-19-2010 07:30 PM
I/O error while copying some data on to external HDD gary4gar Linux - Hardware 2 10-31-2007 04:50 AM
Creating bootable image of FC-4 on external HDD quest.science Fedora 1 01-30-2007 06:02 AM


All times are GMT -5. The time now is 05:13 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