JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for FSL Archives


FSL Archives

FSL Archives


FSL@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

FSL Home

FSL Home

FSL  January 2013

FSL January 2013

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Configure bash problems with extern hard disk

From:

"Watson, Christopher" <[log in to unmask]>

Reply-To:

FSL - FMRIB's Software Library <[log in to unmask]>

Date:

Mon, 21 Jan 2013 22:11:36 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (117 lines)

A solution for mounting ext* drives on Windows is to use ext2fsd. I've never had any problems with it.
________________________________________
From: FSL - FMRIB's Software Library [[log in to unmask]] on behalf of Anderson M. Winkler [[log in to unmask]]
Sent: Monday, January 21, 2013 5:02 PM
To: [log in to unmask]
Subject: Re: [FSL] Configure bash problems with extern hard disk

Hi Rosalia,

I'm not sure what you mean. The disk is mounted as /media/TOSHIBA\ EXT, which indeed behaves exactly as a directory, and you can put all your analyses on it, and also run commands from it. It behaves just as the files that live in your your home directory, with a few exceptions. It appears to me that your disk is formatted as NTFS, which is a Windows-style filesystem, not a Linux-native. The good of NTFS is that the files can be accessed from any computer that you plug your disk to, but the bad is that it never truly behaves (in terms of file permissions and ownership) as native. This is perhaps the only difference if compared to your internal HD.

If you are bothered with file permissions and ownership, the solution is to format the disk using a Linux native format (such as ext3, ext4, reiser, btrfs, etc). However, then you'll only be able to see the files when the disk is plugged into a Linux machine (any Linux). If you connect to a Windows PC, it won't recognise the disk, and it may even dangerously offer you the option to re-format the it as NTFS, and if you accept, you'll lose all the data.

If it helps as advice, my external disks are all formatted as ext4, and I only use Linux. I never lost data because of file system format, but I used to be bothered with different character encodings in NTFS and with all my files being wrongly marked as executable in external drives.

Another thing is that you may want easier access to the disk, having it accessible from your home directory. For this, you can create a link (more specifically, a symbolic link) in your home directory that points to the external drive. This can be done as:

cd ~
ln -s /media/TOSHIBA\ EXT toshiba

Then you should see the a link called "toshiba" (or use any other name you prefer) in your home directory, and when you cd into it, it's almost as if you were inside /media/TOSHIBA\ EXT.

With an external drive, which you may often want to unplug (specially if this is a laptop), there isn't much more to do. If you were using a desktop computer, you could consider an internal disk, which is also cheaper, and which you don't need unmount ever. Then you could even have your /home inside it, but with an external, this is generally a bad idea.

Hope this helps somehow!

All the best,

Anderson

2013/1/21 Rosalia Dacosta Aguayo <[log in to unmask]<mailto:[log in to unmask]>>

Dear Anderson,

Thank you for your advice. Maybe I have not explained properly. I have no problems with the access to the information of my external hard disk. The problem was that I need that my hard disk works as a directory, because I have little space in my computer and I need doing all the neuroimage processing from my external hard disk in order to have enough space.

Is it ok, then, do this for my purpose?

Yours sincerely,
Rosalia.

El 21/01/2013 22:07, "Anderson M. Winkler" <[log in to unmask]<mailto:[log in to unmask]>> escribió:

Hi Christopher,

Hmm..., I'm afraid this might not be the best solution. The disk isn't formatted as ext2 (as evidenced by the fuseblk in her /etc/mtab). And if Rosalia adds the disk to her /etc/fstab, she will have warning messages everytime she turns the computer on and the disk isn't there, as well as some headaches to unmount it everytime, as it seems she isn't very familiar with these things.

My suggestion is that, since Ubuntu can handle this automatically, and it's already doing so, let's leave it taking care of the disk. It's possible nonetheless to mount and unmount it just using the desktop interface (right-click on the icon, etc).

All the best!

Anderson



2013/1/21 Watson, Christopher <[log in to unmask]<mailto:[log in to unmask]>>
You need to enter as a line in /etc/fstab something like
/dev/sdb1    /media/external    ext2    defaults    0 0

________________________________________
From: FSL - FMRIB's Software Library [[log in to unmask]<mailto:[log in to unmask]>] on behalf of Rosalia Dacosta Aguayo [[log in to unmask]<mailto:[log in to unmask]>]
Sent: Monday, January 21, 2013 3:43 PM
To: [log in to unmask]<mailto:[log in to unmask]>
Subject: Re: [FSL] Configure bash problems with extern hard disk

Sorry, Dr. Winker,

Looking into the Linux manual I have found another command "lsusb", and it shows me that my media toshiba is in the system:
rosi@rosi-HP-Pavilion-dv9700-Notebook-PC:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 064e:a110 Suyin Corp. HP Webcam
Bus 004 Device 002: ID 046d:c05b Logitech, Inc.
Bus 002 Device 006: ID 0480:a006 Toshiba America Info. Systems, Inc.
rosi@rosi-HP-Pavilion-dv9700-Notebook-PC:~$





2013/1/21 Rosalia Dacosta Aguayo <[log in to unmask]<mailto:[log in to unmask]><mailto:[log in to unmask]<mailto:[log in to unmask]>>>
Dear Winker,

Here it is:

1.  rosi@rosi-HP-Pavilion-dv9700-Notebook-PC:~$ /etc/mtab
bash: /etc/mtab: Permission denied
rosi@rosi-HP-Pavilion-dv9700-Notebook-PC:~$

2. rosi@rosi-HP-Pavilion-dv9700-Notebook-PC:~$ cat /etc/mtab
/dev/sda6 / ext4 rw,errors=remount-ro,commit=0 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/security securityfs rw 0 0
udev /dev devtmpfs rw,mode=0755 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
tmpfs /run tmpfs rw,noexec,nosuid,size=10%,mode=0755 0 0
none /run/lock tmpfs rw,noexec,nosuid,nodev,size=5242880 0 0
none /run/shm tmpfs rw,nosuid,nodev 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
/dev/sdb1 /media/TOSHIBA\040EXT fuseblk rw,nosuid,nodev,allow_other,blksize=4096,default_permissions 0 0
gvfs-fuse-daemon /home/rosi/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=rosi 0 0
rosi@rosi-HP-Pavilion-dv9700-Notebook-PC:~$

My hard disk is in ///computer, but there is no way to configure a path in the bash script in order it can be recognized.

Thank you.

Rosalia.

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
2006
2005
2004
2003
2002
2001


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager