Formatted HD, Now problem with ushare...

Since formatting my HD Ushare will not share the HD.
Don’t know what to change to get it to see the HD properly and share it.
i

Can you create a file on the partition ? … without root permissions.

Where is the partition mounted ? … /media/MyDocs ?

How have you added it to ushare ?

I’ve added files to it, and deleted - all successfully
It’s mounted Win-MyDocs

gksudo gedit /etc/fstab

[spoiler]# /etc/fstab: static file system information.

Use ‘blkid’ to print the universally unique identifier for a

device; this may be used with UUID= as a more robust way to name devices

that works even if disks are added and removed. See fstab(5).

proc /proc proc nodev,noexec,nosuid 0 0

/ was on /dev/sda1 during installation

UUID=959cb526-06f8-4d5d-bec2-a6b42f438b07 / ext4 errors=remount-ro 0 1

swap was on /dev/sda5 during installation

UUID=e56dad6b-358f-4948-b51f-4abce81f50b1 none swap sw 0 0
/dev/sdb1 /media/Win-Storage ntfs-3g defaults,user,locale=en_GB.utf8 0 0

/dev/sdc1 /media/Win-MyDocs vfat defaults,user,locale=en_GB.utf8 0 0

/dev/sdc1 /media/Win-MyDocs ext4 rw,user,exec 0 0

/dev/sdc1 /media/Win-MyDocs ntfs-3g defaults,user,locale=en_GB.utf8 0 0

/dev/sdd1 /media/Win-Video ntfs-3g defaults,user,locale=en_GB.utf8 0 0
[/spoiler]

sudo fdisk -l

[spoiler]Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b1c6d

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 971007999 485502976 83 Linux
/dev/sda2 971010046 976771071 2880513 5 Extended
/dev/sda5 971010048 976771071 2880512 82 Linux swap / Solaris

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0a42c484

Device Boot Start End Blocks Id System
/dev/sdb1 * 63 488392064 244196001 7 HPFS/NTFS/exFAT

Disk /dev/sdc: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders, total 490234752 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e3991

Device Boot Start End Blocks Id System
/dev/sdc1 63 490223474 245111706 83 Linux

Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
16 heads, 63 sectors/track, 1938021 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc18d2306

Device Boot Start End Blocks Id System
/dev/sdd1 * 63 1953522143 976761040+ 7 HPFS/NTFS/exFAT
peter@Petes-ubuntu-pc:~$
[/spoiler]

gedit /etc/ushare.conf

[spoiler]# /etc/ushare.conf

Edit this file with ‘dpkg-reconfigure ushare’

Configuration file for uShare

uShare UPnP Friendly Name (default is ‘uShare’).

USHARE_NAME=Ubuntu

Interface to listen to (default is eth0).

Ex : USHARE_IFACE=eth1

USHARE_IFACE=eth0

Port to listen to (default is random from IANA Dynamic Ports range)

Ex : USHARE_PORT=49200

USHARE_PORT=49200

Port to listen for Telnet connections

Ex : USHARE_TELNET_PORT=1337

USHARE_TELNET_PORT=1337

Directories to be shared (space or CSV list).

Ex: USHARE_DIR=/dir1,/dir2

USHARE_DIR=/media/Win-Video

USHARE_DIR=/media/Win-Storage,/media/Win-MyDocs

USHARE_DIR=/media/Win-MyDocs

USHARE_DIR=/media/Win-Video,/media/Win-Storage,/media/Win-MyDocs

Use to override what happens when iconv fails to parse a file name.

The default uShare behaviour is to not add the entry in the media list

This option overrides that behaviour and adds the non-iconv’ed string into

the media list, with the assumption that the renderer will be able to

handle it. Devices like Noxon 2 have no problem with strings being passed

as is. (Umlauts for all!)

Options are TRUE/YES/1 for override and anything else for default behaviour

USHARE_OVERRIDE_ICONV_ERR=

Enable Web interface (yes/no)

USHARE_ENABLE_WEB=no

Enable Telnet control interface (yes/no)

USHARE_ENABLE_TELNET=no

Use XboX 360 compatibility mode (yes/no)

USHARE_ENABLE_XBOX=yes

Use DLNA profile (yes/no)

This is needed for PlayStation3 to work (among other devices)

USHARE_ENABLE_DLNA=no
[/spoiler]

