LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   storing data to external hdd ends up in creating folders - nothing more (https://www.linuxquestions.org/questions/linux-newbie-8/storing-data-to-external-hdd-ends-up-in-creating-folders-nothing-more-4175487659/)

sayhello_to_the_world 12-11-2013 09:12 PM

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

TB0ne 12-12-2013 02:34 PM

Quote:

Originally Posted by sayhello_to_the_world (Post 5079233)
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.

lleb 12-12-2013 05:03 PM

Quote:

Originally Posted by sayhello_to_the_world (Post 5079233)
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.

sayhello_to_the_world 12-13-2013 01:28 PM

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

lleb 12-13-2013 01:55 PM

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

suicidaleggroll 12-13-2013 02:15 PM

Quote:

Originally Posted by sayhello_to_the_world (Post 5080237)
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 (Post 5080237)
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.

sayhello_to_the_world 12-13-2013 02:28 PM

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

suicidaleggroll 12-13-2013 02:30 PM

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).

sayhello_to_the_world 12-13-2013 03:44 PM

hello dear suicidaleggroll - many many thx for all.

i did it - as you adviced

Quote:

Originally Posted by suicidaleggroll (Post 5080261)
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?

suicidaleggroll 12-13-2013 04:02 PM

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.

sayhello_to_the_world 12-13-2013 04:55 PM

hello dear suicidaleggroll


thx for the quick reply.

Quote:

Originally Posted by suicidaleggroll (Post 5080291)
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!?

suicidaleggroll 12-13-2013 05:36 PM

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.

lleb 12-13-2013 06:50 PM

Quote:

Originally Posted by sayhello_to_the_world (Post 5080286)
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.


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