Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Vfat, permissions and bootup issues
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Sun Dec 27, 2009 2:48 am    Post subject: Vfat, permissions and bootup issues Reply with quote

I purchased an external USB drive and formatted it to VFAT. I know that VFAT does not support permissions, so I edited /etc/fstab accordingly.

Code:
/dev/sdc1               /media/disk     vfat            rw,auto,user,umask=0    0 0


However, when I boot my system it says that /dev/sdc1 does not exist. Does HAL needs to be booted in order to mount USB drives? Does someone has an alternative, so that I can use my drive as a normal user?

Thanks!
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Sun Dec 27, 2009 11:00 am    Post subject: Reply with quote

Most likely your device is no longer at /dev/sdc. You'll need to learn how to write a udev rule so that you always have a symlink to the proper device.

1) Find where your device is enumerated with dmesg or dmesg | grep sd.:
2) Issue the command 'udevadm info -a -p /sys/block/sd?' where ? is the device letter.
3) Write a udev rule from that output and add it to /etc/udev/rules.d/10-local.rules like so:
Code:
SUBSYSTEMS=="scsi" ATTRS{vendor}=="my_vendor_id", ATTRS{model}=="my_model_id", ATTRS{rev}=="my_rev_id" SYMLINK="my_named_link%n"

4) Restart the udev service with '/etc/init.d/udev restart'
5) Add that symlink to /etc/fstab like:
Code:
/dev/my_named_link1  my_mount_point  my_fs_type  my_mount_options  0  0

Edit: Use scsi instead of pci section.


Last edited by Nerevar on Sun Dec 27, 2009 8:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Dec 27, 2009 1:18 pm    Post subject: Reply with quote

Quote:
I purchased an external USB drive and formatted it to VFAT.

Another possibility is if you didn't create partition table your device is sdX not sdX1.
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Sun Dec 27, 2009 4:38 pm    Post subject: Reply with quote

I did create a partition table first before formatting to VFAT.

Code:
xavier-pc xavier # dmesg | grep sd
[    0.000000] Command line: root=/dev/sda1
[    0.000000] Kernel command line: root=/dev/sda1
[    1.466711] sd 4:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[    1.466791] sd 4:0:0:0: Attached scsi generic sg1 type 0
[    1.467205] sd 5:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[    1.467244] sd 5:0:0:0: Attached scsi generic sg2 type 0
[    1.467300] sd 5:0:0:0: [sdb] Write Protect is off
[    1.467302] sd 5:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    1.467349] sd 5:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.467451]  sdb:
[    1.469107] sd 4:0:0:0: [sda] Write Protect is off
[    1.469109] sd 4:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.469128] sd 4:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.469228]  sda:sr1: scsi3-mmc drive: 48x/12x writer dvd-ram cd/rw xa/form2 cdda tray
[    1.478473]  sdb1
[    1.479058] sd 5:0:0:0: [sdb] Attached SCSI disk
[    1.485028]  sda1 sda2
[    1.485671] sd 4:0:0:0: [sda] Attached SCSI disk
[    1.657443] EXT4-fs (sda1): mounted filesystem with ordered data mode
[    4.816530] EXT4-fs (sda2): warning: maximal mount count reached, running e2fsck is recommended
[    4.817727] EXT4-fs (sda2): mounted filesystem with ordered data mode
[    4.860133] EXT4-fs (sdb1): warning: maximal mount count reached, running e2fsck is recommended
[    4.861364] EXT4-fs (sdb1): mounted filesystem with ordered data mode
[   13.851975] sd 8:0:0:0: Attached scsi generic sg4 type 0
[   13.852787] sd 8:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[   13.853410] sd 8:0:0:0: [sdc] Write Protect is off
[   13.853414] sd 8:0:0:0: [sdc] Mode Sense: 2f 08 00 00
[   13.853416] sd 8:0:0:0: [sdc] Assuming drive cache: write through
[   13.854779] sd 8:0:0:0: [sdc] Assuming drive cache: write through
[   13.854783]  sdc: sdc1
[   13.877897] sd 8:0:0:0: [sdc] Assuming drive cache: write through
[   13.877900] sd 8:0:0:0: [sdc] Attached SCSI disk


Code:
xavier-pc xavier # udevadm info -a -p /sys/block/sdc

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1:1.0/host8/target8:0:0/8:0:0:0/block/sdc':
    KERNEL=="sdc"
    SUBSYSTEM=="block"
    DRIVER==""
    ATTR{range}=="16"
    ATTR{ext_range}=="256"
    ATTR{removable}=="0"
    ATTR{ro}=="0"
    ATTR{size}=="1953525168"
    ATTR{alignment_offset}=="0"
    ATTR{capability}=="52"
    ATTR{stat}=="   10603   491263   511606    26897    97085   209952 19808118 52419454        0   386222 52453729"
    ATTR{inflight}=="       0        0"

  looking at parent device '/devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1:1.0/host8/target8:0:0/8:0:0:0':
    KERNELS=="8:0:0:0"
    SUBSYSTEMS=="scsi"
    DRIVERS=="sd"
    ATTRS{device_blocked}=="0"
    ATTRS{type}=="0"
    ATTRS{scsi_level}=="3"
    ATTRS{vendor}=="Seagate "
    ATTRS{model}=="Desktop         "
    ATTRS{rev}=="0130"
    ATTRS{state}=="running"
    ATTRS{timeout}=="30"
    ATTRS{iocounterbits}=="32"
    ATTRS{iorequest_cnt}=="0x1a4c6"
    ATTRS{iodone_cnt}=="0x1a4c6"
    ATTRS{ioerr_cnt}=="0x1"
    ATTRS{modalias}=="scsi:t-0x00"
    ATTRS{evt_media_change}=="0"
    ATTRS{queue_depth}=="1"
    ATTRS{queue_type}=="none"
    ATTRS{max_sectors}=="240"

  looking at parent device '/devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1:1.0/host8/target8:0:0':
    KERNELS=="target8:0:0"
    SUBSYSTEMS=="scsi"
    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1:1.0/host8':
    KERNELS=="host8"
    SUBSYSTEMS=="scsi"
    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1:1.0':
    KERNELS=="1-1:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb-storage"
    ATTRS{bInterfaceNumber}=="00"
    ATTRS{bAlternateSetting}==" 0"
    ATTRS{bNumEndpoints}=="02"
    ATTRS{bInterfaceClass}=="08"
    ATTRS{bInterfaceSubClass}=="06"
    ATTRS{bInterfaceProtocol}=="50"
    ATTRS{modalias}=="usb:v0BC2p3300d0130dc00dsc00dp00ic08isc06ip50"
    ATTRS{supports_autosuspend}=="0"

  looking at parent device '/devices/pci0000:00/0000:00:1a.7/usb1/1-1':
    KERNELS=="1-1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{configuration}==""
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bmAttributes}=="c0"
    ATTRS{bMaxPower}=="  2mA"
    ATTRS{urbnum}=="1793051"
    ATTRS{idVendor}=="0bc2"
    ATTRS{idProduct}=="3300"
    ATTRS{bcdDevice}=="0130"
    ATTRS{bDeviceClass}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{speed}=="480"
    ATTRS{busnum}=="1"
    ATTRS{devnum}=="2"
    ATTRS{version}==" 2.00"
    ATTRS{maxchild}=="0"
    ATTRS{quirks}=="0x0"
    ATTRS{authorized}=="1"
    ATTRS{manufacturer}=="Seagate "
    ATTRS{product}=="Desktop         "
    ATTRS{serial}=="2GHKFTMG    "

  looking at parent device '/devices/pci0000:00/0000:00:1a.7/usb1':
    KERNELS=="usb1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{configuration}==""
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bmAttributes}=="e0"
    ATTRS{bMaxPower}=="  0mA"
    ATTRS{urbnum}=="49"
    ATTRS{idVendor}=="1d6b"
    ATTRS{idProduct}=="0002"
    ATTRS{bcdDevice}=="0206"
    ATTRS{bDeviceClass}=="09"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{speed}=="480"
    ATTRS{busnum}=="1"
    ATTRS{devnum}=="1"
    ATTRS{version}==" 2.00"
    ATTRS{maxchild}=="6"
    ATTRS{quirks}=="0x0"
    ATTRS{authorized}=="1"
    ATTRS{manufacturer}=="Linux 2.6.32-gentoo ehci_hcd"
    ATTRS{product}=="EHCI Host Controller"
    ATTRS{serial}=="0000:00:1a.7"
    ATTRS{authorized_default}=="1"

  looking at parent device '/devices/pci0000:00/0000:00:1a.7':
    KERNELS=="0000:00:1a.7"
    SUBSYSTEMS=="pci"
    DRIVERS=="ehci_hcd"
    ATTRS{vendor}=="0x8086"
    ATTRS{device}=="0x293c"
    ATTRS{subsystem_vendor}=="0x1043"
    ATTRS{subsystem_device}=="0x8277"
    ATTRS{class}=="0x0c0320"
    ATTRS{irq}=="18"
    ATTRS{local_cpus}=="f"
    ATTRS{local_cpulist}=="0-3"
    ATTRS{modalias}=="pci:v00008086d0000293Csv00001043sd00008277bc0Csc03i20"
    ATTRS{numa_node}=="-1"
    ATTRS{enable}=="1"
    ATTRS{broken_parity_status}=="0"
    ATTRS{msi_bus}==""
    ATTRS{companion}==""

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""


From that I created this line in /etc/udev/rules.d/10-local.rules

Code:
SUBSYSTEMS=="pci" ATTRS{vendor}=="Seagate", ATTRS{device}=="0", SYMLINK="1tbusb"


And edited /etc/fstab accordingly

Code:
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
/dev/sda1               /               ext4            noatime                 1 2
/dev/sda2               /wine           ext4            noatime                 0 0
/dev/sdb1               /home           ext4            noatime                 0 0
[b]/dev/1tbusb             /media/disk     vfat            rw,auto,user,umask=0    0 0[/b]
/dev/sr0                /mnt/cdrom      auto            noauto,user             0 0
/dev/sr1                /mnt/cdrom1     auto            noauto,user             0 0


I still get a message telling me that my device does not exist when I boot the base system.

Do you see anything wrong with what I did?
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Sun Dec 27, 2009 8:27 pm    Post subject: Reply with quote

Try this:
Code:
SUBSYSTEMS=="scsi" ATTRS{vendor}=="Seagate ", ATTRS{model}=="Desktop         ", ATTRS{rev}=="0130", SYMLINK="1tbusb%n"

Restart udev.

You should be able to list your devices with 'ls -l /dev/1tbusb*' now.

And your fstab will be...
Code:
/dev/1tbusb1             /media/disk     vfat            rw,auto,user,umask=0    0 0
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Sun Dec 27, 2009 10:24 pm    Post subject: Reply with quote

With the line you suggested, the symlink works

Code:
xavier-pc xavier # ls -l /dev/1tbusb
lrwxrwxrwx 1 root root 3 Dec 27 17:19 /dev/1tbusb -> sdc


However, I still get the message at boot that /dev/1tbusb does not exist, and /media/disk remains empty.

Typing "mount /dev/sdc1 /media/disk" mounts the drive, but I can't do anything on it as a user.
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Sun Dec 27, 2009 10:53 pm    Post subject: Reply with quote

You should also have a /dev/1tbusb1 (note the 1 at the end) that points to /dev/sdc1. If you don't have that, then you forgot the %n in the udev rule. The 1tbusb1 device is what should be used in your fstab.

What is the error you're getting when trying to read/write to it as a user?
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Mon Dec 28, 2009 12:15 am    Post subject: Reply with quote

Nerevar wrote:
You should also have a /dev/1tbusb1 (note the 1 at the end) that points to /dev/sdc1. If you don't have that, then you forgot the %n in the udev rule. The 1tbusb1 device is what should be used in your fstab.

What is the error you're getting when trying to read/write to it as a user?


Code:
xavier-pc ~ # cat /etc/udev/rules.d/10-local.rules
SUBSYSTEMS=="scsi" ATTRS{vendor}=="Seagate ", ATTRS{model}=="Desktop         ", ATTRS{rev}=="0130", SYMLINK="1tbusb%n"


Sample error message

