LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   unable to write to my usb flash drive. (http://www.linuxquestions.org/questions/fedora-35/unable-to-write-to-my-usb-flash-drive-675402/)

schneidz 10-09-2008 07:16 PM

unable to write to my usb flash drive.
 
[fc-9 live-usb]
this is weird, basically no-one except for root can write to the empty space of my usb disk.

Code:

[root@localhost schneidz]# pwd
/media/disk/schneidz
[root@localhost schneidz]# ll
total 0
-rwxr-xr-x 1 root root 0 2008-10-09 19:58 akuma
-rwxr-xr-x 1 root root 0 2008-10-09 19:58 chun-li
-rwxr-xr-x 1 root root 0 2008-10-09 19:58 h4x0rz
-rwxr-xr-x 1 root root 0 2008-10-09 19:58 hello
-rwxr-xr-x 1 root root 0 2008-10-09 19:58 l33t
-rwxr-xr-x 1 root root 0 2008-10-09 19:58 world
[root@localhost schneidz]# mount
/dev/mapper/live-rw on / type ext3 (rw,noatime)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/sdb1 on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=500,umask=000,dmask=000,fmask=000)
gvfs-fuse-daemon on /home/fedora/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=fedora)
[root@localhost schneidz]# chown schneidz akuma
chown: changing ownership of `akuma': Operation not permitted
[root@localhost schneidz]# chmod 777 *
[root@localhost schneidz]# chmod -R 777 .
[root@localhost schneidz]# ll
total 0
-rwxr-xr-x 1 root root 0 2008-10-09 19:58 akuma
-rwxr-xr-x 1 root root 0 2008-10-09 19:58 chun-li
-rwxr-xr-x 1 root root 0 2008-10-09 19:58 h4x0rz
-rwxr-xr-x 1 root root 0 2008-10-09 19:58 hello
-rwxr-xr-x 1 root root 0 2008-10-09 19:58 l33t
-rwxr-xr-x 1 root root 0 2008-10-09 19:58 world
[root@localhost schneidz]# exit
logout

[schneidz@localhost schneidz]$ touch foobar
touch: cannot touch `foobar': Permission denied

anyone care to make sense of this.

eagleheart 10-09-2008 08:50 PM

as far as chown & chmod is concerned...
 
vfat doesn't support such operations. Can you reformat the device as ext2 (i.e. something *nix based)

BTW who is UID 500 ? is it schneidz?

schneidz 10-09-2008 11:11 PM

Quote:

Originally Posted by eagleheart (Post 3305676)
vfat doesn't support such operations. Can you reformat the device as ext2 (i.e. something *nix based)

BTW who is UID 500 ? is it schneidz?

thx, this tutorial says to use vfat: https://fedoraproject.org/wiki/FedoraLiveCD/USBHowTo
i'll try ext2...

yes, i renamed the default 'fedora' user to 'schneidz'

schneidz 10-10-2008 05:48 PM

it works when you format the drive as ext2.

thx,

eagleheart 10-13-2008 09:30 PM

No problem, but
Quote:

this tutorial says to use vfat
yes, so I may have not helped at all :(

Decided to try making a usb live boot myself. The syslinux command doesn't work with an ext2 file system (expects a fat filesystem).

I'm working with sysrescuecd
http://www.sysresccd.org/Sysresccd-m...n_an_USB-stick , not fedora, but I'm sure it's the same principle.


All times are GMT -5. The time now is 12:28 PM.