WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Firefox and Save Files  (Read 4380 times)

hypersonic

  • Guest
Firefox and Save Files
« on: October 03, 2011, 05:29:27 PM »
I have mounted a partition called /dev/sda1 (HD) with mount tool, and I'm running tinycore from pendrive (very fast, thanks). So, when I try to save a file using Firefox (from internet) to /mnt/sda1, the following error occurs:

Code: [Select]
/mnt/sda1/file.txt could not be saved, because you cannot change the contents of that folder.
Change the folder properties and try again, or try saving in a different location.

I already tried change the access with:
# chmod 777 /mnt/sda1

But error persists. How can I save the file in this situation?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Firefox and Save Files
« Reply #1 on: October 03, 2011, 06:04:42 PM »
NTFS mounts readonly.
If this is an NTFS partition, you need to install ntfs-3g and mount it with -t ntfs-3g.

hypersonic

  • Guest
Re: Firefox and Save Files
« Reply #2 on: October 03, 2011, 06:14:05 PM »
I guess not. This is the result of fdisk -l:

Code: [Select]
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1       14594   117219328  83 Linux

Disk /dev/sdb: 2012 MB, 2012217344 bytes
22 heads, 2 sectors/track, 89320 cylinders
Units = cylinders of 44 * 512 = 22528 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sdb1   *          47       89321     1964032  83 Linux

Looks like /dev/sda1 is type 83 (ext2, I think, the same of pendrive). What could be?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Firefox and Save Files
« Reply #3 on: October 03, 2011, 06:17:01 PM »
Show the output of
mount
ls -l /mnt

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
Re: Firefox and Save Files
« Reply #4 on: October 03, 2011, 06:44:29 PM »
Hi hypersonic
Also post the output of
cat /etc/mtab | grep /mnt/sda1

hypersonic

  • Guest
Re: Firefox and Save Files
« Reply #5 on: October 03, 2011, 07:00:48 PM »
Result of mount:

