LinuxQuestions.org
Help answer threads with 0 replies.
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 03-29-2017, 02:26 PM   #61
Chrisroot
Member
 
Registered: Mar 2017
Posts: 52

Original Poster
Rep: Reputation: Disabled

so if FAT does not support symlinks does not support this, then am i unable to do this process?
 
Old 03-29-2017, 02:44 PM   #62
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,317

Rep: Reputation: Disabled
You could use rsync command, it has an option not to copy symlinks ... if i remember correctly. Symlinks would be useless in Windows anyway.
 
Old 03-29-2017, 02:49 PM   #63
Chrisroot
Member
 
Registered: Mar 2017
Posts: 52

Original Poster
Rep: Reputation: Disabled
Could you show me the command for that and the placement?
 
Old 03-29-2017, 02:54 PM   #64
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,317

Rep: Reputation: Disabled
Quote:
Originally Posted by Chrisroot View Post
Could you show me the command for that and the placement?
No, I do not do spoonfeeding, you are a Gentoo admin after all, right? But you can show it to yourself by doing
Code:
man rsync
 
Old 03-29-2017, 03:00 PM   #65
Chrisroot
Member
 
Registered: Mar 2017
Posts: 52

Original Poster
Rep: Reputation: Disabled
I wouldn't really consider myself a Gentoo Admin, I'm just learning this as I go which by the way is pretty awesome. But thanks anyways.
 
Old 03-29-2017, 04:12 PM   #66
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,249

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by Chrisroot View Post
I wouldn't really consider myself a Gentoo Admin, I'm just learning this as I go which by the way is pretty awesome. But thanks anyways.
Chrisroot,

I had to be away for awhile. It looks as though the main issue here is that your USB drive was not actually mounted when you copied the files (which is odd, seeing as though you mentioned the command executed successfully). We'll go at it one step at a time from now on, since if the block device is not actually mounted at the time you are copying the files, the mount point is just a local directory.

Here's what I would do now:

- create a new mount point (I would avoid asking you to erase files from the current mount point in order to be as safe as possible)

Code:
mkdir /mnt/new_drive_c
- plug in your USB drive if not already done

- verify its block device with the command

Code:
fdisk -l
... to make sure it is still known as /dev/sdc1

- mount it to the new mount point:

Code:
mount -t vfat /dev/sdc1 /mnt/new_drive_c
- verify block devices and mount points again with the command df -lh ... it should read the following for your USB drive:

Code:
/dev/sdc1      <size>  <used>  <available>  <used%> /mnt/new_drive_c
- copy again:

Code:
cp -r /opt/biweb/app /mnt/drive_c/
- verify if files are copied :

Code:
ls -l -R /mnt/new_drive_c
- verify USB drive is still mounted with the command df -lh ... it should again read the following for your USB drive:

Code:
/dev/sdc1      <size>  <used>  <available>  <used%> /mnt/new_drive_c
- change directories away from the mount point and unmount the USB drive:

Code:
cd /

umount /mnt/new_drive_c
- it is important that you don't get any errors here

- unplug your USB drive

- verify if files are visible on Windows machine.

... I wouldn't worry about symlinks - the rest of the files should be readable.

Let us know if at any of the steps, you get unexpected results.

Cheers - don't give up ! :-)

Last edited by Rickkkk; 03-29-2017 at 04:14 PM.
 
Old 03-29-2017, 05:56 PM   #67
DDukes
LQ Newbie
 
Registered: Mar 2017
Posts: 12

Rep: Reputation: Disabled
@ OP

I think this article might help a bit. Of course, there will be instructions that are already mentioned here in the article as well as adding the usb entry to /etc/fstab if you want to. However, it focuses on allowing all users to mount a usb stick. Not sure if you want this or not.

https://wiki.gentoo.org/wiki/Removable_media

Last edited by DDukes; 03-29-2017 at 06:01 PM.
 
2 members found this post helpful.
Old 03-30-2017, 10:05 AM   #68
Chrisroot
Member
 
Registered: Mar 2017
Posts: 52

Original Poster
Rep: Reputation: Disabled
Is it possible to remove a directory from "SDC1", there are too many file systems attached to it ?
 
Old 03-30-2017, 10:29 AM   #69
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,249

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by Chrisroot View Post
Is it possible to remove a directory from "SDC1", there are too many file systems attached to it ?
... not sure what you're asking here, Chrisroot ... /dev/sdc1 is your USB drive.

Could you please clarify ?

Thx.
 
Old 03-30-2017, 10:37 AM   #70
Chrisroot
Member
 
Registered: Mar 2017
Posts: 52

Original Poster
Rep: Reputation: Disabled
Sorry i typed the command " mount -t vfat /dev/sdc1 /mnt/new_drive_c" to mount a new and bigger usb drive. But the output stated " mount : wrong fs type, bad option, bad superblock on .dev.sdc1, or too many mounted file systems. So i was wondering if it's possible to delete any thing from within there to be able to mount this new usb drive.
 
Old 03-30-2017, 10:47 AM   #71
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,249

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by Chrisroot View Post
Sorry i typed the command " mount -t vfat /dev/sdc1 /mnt/new_drive_c" to mount a new and bigger usb drive. But the output stated " mount : wrong fs type, bad option, bad superblock on .dev.sdc1, or too many mounted file systems. So i was wondering if it's possible to delete any thing from within there to be able to mount this new usb drive.
Sounds more to me like the new USB drive is formatted as something other than FAT. Also, the new USB drive may have been assigned a different block device (i.e. ... something other than /dev/sdc1 ...)

Could you post the output of this command again while your USB drive is plugged in, please ?

Code:
fdisk -l
Thx.

Last edited by Rickkkk; 03-30-2017 at 10:49 AM.
 
Old 03-30-2017, 10:52 AM   #72
Chrisroot
Member
 
Registered: Mar 2017
Posts: 52

Original Poster
Rep: Reputation: Disabled
Sure,

device boot start end blocks ID System
/dev/sdc1 1 15600 125304800 7 HPFS/NTFS
 
Old 03-30-2017, 10:58 AM   #73
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,249

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
OK, so the new drive is ntfs, not FAT. Hopefully your Gentoo system has the ntfs-3g file system module installed, otherwise, you will need to install it or use something else.

Instead of "-t vfat" in the mount command, use "-t ntfs-3g".

Let me know if it works or fails again.
 
Old 03-30-2017, 11:07 AM   #74
Chrisroot
Member
 
Registered: Mar 2017
Posts: 52

Original Poster
Rep: Reputation: Disabled
Command---mount -t ntfs-3g /dev/sdc1 /mnt/new_drive_c
Output---Mount: unknow filesystem type 'ntfs-3g"
 
Old 03-30-2017, 11:27 AM   #75
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,249

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by Chrisroot View Post
Command---mount -t ntfs-3g /dev/sdc1 /mnt/new_drive_c
Output---Mount: unknow filesystem type 'ntfs-3g"
This is what I was concerned about .. It seems as though ntfs support (ntfs-3g fuse module) is not installed on your system. This is where we would need some Gentoo expertise - I am unfamiliar with Gentoo. It is known as a very customizable distro that requires a significant amount of expertise on the part of the user. As member Emerson previously stated somewhere above, Gentoo does not come pre-installed or pre-configured with anything - the sysadmin decides what is needed and installs.

So 2 choices here:

1) We find some help with Gentoo so you can install the required ntfs support. Note that this is not necessarily the best idea - whoever set up this server felt it best to leave it out in the first place, perhaps for good reason.

2) Go back to using a FAT drive. You could either use the one you were originally using or reformat the new one on another machine as FAT32.
 
  


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
[SOLVED] Cannot copy files to USB flash drive from internal HDD. erik2282 Linux - Desktop 8 10-04-2014 12:23 PM
Can I copy files from a ntfs drive on ubuntu server? Vodkaholic1983 Linux - Newbie 7 05-05-2013 06:03 AM
How to copy files from a usb pen drive to my linux box? HelpMe2877 Linux - Newbie 4 08-20-2008 02:54 AM
Copy Files From Lexar USB Drive In Slackware 12.1 OWA14 Linux - Newbie 3 05-27-2008 06:50 PM
copy files from your hard drive to usb key with Knoppix ziegen Linux - Distributions 1 08-09-2004 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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