gothfvck: GF logo (Default)
In order to access files in Ubuntu or another *nix distro that are on another OSes partition you should be able to just open up a file manager (Nautilus, Thunar...). From there you should see a disk, or even a few partitions and they should auto mount when you click on them.

However that's such a bother having to do every time. Open up gnome-terminal and type
sudo blkid
that will display your hard drives and their UUID (Universially Unique Identifier), label (if set), as well as where it's listed at in /dev.

For example:

$ sudo blkid
[sudo] password for gothfvck:
/dev/sda1: UUID="4C06A43806A424C4" TYPE="ntfs"
/dev/sdb1: LABEL="Ubuntu" UUID="042l6912-050b-4fc0-8e0c-e1ddb9dc3f7b" TYPE="ext4"
/dev/sdb3: UUID="653g26fd-2902-4add-b7ae-d11c2643d3b6" TYPE="swap"
/dev/sdb5: LABEL="Home" UUID="46e1b32b-b88f-4d73-b949-f1796fa508c3" TYPE="ext4"
/dev/sdc1: LABEL="storage2" UUID="257d18-2b4f-429f-b84e-64043022de6c" TYPE="ext4"

(The NTFS partition was for testing stuff.)
You'll need to copy the UUID's without the quotes if you want to add something to your fstab file and have it automatically mount at boot up.

Open a new tab or window and type
sudo nano /etc/fstab
This makes you the super user, opens a console text editor and then opens whatever file you told it to if provided, in this case it's fstab in the directory /etc/.

Mine looks like:

#
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb1 during installation
UUID=032f54a4-050b-4fc0-8e0c-e1ddb9dc3f5a / ext4 errors=remount-ro 0 1
# /home was on /dev/sdb5 during installation
UUID=123cad23b-b88f-4d73-b949-f1796fa508c3 /home ext4 defaults 0 2
# swap was on /dev/sda3 during installation
#UUID=a123cax-871d-4173-8162-9b1fefacc4a2 none swap sw 0 0
# swap was on /dev/sdb3 during installation
UUID=734e15dc-2902-4add-b7ae-d11c2643d3b6 none swap sw 0 0
UUID=257d18-2b4f-429f-b84e-64043022de6c /storage2 ext4 defaults 0 2
UUID=9e9b1181-d1353-4a3f-86f5-a3a528772f74 /storage ext4 defaults 0 2

As you can see from blkid I currently do not have /storage attached because it's an external drive but it's listed because it is almost always connected to this machine.

Just edit this fstab file with the drives you need. Remember "#" lines get skipped over when the computer reads them.

If you want to look at everything in a GUI fashion just to double check I recommend GParted http://gparted.sourceforge.net/ Which can be installed from the repository via apt-get or Synaptic or another software/package manager.

If you're in Windows you'll need to install something like Ext2Fsd: http://www.ext2fsd.com/. I think the other one: http://www.fs-driver.org/ is out of date but will probably still work just fine.


Handy command line tip when using Nautilus without Gnome:
nautilus --no-desktop
The default "run" dialog is usually set to "alt+F2" and if you need to open something with super user privileges first type
gksu

Some names have been changed (inconsistently I might add) during the pasting and posting of this article.

Profile

gothfvck: GF logo (Default)
GothFvck

June 2015

S M T W T F S
 123456
789101112 13
14151617181920
21222324252627
2829 30    

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 27th, 2017 03:31 am
Powered by Dreamwidth Studios