Code: [Select]
rootfs on / type rootfs (rw,relatime,size=1796268k,nr_inodes=217410)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sdb1 on /mnt/sdb1 type ext2 (rw,relatime,barrier=1)
/dev/sdb1 on /home type ext2 (rw,relatime,barrier=1)
/dev/sdb1 on /opt type ext2 (rw,relatime,barrier=1)
/dev/loop0 on /tmp/tcloop/wireless-3.0.3-tinycore type squashfs (ro,relatime)
/dev/loop1 on /tmp/tcloop/libiw type squashfs (ro,relatime)
/dev/loop2 on /tmp/tcloop/wireless_tools type squashfs (ro,relatime)
/dev/loop3 on /tmp/tcloop/openssl-0.9.8 type squashfs (ro,relatime)
/dev/loop4 on /tmp/tcloop/wpa_supplicant type squashfs (ro,relatime)
/dev/loop5 on /tmp/tcloop/wifi type squashfs (ro,relatime)
/dev/loop6 on /tmp/tcloop/libxcb type squashfs (ro,relatime)
/dev/loop7 on /tmp/tcloop/libxml2 type squashfs (ro,relatime)
/dev/loop8 on /tmp/tcloop/glib2 type squashfs (ro,relatime)
/dev/loop9 on /tmp/tcloop/shared-mime-info type squashfs (ro,relatime)
/dev/loop10 on /tmp/tcloop/Xorg-7.6-lib type squashfs (ro,relatime)
/dev/loop11 on /tmp/tcloop/graphics-libs-1 type squashfs (ro,relatime)
/dev/loop12 on /tmp/tcloop/gdk-pixbuf2 type squashfs (ro,relatime)
/dev/loop13 on /tmp/tcloop/pango type squashfs (ro,relatime)
/dev/loop14 on /tmp/tcloop/expat2 type squashfs (ro,relatime)
/dev/loop15 on /tmp/tcloop/fontconfig type squashfs (ro,relatime)
/dev/loop16 on /tmp/tcloop/pixman type squashfs (ro,relatime)
/dev/loop17 on /tmp/tcloop/cairo type squashfs (ro,relatime)
/dev/loop18 on /tmp/tcloop/atk type squashfs (ro,relatime)
/dev/loop19 on /tmp/tcloop/gtk2 type squashfs (ro,relatime)
/dev/loop20 on /tmp/tcloop/dbus type squashfs (ro,relatime)
/dev/loop21 on /tmp/tcloop/dbus-glib type squashfs (ro,relatime)
/dev/loop22 on /tmp/tcloop/libnotify type squashfs (ro,relatime)
/dev/loop23 on /tmp/tcloop/curl type squashfs (ro,relatime)
/dev/loop24 on /tmp/tcloop/libasound type squashfs (ro,relatime)
/dev/loop25 on /tmp/tcloop/firefox type squashfs (ro,relatime)
/dev/loop26 on /tmp/tcloop/i2c-3.0.3-tinycore type squashfs (ro,relatime)
/dev/loop27 on /tmp/tcloop/graphics-3.0.3-tinycore type squashfs (ro,relatime)
/dev/loop28 on /tmp/tcloop/xf86-video-intel type squashfs (ro,relatime)
/dev/loop29 on /tmp/tcloop/Xorg-fonts type squashfs (ro,relatime)
/dev/loop30 on /tmp/tcloop/Xorg-7.6-bin type squashfs (ro,relatime)
/dev/loop31 on /tmp/tcloop/Xorg-7.6 type squashfs (ro,relatime)
/dev/loop32 on /tmp/tcloop/mirrors type squashfs (ro,relatime)
/dev/loop33 on /tmp/tcloop/sqlite3 type squashfs (ro,relatime)
/dev/loop34 on /tmp/tcloop/nspr type squashfs (ro,relatime)
/dev/loop35 on /tmp/tcloop/nss type squashfs (ro,relatime)
/dev/loop36 on /tmp/tcloop/flash10 type squashfs (ro,relatime)
/dev/loop37 on /tmp/tcloop/kmaps type squashfs (ro,relatime)
/dev/loop38 on /tmp/tcloop/ncurses-common type squashfs (ro,relatime)
/dev/loop39 on /tmp/tcloop/ncurses type squashfs (ro,relatime)
/dev/loop40 on /tmp/tcloop/libogg type squashfs (ro,relatime)
/dev/loop41 on /tmp/tcloop/libtheora type squashfs (ro,relatime)
/dev/loop42 on /tmp/tcloop/libmad type squashfs (ro,relatime)
/dev/loop43 on /tmp/tcloop/cdparanoia type squashfs (ro,relatime)
/dev/loop44 on /tmp/tcloop/faac type squashfs (ro,relatime)
/dev/loop45 on /tmp/tcloop/glib1 type squashfs (ro,relatime)
/dev/loop46 on /tmp/tcloop/gtk1 type squashfs (ro,relatime)
/dev/loop47 on /tmp/tcloop/MPlayer-svn-gtk1 type squashfs (ro,relatime)
/dev/loop48 on /tmp/tcloop/qt-4.x-base type squashfs (ro,relatime)
/dev/loop49 on /tmp/tcloop/qt-4.x-xml type squashfs (ro,relatime)
/dev/loop50 on /tmp/tcloop/smplayer type squashfs (ro,relatime)
/dev/loop51 on /tmp/tcloop/p7zip type squashfs (ro,relatime)
/dev/loop52 on /tmp/tcloop/p7zip-full type squashfs (ro,relatime)
/dev/loop53 on /tmp/tcloop/syslinux type squashfs (ro,relatime)
/dev/loop54 on /tmp/tcloop/nano type squashfs (ro,relatime)
/dev/loop55 on /tmp/tcloop/OSS-modules-3.0.3-tinycore type squashfs (ro,relatime)
/dev/loop56 on /tmp/tcloop/OSS type squashfs (ro,relatime)
/dev/loop57 on /tmp/tcloop/ruby type squashfs (ro,relatime)
/dev/loop58 on /tmp/tcloop/ruby-dev type squashfs (ro,relatime)
/dev/sda1 on /mnt/sda1 type ext2 (rw,relatime,barrier=1)
/dev/loop59 on /tmp/tcloop/zlib_base-dev type squashfs (ro,relatime)
/dev/loop60 on /tmp/tcloop/util-linux_base-dev type squashfs (ro,relatime)
/dev/loop61 on /tmp/tcloop/linux-3.0.1_api_headers type squashfs (ro,relatime)
/dev/loop62 on /tmp/tcloop/libpng_base-dev type squashfs (ro,relatime)
/dev/loop63 on /tmp/tcloop/jpeg_base-dev type squashfs (ro,relatime)
/dev/loop64 on /tmp/tcloop/imlib2_base-dev type squashfs (ro,relatime)
/dev/loop65 on /tmp/tcloop/gcc_base-dev type squashfs (ro,relatime)
/dev/loop66 on /tmp/tcloop/freetype_base-dev type squashfs (ro,relatime)
/dev/loop67 on /tmp/tcloop/eglibc_base-dev type squashfs (ro,relatime)
/dev/loop68 on /tmp/tcloop/e2fsprogs_base-dev type squashfs (ro,relatime)
/dev/loop69 on /tmp/tcloop/sed type squashfs (ro,relatime)
/dev/loop70 on /tmp/tcloop/popt type squashfs (ro,relatime)
/dev/loop71 on /tmp/tcloop/pkg-config type squashfs (ro,relatime)
/dev/loop72 on /tmp/tcloop/patch type squashfs (ro,relatime)
/dev/loop73 on /tmp/tcloop/make type squashfs (ro,relatime)
/dev/loop74 on /tmp/tcloop/m4 type squashfs (ro,relatime)
/dev/loop75 on /tmp/tcloop/grep type squashfs (ro,relatime)
/dev/loop76 on /tmp/tcloop/gmp type squashfs (ro,relatime)
/dev/loop77 on /tmp/tcloop/mpc type squashfs (ro,relatime)
/dev/loop78 on /tmp/tcloop/mpfr type squashfs (ro,relatime)
/dev/loop79 on /tmp/tcloop/binutils type squashfs (ro,relatime)
/dev/loop80 on /tmp/tcloop/gcc_libs type squashfs (ro,relatime)
/dev/loop81 on /tmp/tcloop/gcc type squashfs (ro,relatime)
/dev/loop82 on /tmp/tcloop/gawk type squashfs (ro,relatime)
/dev/loop83 on /tmp/tcloop/flex type squashfs (ro,relatime)
/dev/loop84 on /tmp/tcloop/compiletc type squashfs (ro,relatime)