Code:
xavier@xavier-pc ~ $ cp -R tuxguitar /media/disk/
cp: cannot create directory `/media/disk/tuxguitar': Permission denied
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Mon Dec 28, 2009 1:40 am    Post subject: Reply with quote

The rule looks fine. Did you mount it as xavier or as root?

What does "ls -ld /media/disk" show before and after it is mounted by xavier?

What does "mount | grep /media/disk" show after it's mounted by xavier?
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Mon Dec 28, 2009 6:04 pm    Post subject: Reply with quote

Nerevar wrote:
The rule looks fine. Did you mount it as xavier or as root?

What does "ls -ld /media/disk" show before and after it is mounted by xavier?

What does "mount | grep /media/disk" show after it's mounted by xavier?


The main problem is that:

Code:
xavier@xavier-pc /wine-git $ mount /dev/1tbusb1 /media/disk
mount: only root can do that


If this is of any relevance..

Code:
xavier@xavier-pc /wine-git $ cat /etc/group
root::0:root
bin::1:root,bin,daemon
daemon::2:root,bin,daemon
sys::3:root,bin,adm
adm::4:root,adm,daemon
tty::5:
disk::6:root,adm,haldaemon
lp::7:lp
mem::8:
kmem::9:
wheel::10:root,xavier
floppy::11:root,haldaemon
mail::12:mail
news::13:news
uucp::14:uucp
man::15:man
console::17:
audio::18:xavier,pulse
cdrom::19:haldaemon,xavier
dialout::20:root
tape::26:root
video::27:root,xavier,boinc
cdrw::80:haldaemon
usb::85:haldaemon,xavier
users::100:games
nofiles:x:200:
smmsp:x:209:smmsp
portage::250:portage
utmp:x:406:
nogroup::65533:
nobody::65534:
sshd:x:22:
cron:x:16:
ssmtp:x:1000:
crontab:x:1001:
locate:x:245:
xavier:x:1002:xavier
ldap:x:439:
messagebus:x:1003:
polkituser:x:1004:
haldaemon:x:1005:haldaemon
plugdev:x:1006:haldaemon,xavier
lpadmin:x:106:
netdev:x:1007:
avahi:x:1008:
avahi-autoipd:x:1009:
gdm:x:1010:
vboxusers:x:1011:xavier
games:x:35:xavier
boinc:x:1012:xavier
mysql:x:60:
vboxguest:x:1013:xavier
pulse-access:x:1014:xavier
pulse:x:1015:xavier
Back to top
View user's profile Send private message
M
Guru
Guru


Joined: 12 Dec 2006
Posts: 432

PostPosted: Mon Dec 28, 2009 6:37 pm    Post subject: Reply with quote

You can try to use UUID instead of udev rules, I recently did this for one machine, you can easily find uuid with
Code:

# blkid /dev/sdg1
/dev/sdg1: LABEL="" UUID="6D24-0111" TYPE="vfat"

so in your fstab you would put
Code:
UUID=6D24-0111     /media/disk     vfat            rw,auto,user,umask=0    0 0


This can also work for grub and lilo, don't know if modern distros patch somehow grub and/or lilo, didn't work on my gentoo machine but I managed to get lilo work with absolute path like this:
Code:
root=/dev/disk/by-uuid/6D24-0111
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Tue Dec 29, 2009 4:56 pm    Post subject: Reply with quote

daseinhorn wrote:
The main problem is that:
Code:
xavier@xavier-pc /wine-git $ mount /dev/1tbusb1 /media/disk
mount: only root can do that


Try just 'mount /media/disk'. This way mount will look at /etc/fstab and see that the user option is set.
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Tue Dec 29, 2009 11:47 pm    Post subject: Reply with quote

Nerevar wrote:
daseinhorn wrote:
The main problem is that:
Code:
xavier@xavier-pc /wine-git $ mount /dev/1tbusb1 /media/disk
mount: only root can do that


Try just 'mount /media/disk'. This way mount will look at /etc/fstab and see that the user option is set.


Your suggestion worked. I'll keep it that way for now, but ultimately I would prefer that it automounts itself without the permission issues.
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Wed Dec 30, 2009 2:35 am    Post subject: Reply with quote

Try "man mount" and look at the mount options for fat filesystems. Specifically, these:
Code:
uid=value and gid=value
    Set the owner and group of all files.  (Default: the uid and gid
    of the current process.)
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Thu Jan 07, 2010 12:09 am    Post subject: Reply with quote

After some extra testing, it looks like I have issues for every partition I try to mount, no matter what filesystem they are. I created a new NTFS partition for my WINE related stuff, and I get this when I try to create a new Wineprefix:

Code:
xavier@xavier-pc ~ $ export WINEPREFIX=/wine/utorrent
xavier@xavier-pc ~ $ sh winetricks
wine: '/wine' is not owned by you, refusing to create a configuration directory there
mkdir: cannot create directory `/wine/utorrent': Operation not permitted
You (xavier) don't own /wine. Don't run winetricks as another user!


Despite doing this:

Code:
xavier-pc xavier # chown -R xavier /wine
xavier-pc xavier # exit


Here is what I get:

Code:
xavier@xavier-pc ~ $ export WINEPREFIX=/wine/utorrent
xavier@xavier-pc ~ $ sh winetricks
wine: chdir to /wine/utorrent
 : No such file or directory
mkdir: cannot create directory `/wine/utorrent': Operation not permitted
mkdir: cannot create directory `/wine/utorrent': Operation not permitted
winetricks: line 337: /wine/utorrent/drive_c/winetrickstmp/zenity.sh: No such file or directory
winetricks: line 338: /wine/utorrent/drive_c/winetrickstmp/zenity.sh: No such file or directory
sh: /wine/utorrent/drive_c/winetrickstmp/zenity.sh: No such file or directory


I didn't had these issues before when I was running KDE. This is an internal hard drive, not a USB external drive.

Maybe some extra related info?

Code:
xavier@xavier-pc ~ $ emerge --info
Portage 2.1.7.16 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 06 Jan 2010 22:15:02 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirrors.tera-byte.com/pub/gentoo ftp://mirror.fslutd.org/linux/distributions/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 autoipd avahi berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cuda cups cxx dbus dhcp dri dts dvd dvdr dvdread eds emboss encode evo extras fam ffmpeg firefox flac fluidsynth fortran fuse gdbm gif git gnome gnutls gpm gstreamer gtk hal iconv jack java jpeg lame ldap libnotify mad mdnsresponder-compat midi mikmod mmx mng modules mp3 mp4 mpeg msn mudflap multilib nautilus ncurses nls nptl nptlonly ogg opengl openmp openssl pam pcre pdf perl png policykit ppds pppd ptp2 pulseaudio python qt3support quicktime readline reflection sdl session sndfile spell spl sse sse2 ssl ssse3 startup-notification subversion svg symlink sysfs tcpd theora thunar tiff truetype unicode usb vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ICE1724" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Thu Jan 07, 2010 1:48 am    Post subject: Reply with quote

Are you sure you had that fs mounted when you did the chown? If so, post this output:
Code:
ls -al /wine
export WINEPREFIX=/wine/utorrent
sh winetricks
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Thu Jan 07, 2010 1:55 am    Post subject: Reply with quote

Code:
xavier-pc xavier # ls -al /wine
total 8
drwxrwxrwx  1 xavier root 4096 Jan  6 18:56 .
drwxr-xr-x 23 root   root 4096 Dec 30 18:54 ..


Edit : Tried again, doesn't work. Results below

Code:
xavier-pc xavier # mount /wine
mount: /dev/sda3 already mounted or /wine busy
mount: according to mtab, /dev/sda3 is already mounted on /wine
xavier-pc xavier # chown -R xavier /wine
xavier-pc xavier # exit
exit
xavier@xavier-pc ~ $ ls -al /wine     
total 8
drwxrwxrwx  1 xavier root 4096 Jan  6 18:56 .
drwxr-xr-x 23 root   root 4096 Dec 30 18:54 ..
xavier@xavier-pc ~ $ export WINEPREFIX=/wine/utorrent
xavier@xavier-pc ~ $ sh winetricks
wine: chdir to /wine/utorrent
 : No such file or directory
mkdir: cannot create directory `/wine/utorrent': Operation not permitted
mkdir: cannot create directory `/wine/utorrent': Operation not permitted
winetricks: line 337: /wine/utorrent/drive_c/winetrickstmp/zenity.sh: No such file or directory
winetricks: line 338: /wine/utorrent/drive_c/winetrickstmp/zenity.sh: No such file or directory
sh: /wine/utorrent/drive_c/winetrickstmp/zenity.sh: No such file or directory
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Thu Jan 07, 2010 3:57 am    Post subject: Reply with quote

Oh, are you perhaps using ntfs instead of ntfs-3g? The kernel ntfs filesystem implementation is basically read-only. You need to use the fuse ntfs-3g implementation to get write support.
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Thu Jan 07, 2010 4:01 am    Post subject: Reply with quote

Nerevar wrote:
Oh, are you perhaps using ntfs instead of ntfs-3g? The kernel ntfs filesystem implementation is basically read-only. You need to use the fuse ntfs-3g implementation to get write support.


Code:
xavier-pc xavier # emerge -s ntfs
Searching...   
[ Results for search key : ntfs ]
[ Applications found : 2 ]

*  sys-fs/ntfs3g
      Latest version available: 2009.11.14
      Latest version installed: 2009.11.14
      Size of files: 804 kB
      Homepage:      http://www.ntfs-3g.org
      Description:   Open source read-write NTFS driver that runs under FUSE
      License:       GPL-2

*  sys-fs/ntfsprogs
      Latest version available: 2.0.0-r1
      Latest version installed: 2.0.0-r1
      Size of files: 882 kB
      Homepage:      http://www.linux-ntfs.org/
      Description:   User tools for NTFS filesystems
      License:       GPL-2


Tried with ntfs-3g, failed again

Code:
xavier-pc xavier # ntfs-3g /dev/sda3 /wine
xavier-pc xavier # exit
exit
xavier@xavier-pc ~ $ 
xavier@xavier-pc ~ $ export WINEPREFIX=/wine/utorrent
xavier@xavier-pc ~ $ sh winetricks
wine: '/wine' is not owned by you, refusing to create a configuration directory there
You (xavier) don't own /wine/utorrent. Don't run winetricks as another user!
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Thu Jan 07, 2010 4:25 am    Post subject: Reply with quote

I think you mounted with root permissions with that ntfs-3g command. Verify with 'ls -al /wine'.

Last edited by Nerevar on Thu Jan 07, 2010 4:26 am; edited 1 time in total
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Thu Jan 07, 2010 4:26 am    Post subject: Reply with quote

Nerevar wrote:
You mounted it as root with that ntfs-3g command.


Code:
xavier@xavier-pc ~ $ ntfs-3g /dev/sda3 /wine
Unprivileged user can not mount NTFS block devices using the external FUSE
library. Either mount the volume as root, or rebuild NTFS-3G with integrated
FUSE support and make it setuid root. Please see more information at
http://ntfs-3g.org/support.html#unprivileged
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Thu Jan 07, 2010 4:28 am    Post subject: Reply with quote

Why don't you just change your /etc/fstab entry to use ntfs-3g instead of ntfs and then use mount /wine?

Also, what does that fstab entry look like?
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Thu Jan 07, 2010 4:34 am    Post subject: Reply with quote

Nerevar wrote:
Why don't you just change your /etc/fstab entry to use ntfs-3g instead of ntfs and then use mount /wine?

Also, what does that fstab entry look like?


Code:
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
/dev/sda1               /               ext4            noatime                 1 2
/dev/sda2               /windows        ntfs            noatime,user,umask=0                    0 0
/dev/sda3               /wine           ntfs            noatime,user,umask=0                    0 0
/dev/sdb1               /home           ext4            noatime                 0 0
/dev/1tbusb1            /media/disk     vfat            rw,auto,user,umask=0    0 0
/dev/sr0                /mnt/cdrom      auto            noauto,user             0 0
/dev/sr1                /mnt/cdrom1     auto            noauto,user             0 0


Should I type ntfs-3g instead of ntfs as the file system?
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Thu Jan 07, 2010 4:43 am    Post subject: Reply with quote

daseinhorn wrote:
Should I type ntfs-3g instead of ntfs as the file system?

Yes.
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Thu Jan 07, 2010 4:50 am    Post subject: Reply with quote

Nerevar wrote:
daseinhorn wrote:
Should I type ntfs-3g instead of ntfs as the file system?

Yes.


Doesn't work.

Code:
xavier-pc xavier # umount /wine
xavier-pc xavier # mount /wine
xavier-pc xavier # exit
exit
xavier@xavier-pc ~ $ export WINEPREFIX=/wine/utorrent
xavier@xavier-pc ~ $ sh winetricks
wine: /wine/utorrent is not owned by you
You (xavier) don't own /wine/utorrent. Don't run winetricks as another user!


My fstab looks like this now

Code:
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
/dev/sda1               /               ext4            noatime                 1 2
/dev/sda2               /windows        ntfs-3g         noatime,user,umask=0,exec                       0 0
/dev/sda3               /wine           ntfs-3g         noatime,user,umask=0,exec                       0 0
/dev/sdb1               /home           ext4            noatime                 0 0
/dev/1tbusb1            /media/disk     vfat            rw,auto,user,umask=0,exec       0 0
/dev/sr0                /mnt/cdrom      auto            noauto,user             0 0
/dev/sr1                /mnt/cdrom1     auto            noauto,user             0 0
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum