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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
03-29-2017, 02:26 PM
|
#61
|
Member
Registered: Mar 2017
Posts: 52
Original Poster
Rep:
|
so if FAT does not support symlinks does not support this, then am i unable to do this process?
|
|
|
03-29-2017, 02:44 PM
|
#62
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep:
|
You could use rsync command, it has an option not to copy symlinks ... if i remember correctly. Symlinks would be useless in Windows anyway.
|
|
|
03-29-2017, 02:49 PM
|
#63
|
Member
Registered: Mar 2017
Posts: 52
Original Poster
Rep:
|
Could you show me the command for that and the placement?
|
|
|
03-29-2017, 02:54 PM
|
#64
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep:
|
Quote:
Originally Posted by Chrisroot
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
|
|
|
03-29-2017, 03:00 PM
|
#65
|
Member
Registered: Mar 2017
Posts: 52
Original Poster
Rep:
|
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.
|
|
|
03-29-2017, 04:12 PM
|
#66
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by Chrisroot
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
... 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.
|
|
|
03-29-2017, 05:56 PM
|
#67
|
LQ Newbie
Registered: Mar 2017
Posts: 12
Rep:
|
@ 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.
|
03-30-2017, 10:05 AM
|
#68
|
Member
Registered: Mar 2017
Posts: 52
Original Poster
Rep:
|
Is it possible to remove a directory from "SDC1", there are too many file systems attached to it ?
|
|
|
03-30-2017, 10:29 AM
|
#69
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by Chrisroot
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.
|
|
|
03-30-2017, 10:37 AM
|
#70
|
Member
Registered: Mar 2017
Posts: 52
Original Poster
Rep:
|
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.
|
|
|
03-30-2017, 10:47 AM
|
#71
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by Chrisroot
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 ?
Thx.
Last edited by Rickkkk; 03-30-2017 at 10:49 AM.
|
|
|
03-30-2017, 10:52 AM
|
#72
|
Member
Registered: Mar 2017
Posts: 52
Original Poster
Rep:
|
Sure,
device boot start end blocks ID System
/dev/sdc1 1 15600 125304800 7 HPFS/NTFS
|
|
|
03-30-2017, 10:58 AM
|
#73
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
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.
|
|
|
03-30-2017, 11:07 AM
|
#74
|
Member
Registered: Mar 2017
Posts: 52
Original Poster
Rep:
|
Command---mount -t ntfs-3g /dev/sdc1 /mnt/new_drive_c
Output---Mount: unknow filesystem type 'ntfs-3g"
|
|
|
03-30-2017, 11:27 AM
|
#75
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by Chrisroot
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.
|
|
|
All times are GMT -5. The time now is 10:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|