Result of ls -l /mnt

Code: [Select]
total 8
drwxr-xr-x    9 root     root          4096 Oct  3 21:49 sda1/
drwxr-xr-x    7 root     root          4096 Oct  3 21:50 sdb1/
drwxr-xr-x    2 root     root            40 Oct  4 18:39 sr0/
drwxr-xr-x    2 root     root            40 Oct  4 19:50 test/

Result of cat /etc/mtab | grep /mnt/sda1: nothing

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
Re: Firefox and Save Files
« Reply #6 on: October 03, 2011, 07:03:24 PM »
Hi hypersonic
The drive is not mounted.

hypersonic

  • Guest
Re: Firefox and Save Files
« Reply #7 on: October 03, 2011, 07:12:16 PM »
Wow! MountTool shows sda1 "green", and I can browse /mnt/sda1, but not the subdirectories. This is weird...   :o I will try reboot

hypersonic

  • Guest
Re: Firefox and Save Files
« Reply #8 on: October 03, 2011, 07:25:20 PM »
Not working. I tried MountTool and command mount /dev/sda1 /mnt/sda1, but still can't save.  One of the folders does not give access with "cd"...
But "mount" shows now sda1:

Code: [Select]
rootfs on / type rootfs (rw,relatime,size=1796268k,nr_inodes=217410)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sdb1 on /mnt/sdb1 type ext2 (rw,relatime,barrier=1)
/dev/sdb1 on /home type ext2 (rw,relatime,barrier=1)
/dev/sdb1 on /opt type ext2 (rw,relatime,barrier=1)
/dev/loop0 on /tmp/tcloop/wireless-3.0.3-tinycore type squashfs (ro,relatime)
/dev/loop1 on /tmp/tcloop/libiw type squashfs (ro,relatime)
/dev/loop2 on /tmp/tcloop/wireless_tools type squashfs (ro,relatime)
/dev/loop3 on /tmp/tcloop/openssl-0.9.8 type squashfs (ro,relatime)
/dev/loop4 on /tmp/tcloop/wpa_supplicant type squashfs (ro,relatime)
/dev/loop5 on /tmp/tcloop/wifi type squashfs (ro,relatime)
/dev/loop6 on /tmp/tcloop/libxcb type squashfs (ro,relatime)
/dev/loop7 on /tmp/tcloop/libxml2 type squashfs (ro,relatime)
/dev/loop8 on /tmp/tcloop/glib2 type squashfs (ro,relatime)
/dev/loop9 on /tmp/tcloop/shared-mime-info type squashfs (ro,relatime)
/dev/loop10 on /tmp/tcloop/Xorg-7.6-lib type squashfs (ro,relatime)
/dev/loop11 on /tmp/tcloop/graphics-libs-1 type squashfs (ro,relatime)
/dev/loop12 on /tmp/tcloop/gdk-pixbuf2 type squashfs (ro,relatime)
/dev/loop13 on /tmp/tcloop/pango type squashfs (ro,relatime)
/dev/loop14 on /tmp/tcloop/expat2 type squashfs (ro,relatime)
/dev/loop15 on /tmp/tcloop/fontconfig type squashfs (ro,relatime)
/dev/loop16 on /tmp/tcloop/pixman type squashfs (ro,relatime)
/dev/loop17 on /tmp/tcloop/cairo type squashfs (ro,relatime)
/dev/loop18 on /tmp/tcloop/atk type squashfs (ro,relatime)
/dev/loop19 on /tmp/tcloop/gtk2 type squashfs (ro,relatime)
/dev/loop20 on /tmp/tcloop/dbus type squashfs (ro,relatime)
/dev/loop21 on /tmp/tcloop/dbus-glib type squashfs (ro,relatime)
/dev/loop22 on /tmp/tcloop/libnotify type squashfs (ro,relatime)
/dev/loop23 on /tmp/tcloop/curl type squashfs (ro,relatime)
/dev/loop24 on /tmp/tcloop/libasound type squashfs (ro,relatime)
/dev/loop25 on /tmp/tcloop/firefox type squashfs (ro,relatime)
/dev/loop26 on /tmp/tcloop/i2c-3.0.3-tinycore type squashfs (ro,relatime)
/dev/loop27 on /tmp/tcloop/graphics-3.0.3-tinycore type squashfs (ro,relatime)
/dev/loop28 on /tmp/tcloop/xf86-video-intel type squashfs (ro,relatime)
/dev/loop29 on /tmp/tcloop/Xorg-fonts type squashfs (ro,relatime)
/dev/loop30 on /tmp/tcloop/Xorg-7.6-bin type squashfs (ro,relatime)
/dev/loop31 on /tmp/tcloop/Xorg-7.6 type squashfs (ro,relatime)
/dev/loop32 on /tmp/tcloop/mirrors type squashfs (ro,relatime)
/dev/loop33 on /tmp/tcloop/sqlite3 type squashfs (ro,relatime)
/dev/loop34 on /tmp/tcloop/nspr type squashfs (ro,relatime)
/dev/loop35 on /tmp/tcloop/nss type squashfs (ro,relatime)
/dev/loop36 on /tmp/tcloop/flash10 type squashfs (ro,relatime)
/dev/loop37 on /tmp/tcloop/kmaps type squashfs (ro,relatime)
/dev/loop38 on /tmp/tcloop/ncurses-common type squashfs (ro,relatime)
/dev/loop39 on /tmp/tcloop/ncurses type squashfs (ro,relatime)
/dev/loop40 on /tmp/tcloop/libogg type squashfs (ro,relatime)
/dev/loop41 on /tmp/tcloop/libtheora type squashfs (ro,relatime)
/dev/loop42 on /tmp/tcloop/libmad type squashfs (ro,relatime)
/dev/loop43 on /tmp/tcloop/cdparanoia type squashfs (ro,relatime)
/dev/loop44 on /tmp/tcloop/faac type squashfs (ro,relatime)
/dev/loop45 on /tmp/tcloop/glib1 type squashfs (ro,relatime)
/dev/loop46 on /tmp/tcloop/gtk1 type squashfs (ro,relatime)
/dev/loop47 on /tmp/tcloop/MPlayer-svn-gtk1 type squashfs (ro,relatime)
/dev/loop48 on /tmp/tcloop/qt-4.x-base type squashfs (ro,relatime)
/dev/loop49 on /tmp/tcloop/qt-4.x-xml type squashfs (ro,relatime)
/dev/loop50 on /tmp/tcloop/smplayer type squashfs (ro,relatime)
/dev/loop51 on /tmp/tcloop/p7zip type squashfs (ro,relatime)
/dev/loop52 on /tmp/tcloop/p7zip-full type squashfs (ro,relatime)
/dev/loop53 on /tmp/tcloop/syslinux type squashfs (ro,relatime)
/dev/loop54 on /tmp/tcloop/nano type squashfs (ro,relatime)
/dev/loop55 on /tmp/tcloop/OSS-modules-3.0.3-tinycore type squashfs (ro,relatime)
/dev/loop56 on /tmp/tcloop/OSS type squashfs (ro,relatime)
/dev/loop57 on /tmp/tcloop/ruby type squashfs (ro,relatime)
/dev/loop58 on /tmp/tcloop/ruby-dev type squashfs (ro,relatime)
/dev/sda1 on /mnt/sda1 type ext2 (rw,relatime,barrier=1)

