LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-18-2007, 06:56 PM   #1
1968eric
LQ Newbie
 
Registered: May 2007
Posts: 7

Rep: Reputation: 0
How do I access another partition?


I am dual booting between openSUSE and Ubuntu. I'm unfamiliar with KDE and can't seem to figure out how to get at my files on the Ubuntu partition.

I've tried just going to /dev/sda2 in konqeror but that doesn't work.

Thanks.
 
Old 11-18-2007, 07:21 PM   #2
dkm999
Member
 
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
This is a problem of confusing a block device (/dev/sda2) with a file system. In order to look at the filesystem that lives on /dev/sda2, you will need to mount it somewhere within your existing filesystem. The conventional place to mount stuff (at least temporarily) is /mnt. Whatever is in the /mnt folder will be hidden when you mount a new filesystem there, so you might want to create a new directory, say
/mnt/tmp, and then mount the OpenSUSE filesystem on your Ubuntu system.

Very probably, after you have created the directory /mnt/tmp, the command
Code:
 # mount /dev/sda2 /mnt/tmp
will do the trick, because the mount command tries its best to figure out what you want. But it might not be able to figure out what kind of filesystem you are asking for; in that case, Read The Fine Manpage
 
Old 11-18-2007, 07:34 PM   #3
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 59
Yep just fallow dkm999 advise,

commands as root,

Code:
# mkdir /mnt/tmp

# mount /dev/sda2 /mnt/tmp

to view contents
# cd /mnt/tmp

to unmount after your done, make sure you are not in the /mnt/tmp directory.

# umount /dev/sda2 /mnt/tmp
 
Old 11-18-2007, 07:38 PM   #4
1968eric
LQ Newbie
 
Registered: May 2007
Posts: 7

Original Poster
Rep: Reputation: 0
That worked. Thanks very much! I'd kind of like the stuff to be in more of a permanent location tho - any tips on how I'd do that? Can I have it so it always mounts to a folder in my home directory?

I've tried stuff like

mount /dev/sda2/home/ /home/ubuntu

ubuntu is the folder I created in my home dir. I get various errors, one of them is /home/ubuntu is not a mount point.

All my music and pictures are on that other partition and I'd like them more readily available than going to /mnt/tmp

Last edited by 1968eric; 11-18-2007 at 08:03 PM.
 
Old 11-18-2007, 09:02 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Quote:
Originally Posted by 1968eric View Post
That worked. Thanks very much! I'd kind of like the stuff to be in more of a permanent location tho - any tips on how I'd do that? Can I have it so it always mounts to a folder in my home directory?

I've tried stuff like

mount /dev/sda2/home/ /home/ubuntu

ubuntu is the folder I created in my home dir. I get various errors, one of them is /home/ubuntu is not a mount point.

All my music and pictures are on that other partition and I'd like them more readily available than going to /mnt/tmp
Take the "/home/" off the device name. You won't want to mount it under a home directory if you want other to be able to read the files. You could create a symbolic link to /mnt/tmp/ if you wanted to. Also, if /home/ubuntu already has files in it, they well be concealed if you mount a partition over the directory.

Last edited by jschiwal; 11-19-2007 at 06:38 AM.
 
Old 11-18-2007, 09:22 PM   #6
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 59
Quote:
Can I have it so it always mounts to a folder in my home directory?
So you want every time you boot openSuse it will mount your Ubuntu?


Quote:
I've tried stuff like

mount /dev/sda2/home/ /home/ubuntu
No that wouldn't work your /home on the ubuntu would need to be on it's own partition before you would be able to mount it by its self.

mount /dev/sda2 /home/ubuntu

If you want this to happen each time you boot then you will have to edit your /etc/fstab

It would look something like this

Code:
/dev/sda2  /home/ubuntu  ext3     defaults  1  1
This is assuming the ubuntu is using the ext3 file system.

NOTE: It would be smart to make a backup of your fstab incase something goes wrong. as root do # cp /etc/fstab fstab.old
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
colinux access to ext3 partition (opensuse root partition) billtracy1957 Linux - General 0 05-03-2007 10:29 PM
Suse 10.1, Access denied while trying to access a partition Rollotamasi Linux - Newbie 1 06-23-2006 04:59 PM
partition rw access problem lsu420luv Linux - General 4 04-01-2006 03:42 PM
How can I access files in my Windows 98 partition from my Linux partition, /w BASH? Fabyfakid Linux - Newbie 4 09-17-2004 11:05 PM
Can't access new partition. DTre08 Linux - General 6 07-21-2003 01:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration