Automount Drive
From reading this thread, it seems that the way my external drive is mounted is causing me to get a file too large error with tar. But, my drive is automatically mounted by the OS. I know how to edit the fstab file, but what I don't know is:
1) will this over-ride the auto-mount of this USB device? 2) what is the fstab entry since I am apparently not using samba (see below)? Here's output of commands suggested in the thread FYI: Code:
$ strings `which tar`|grep 64 Code:
$ ulimit -a Code:
$ tar --version Code:
$ uname -r Code:
$ samba --version |
Try the following:
Code:
~ # smbd -V HTH. Let us know. |
Welcome to LinuxQuestions.
There is not enough information provided to say if your problem is related to the thread you posted as as reference. I would guess some type of USB drive and not a samba issue. What version of Fedora are you running? What type of external drive and what is its filesystem i.e. USB, eSATA and FAT32, NTFS etc. Just taking a wild guess your drive is formatted as FAT32 which has a maximum file size of 4G. Post the complete tar command you are using. To overcome this limit you can use tar to split the archive into smaller chunks or convert the drive to NTFS. |
Quote:
Code:
# smbd -V |
Michaelk - I thought it was NTFS, but I just checked and I was wrong. I will reformat and see if that is the problem.
|
I assumed you desire windows compatibility but you could always format as ext3 etc.
|
reliable, reproduceable mounting results for USB drives
Hi,
to address your question on how to ensure that your USB drive is mounted where/how you want it, you just need to add an fstab entry by UUID. You can find the UUID of your device by mounting it manually or checking mtab to get the device path, then using sudo vol_id --uuid /dev/deviceidofyourdrive to obtain the UUID. Then, your fstab entry will look something like: UUID=ff3fdxxx-bdxx-4xx3-85e1-87xxxxxxx382 /media/backup ext3 rw,relatime,user,uid=xxx,gid=xxx Thus, no matter what other drives you may have plugged in to your system in what order, you can reliably mount the same drive to the same path. Maybe a little OT, but related and I thought it was useful. cheers |
Greetings,
@sixteenkats: Well, that proves you are not using any samba on your system. With you as root, the system couldn't find one of the main daemons for samba. @davejay1970: Excellent post! Great advice! A small problem on my end, though... vol_id is no longer in Gentoo and has been replaced by blkid. Now, not having seen the behavior from vol_id, I'm not sure how it formatted the output, so here is the output from a blkid query: Code:
~ # blkid -p -u filesystem,other /dev/sdb1 Code:
*-disk Just my 2¢. |
All times are GMT -5. The time now is 11:38 AM. |