[SOLVED] Cant copy files from Gentoo server to USB drive.
Linux - NewbieThis 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.
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.
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
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
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:
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.
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.
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
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 ?
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
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".
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.