hypersonic

  • Guest
Re: Firefox and Save Files
« Reply #9 on: October 03, 2011, 07:33:05 PM »
is possible that I, using a different Linux to save the files on / dev/sda1, have changed the permission? Perhaps save data and format the partition help...

hypersonic

  • Guest
Re: Firefox and Save Files
« Reply #10 on: October 03, 2011, 08:41:46 PM »
I found the problem. When you try to copy some file to ext2 partition, you must be root to do it. But when partition is vfat, you can do it as user. But I don't understand why. Anyway, thats fine  :)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Firefox and Save Files
« Reply #11 on: October 03, 2011, 08:55:28 PM »
It is simply Linux permissions.
You need study up on Linux basics.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
Re: Firefox and Save Files
« Reply #12 on: October 03, 2011, 09:00:17 PM »
Hi hypersonic
Try
sudo chmod 777 /mnt/sda1
and see if that helps.

hypersonic

  • Guest
Re: Firefox and Save Files
« Reply #13 on: October 03, 2011, 10:38:56 PM »
No, that was the first thing I've tried: chmod 777 /mnt/sda1

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
Re: Firefox and Save Files
« Reply #14 on: October 04, 2011, 12:32:45 AM »
Hi hypersonic
Yes, and the result of   ls -l /mnt   show permissions of  755. Did you try the command using  sudo?
I was wrong in reply#6, it was mounted, I missed it when I scrolled the result of the mount command.
Kind of strange that it didn't show up in  etc/mtab. What do you get for:
ls -l /etc/mtab