If I’ve missed anything let me know.

Not entirely sure, how do I do it as root or not?

Not as root:

nautilus /media/Win-MyDocs

now see if you can create a doc or folder.

As root:

sudo nautilus /media/Win-MyDocs

now see if you can create a doc or folder.

What it the output from:

ls -l  /media

peter@Petes-ubuntu-pc:~$ nautilus /media/Win-MyDocs

It let me create a folder

peter@Petes-ubuntu-pc:~$ sudo nautilus /media/Win-MyDocs
[sudo] password for peter:

It let me delete the folder, then I created another folder. It came up with this after I typed in the command

[spoiler]
** (nautilus:4843): DEBUG: Syncdaemon not running, waiting for it to start in NameOwnerChanged
Initializing nautilus-gdu extension

** (nautilus:4843): WARNING **: Could not inhibit power management: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name “org.gnome.SessionManager” does not exist

** (nautilus:4843): WARNING **: Could not inhibit power management: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name “org.gnome.SessionManager” does not exist

— Hash table keys for warning below:
→ Peter
→ peter
→ l2081
→ inode/directory

(nautilus:4843): Eel-WARNING **: “unique eel_ref_str” hash table still has 4 elements at quit time (keys above)

— Hash table keys for warning below:
→ file:///media
→ file:///media/Win-MyDocs

(nautilus:4843): Eel-WARNING **: “nautilus-directory.c: directories” hash table still has 2 elements at quit time (keys above)
Shutting down nautilus-gdu extension
peter@Petes-ubuntu-pc:~$ [/spoiler]

ls -l /media

peter@Petes-ubuntu-pc:~$ ls -l /media
total 64
drwx------ 15 peter peter 4096 2011-11-30 21:34 Win-MyDocs
drwxr-xr-x 2 root root 4096 2011-11-13 17:59 WIn-MyDocs
drwxrwxrwx 1 root root 28672 2011-11-30 21:22 Win-Storage
drwxrwxrwx 1 root root 28672 2011-11-30 19:28 Win-Video
peter@Petes-ubuntu-pc:~$

Any ideas?

Sorry, somehow I missed you response … whats the output from:

mount

peter@Petes-ubuntu-pc:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sdb1 on /media/Win-Storage type fuseblk (rw,noexec,nosuid,nodev,allow_other,blksize=4096)
/dev/sdc1 on /media/Win-MyDocs type ext4 (rw,nosuid,nodev,commit=0)
/dev/sdd1 on /media/Win-Video type fuseblk (rw,noexec,nosuid,nodev,allow_other,blksize=4096)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/peter/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=peter)
peter@Petes-ubuntu-pc:~$

OK. 1 last question …

Remember we created a directory on Home called Ushare … and created some symlinks in it ?

if you enter your Home directory, then enter the Ushare directory, then click on the Win-MyDocs link … does it take you to the correct place ?

or what happens if you run:

nautilus ~/Ushare/Win-MyDocs

are you now on the correct drive ?

is it Home or home?
I cant see the dir
I tried nautilus ~/Ushare/Win-MyDocs
and it said it could not find it

What’s the output from:

ls -a ~/

and the contents of /etc/ushare.conf:

gedit /etc/ushare.conf

and which directories do you want Ushare to share ?

/media/Win-Storage
/media/Win-MyDocs
/media/Win-Video

??

ls -a ~/

peter@Petes-ubuntu-pc:~$ ls -a ~/
. .gvfs
… hp-check.log
.adobe .hplip
.arista .ICEauthority
Audiobooks .icedtea
.azureus .images
Azureus Downloads .isomaster
.bash_history .kde
.bash_logout .libquicktime_codecs
.bashrc .libreoffice
.bashrc~ .local
.cache log.txt
Calendar Appointments .macromedia
.clamtk .mission-control
.compiz-1 .mozilla
.config .mplayer
.conkyForecast.config Music
conkyHTChome.tar.gz My SureThing Projects
.conkyrc .mythtv
.conkyrc~ .nvidia-settings-rc
.conky_start.sh .odbc.ini
.cups .openshot
Daniusoft DRM Converter .pdf
.dbus Pictures
Desktop .pki
.dmrc Podcasts
Documents .profile
Downloads Public
.dvdcss .pulse
.dvdrip .pulse-cookie
dvdrip-data .qt
.dvdrip-master .sane
.dvdriprc sdc1
dwhelper sdd1
edid.bin Shared Files
.esd_auth .shotwell
examples.desktop .smb
.fontconfig .stellarium
.fonts .sudo_as_admin_successful
.fonts.conf .sudoku
.furiusisomount .swt
.gammurc Templates
.gconf .thumbnails
.gegl-0.0 .thunderbird
.gimp-2.6 .tvtime
.gksu.lock Ubuntu One
glabels-3.0.0 Videos
glabels-3.0.0.tar.bz2 .vreme.template
.gmobilemedia .Wammu
.gnome2 .wine
.gnome2_private .winetmp
gnome-shell-gnome2-notifications .winff
.goutputstream-B9QY5V .Xauthority
.goutputstream-WSRY5V .xbmc
.gstreamer-0.10 .xine
.gtk-bookmarks .xscreensaver
.gtk-custom-papers .xsession-errors
peter@Petes-ubuntu-pc:~$

