You are not logged in.
Pages: 1
Hi,
I've got a problem with my Mp3 Stick, i tried to mount it with
mount -t vfat /dev/sda /mnt/usb -o umask=022
it worked, but if i now try to copy musik on it, it doesnt work, i did it with MidnightCommander and it said "That chown couldn't be performed". Somewhere in dmesg i read too, that the Stick was only mounted ReadOnly, someone knows what i did wrong? Maybe i forgot to add some arguments to mount?
Trapdoor
Offline
/dev/sda /mnt/usb vfat user,noauto,uid=trapdoor,gid=users,sync
Try putting this line in your /etc/fstab.
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
If using KDE, then simply put dbus and hal at the daemons section of rc.conf. Now you can mount/unmount your USB stick simply from Konqueror's "mount media", Krusader's MountMan or the kwikdisk context menu. The mount directory is by default something like /media/USB_DISK, but you can toy with the udev rules to make it mount somewhere else.
Microshaft delenda est
Offline
With adding
/dev/sda /mnt/usb vfat user,noauto,uid=trapdoor,gid=users,sync
writing on the stick works, but he files are not displayed on the stick if i try to play them. I think it has something to do with the dmesg output
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
Vendor: USB 2.0 Model: FLASHDISK Rev:
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sda: 250368 512-byte hdwr sectors (128 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 250368 512-byte hdwr sectors (128 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
/dev/scsi/host1/bus0/target0/lun0: unknown partition table
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
usb-storage: device scan complete
there it says " /dev/scsi/host1/bus0/target0/lun0: unknown partition table" may it be that it has something to to with that?
Offline
I have something like this in my fstab and my USB stick work fine :
/dev/sda1 /mnt/usb vfat users,noatime,sync,dirsync,noauto,uid={$user_name},gid=users 0 0
Simply type :
mount /dev/sda1
to mount the usb stick.
Offline
@fetreney2000
Thanks, your solution solved the problem very well, i think i just didn't understood the function of /etc/fstab
Offline
trapdoor, notice that fetreney2000's fstab line contains a partition device (/dev/sda1) not a disk device (/dev/sda) as in your case.
:: / my web presence
Offline
you'll also need to install dirsync if you want to use it.
Offline
@trapdoor
No problem
@Penguin
Really? I thought it is the same as the sync argument.
From the mount manpage :
dirsync
All directory updates within the file system should be done syncronously. This affect the following system calls: create, link, unlink, symlink, mkdir, rmdir, mknod and rename.
Offline
I'm not really sure what the difference between the two is, but I'm guessing sync proccesses I/O from the filesystem the second it was called for rather than caching. Dirsync makes changes to the filesystem the second you call for it so you dont loose data by removing data to quickly. Again, I'm not sure. I vaguely remember reading about it in a thread somewhere and come to find out dirsync was a downloadable package in the repos, still is..
Offline
Here's that thread
http://bbs.archlinux.org/viewtopic.php? … ster+linux
Offline
After reading that thread, I think there is no need to install dirsync package to use dirsync argument in the fstab.
IMO, the dirsync package is a tool for syncronising two directory to make it identical and has nothing to do with dirsync argument in fstab. We need someone to confirm this though.
Offline
damn, I guess your right. I was always under the impression it was a package that needed to be installed to work with fstab...never really looked that hard at the description. :oops:
Offline
Pages: 1