gedit /etc/ushare.conf

[spoiler]# /etc/ushare.conf

Edit this file with ‘dpkg-reconfigure ushare’

Configuration file for uShare

uShare UPnP Friendly Name (default is ‘uShare’).

USHARE_NAME=Ubuntu

Interface to listen to (default is eth0).

Ex : USHARE_IFACE=eth1

USHARE_IFACE=eth0

Port to listen to (default is random from IANA Dynamic Ports range)

Ex : USHARE_PORT=49200

USHARE_PORT=49200

Port to listen for Telnet connections

Ex : USHARE_TELNET_PORT=1337

USHARE_TELNET_PORT=1337

Directories to be shared (space or CSV list).

Ex: USHARE_DIR=/dir1,/dir2

USHARE_DIR=/media/Win-Video

USHARE_DIR=/media/Win-Storage,/media/Win-MyDocs

USHARE_DIR=/media/Win-MyDocs

USHARE_DIR=/media/Win-Video,/media/Win-Storage,/media/Win-MyDocs

Use to override what happens when iconv fails to parse a file name.

The default uShare behaviour is to not add the entry in the media list

This option overrides that behaviour and adds the non-iconv’ed string into

the media list, with the assumption that the renderer will be able to

handle it. Devices like Noxon 2 have no problem with strings being passed

as is. (Umlauts for all!)

Options are TRUE/YES/1 for override and anything else for default behaviour

USHARE_OVERRIDE_ICONV_ERR=

Enable Web interface (yes/no)

USHARE_ENABLE_WEB=no

Enable Telnet control interface (yes/no)

USHARE_ENABLE_TELNET=no

Use XboX 360 compatibility mode (yes/no)

USHARE_ENABLE_XBOX=yes

Use DLNA profile (yes/no)

This is needed for PlayStation3 to work (among other devices)

USHARE_ENABLE_DLNA=no
[/spoiler]

OK, I guess you never got round to the symlink fix for sharing multiple directories in Ushare :wink:

First change the permissions of the /media/Win-MyDocs directory recursively:

sudo chmod -R 777 /media/Win-MyDocs

(777 means EVERYONE will have read/write/execute permission on this directory and -R means all the subdirs too)

Now create a hidden directory in you home directory called .Ushare :

mkdir ~/.Ushare

Now create the symlinks in that directory to your shared mount points:

ln -vfs /media/Win-Storage /home/peter/.Ushare/Win-Storage

then

ln -vfs /media/Win-MyDocs /home/peter/.Ushare/Win-MyDocs

then

ln -vfs /media/Win-Video /home/peter/.Ushare/Win-Video

Now edit the share line in /etc/ushare.conf and point it at the hidden /home/peter/.Ushare directory:

sudo gedit /etc/ushare.conf

and change the line:
USHARE_DIR=/media/Win-Video
to
USHARE_DIR=/home/peter/.Ushare

SAVE the file and exit gedit … now restart Ushare, or reboot.

and is that why I couldn’t share more than ONE drive at a time?
So, if I want to share specific things, I add symlinks and add the location to Ushare?

Yes … although if you add anything in subdirectories, Ushare will see them anyway :slight_smile:

Ushare is supposed to be able to share more than one directory … but for some reason later releases are broken … so this is a “workaround” which effectively puts multiple locations in a single directory … one of the benefits of the way the Linux directory structure works :wink: