Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Mounting Linux partition

 
Goto page Previous  1, 2, 3, 4
   Soft32 Home -> Linux -> SUSE RSS
Next:  mipsel-linux-gnu-gcc: -pg and -fomit-frame-pointe..  
Author Message
VWWall

External


Since: Nov 28, 2008
Posts: 16



(Msg. 16) Posted: Wed Oct 28, 2009 10:06 am
Post subject: Re: Mounting Linux partition [Login to view extended thread Info.]
Archived from groups: alt>os>linux>suse (more info?)

Paul J Gans wrote:
> VWWall <vwall.DeleteThis@large.invalid> wrote:
>
> I don't understand. If you open "My Computer" and click on one
> of the disk partitions, a window opens showing you the contents
> of the disk. If you can't tell by the files present, make a
> zero length file in the root partition of each disk with the file
> name a name to identify the disk.
>
I often d/l a file to "/home" in one distro and find I would like to
have a copy in another distro. "My Computer" in openSUSE will not even
show the other distro's partition, since it's not mounted.

I can edit fstab, using YAST if desired, to mount any or all non-SUSE
partitions. These then show only by approximate size. Sure, I can open
each, hoping to find the one I want to copy to, but identifying them by
almost anything other then size would be helpful.

>> I just edited fstab, mounting /dev/sda12 to /mnt, (a default directory
>> in "/"), and it did indeed appear in "My Computer" as "17G Media". An
>> attempt to unmount failed. I can probably sort out the error message,
>> but this just illustrates my comments above! I could do it neatly by
>> making sub-directories under /mnt for each added partition in fsab.
>
The error: **"Device has /dev/sda12 volume.ignore set to TRUE. Refusing
to mount"*** It's already mounted! I just want to un-mount it!

umount /dev/sda12 as root from the cli did work; why not from "My Computer"?

This partition is actually PCLOS /home, but there are more "17G" partitions.

Why not have *all* partitions, not just SUSE and Windows, appear in
fstab using noauto as mount. Then "My Computer", that terrible Windows
left-over, could show them all and allow mounting/unmounting by a simple
right-click, as it now does for the ones it shows.

Many distros have avoided using "My Computer" by having an entry like:
"System>>Storage Media" which shows all partitions on the system.

>> See Paul Gans' reply and my comment above. It is possible to make it
>> show partitions by another identifier than size, but it requires some
>> extra work.
>
> Not much though.
>
Maybe I'm missing something. Tell me how to do it.

--
Virg Wall
Back to top
Login to vote
Kevin Miller

External


Since: Oct 25, 2007
Posts: 7



(Msg. 17) Posted: Wed Oct 28, 2009 10:46 am
Post subject: Re: Mounting Linux partition [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

houghi wrote:
> Why would I, in Linux, care if this is sde1 or hdd12 or
> penne:/home/houghi (sshfs) or some NFS mount or whatever? The only two
> moments I would care about this (and it could be done in one step) is
> during installation and then placing all the systems into fstab.

It can be handy when doing a reinstall - in the partition editor you can
see that /sde1 has a label of Home so you know to assign it to /home
when setting up the partitions. Or maybe /hdd12 is the /var partition
so you label it Var. Or whatever.

And after installing, it's easy to identify what partition is what even
if they're not installed...

....Kevin
--
Kevin Miller
Juneau, Alaska
http://www.alaska.net/~atftb
In a recent poll, seven out of ten hard drives preferred Linux.
Back to top
Login to vote
EOS

External


Since: Aug 01, 2007
Posts: 44



(Msg. 18) Posted: Wed Oct 28, 2009 11:20 am
Post subject: Re: Mounting Linux partition [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

houghi wrote:

> "My Computer" is a Window-ism that is not needed when you are looking at
> partitions. (Only something evil like KDE and GNOME could come up with
> such things. Very Happy )


That's why they call it
"system info" in the openSUSE kio_slave sysinfo:/
--
EOS
www.photo-memories.be
Running KDE 4.3.2 / openSUSE 11.2 RC1
http://tinyurl.com/y8hl95j
Back to top
Login to vote
houghi

External


Since: May 12, 2004
Posts: 420



(Msg. 19) Posted: Wed Oct 28, 2009 11:20 am
Post subject: Re: Mounting Linux partition [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

[[This message is not archived, and is only displayed for one month past post date.]]

EOS wrote:
> That's why they call it
> "system info" in the openSUSE kio_slave sysinfo:/

Why would you need that info?

houghi
--
Always listen to experts. They'll tell you what can't be done,
and why. Then do it.
-- Heinlein : Time Enough For Love
Back to top
Login to vote
EOS

External


Since: Aug 01, 2007
Posts: 44



(Msg. 20) Posted: Wed Oct 28, 2009 11:20 am
Post subject: Re: Mounting Linux partition [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

houghi wrote:

> Why would you need that info?
>
> houghi

You not Wink

I use it sometimes to see
if my HD is full or empty
--
EOS
www.photo-memories.be
Running KDE 4.3.2 / openSUSE 11.2 RC1
http://tinyurl.com/y8hl95j
Back to top
Login to vote
houghi

External


Since: May 12, 2004
Posts: 420



(Msg. 21) Posted: Wed Oct 28, 2009 11:20 am
Post subject: Re: Mounting Linux partition [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

[[This message is not archived, and is only displayed for one month past post date.]]

EOS wrote:
> houghi wrote:
>
>> Why would you need that info?
>
> You not Wink
>
> I use it sometimes to see
> if my HD is full or empty

df

houghi
--
Always listen to experts. They'll tell you what can't be done,
and why. Then do it.
-- Heinlein : Time Enough For Love
Back to top
Login to vote
VWWall

External


Since: Nov 28, 2008
Posts: 16



(Msg. 22) Posted: Wed Oct 28, 2009 11:20 am
Post subject: Re: Mounting Linux partition [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

houghi wrote:
> EOS wrote:
>> houghi wrote:
>>
>>> Why would you need that info?
>> You not Wink
>>
>> I use it sometimes to see
>> if my HD is full or empty
>
> df
>
df shows only mounted partitions + (/dev) and Use%
It tells nothing about entire hard drive(s) Use%
--
VWW
Back to top
Login to vote
David Bolt

External


Since: Sep 08, 2005
Posts: 188



(Msg. 23) Posted: Wed Oct 28, 2009 1:20 pm
Post subject: Re: Mounting Linux partition [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wednesday 28 Oct 2009 15:51, EOS played with alphabet spaghetti and
left this residue on the plate:

> houghi wrote:
>
>> Why would you need that info?
>>
>> houghi
>
> You not Wink
>
> I use it sometimes to see
> if my HD is full or empty

Using Konqueror, right-click and select "properties" or, using KDE4,
open Dolphin and do the same. Alternatively, under
Dolphin Settings -> General -> Status Bar just make sure that the
"Show space information" is enabled and then you'll see the free space
information at the bottom of the window every time you open it up.


Regards,
David Bolt

--
Team Acorn: www.distributed.net OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s
openSUSE 10.3 32b | openSUSE 11.0 32b | |
openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b | openSUSE 11.2rc1
RISC OS 4.02 | RISC OS 3.11 | openSUSE 11.1 PPC | TOS 4.02
Back to top
Login to vote
David Bolt

External


Since: Sep 08, 2005
Posts: 188



(Msg. 24) Posted: Wed Oct 28, 2009 1:20 pm
Post subject: Re: Mounting Linux partition [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tuesday 27 Oct 2009 17:54, while playing with a tin of spray paint,
VWWall painted this mural:

<snip>

> I just edited fstab, mounting /dev/sda12 to /mnt, (a default directory
> in "/"), and it did indeed appear in "My Computer" as "17G Media". An
> attempt to unmount failed. I can probably sort out the error message,
> but this just illustrates my comments above! I could do it neatly by
> making sub-directories under /mnt for each added partition in fsab.

If you're going to do that, you can use the auto-mounter to easily
mount and umount file systems as required and without making any
changes to /etc/fstab.

Firstly, I'm going to make a few assumptions, namely that the boot
partition is /dev/sda1 , Windows occupies /dev/sda2, you have the
common swap as /dev/sda3 , and each distro has its /home following the
/ . If I'm right, the layout would be something like:

/dev/sda1 /boot
/dev/sda2 C:
/dev/sda3 swap
/dev/sda4 extended partition
/dev/sda5 distro 1 /
/dev/sda6 distro 1 /home
/dev/sda7 distro 2 /
/dev/sda8 distro 2 /home
/dev/sda9 distro 3 /
/dev/sda10 distro 3 /home
/dev/sda11 distro 4 /
/dev/sda12 distro 4 /home

If the layout is different, you should be able to adapt the following
to make it match up.

Create the directories:

/mounts/distro-1
/mounts/distro-2
/mounts/distro-3
/mounts/distro-4

replacing distro-1 to distro-4 with the names, and maybe versions, of
the different distros. This is just for convenience and you could so
you can see which one is which.

Then create the files:

/etc/auto.distro-1.misc
/etc/auto.distro-2.misc
/etc/auto.distro-3.misc
/etc/auto.distro-4.misc

with the lines similar to this:

home -fstype=ext3 :/dev/sda6

For /etc/auto.distro-2.misc to /etc/auto.distro-4.misc , change the
sda6 to point to the correct partition. You may also need to change
the "=ext3" to match the file system type. You can find these out by
using:

file -s /dev/sda*

Finally, as the last part of the setup, add the following lines to
/etc/auto.master :

/mounts/distro-1 /etc/auto.distro-1.misc -t 300
/mounts/distro-2 /etc/auto.distro-2.misc -t 300
/mounts/distro-3 /etc/auto.distro-3.misc -t 300
/mounts/distro-4 /etc/auto.distro-4.misc -t 300

If you changed distro-1 to distro-4 to something more identifiable,
make those changes here as well.

Finally, once you've got everything sorted out, use:

/etc/init.d/autofs start

to start the auto-mounter. To check that it's working, use:

ls /mounts/distro-1/home

and see if you get a directory listing.


Now, the above is a generic set of instructions. Using info from
another post, here's a more specific set, much reduced to show how
quickly and easily it can be done. These all need to be done at a
root console:

mkdir -p /mounts/PCLOS
echo "home -fstype=ext3 :/dev/sda12" >>/etc/auto.PCLOS.misc
echo "/mounts/PCLOS /etc/auto.PCLOS.misc -t 300" >>/etc/auto.master
/etc/init.d/autofs restart

The following step can be as a normal user, or as root.

ls /mounts/PCLOS/home

Again, if everything worked, you should get a directory listing showing
the directory "home"

> See Paul Gans' reply and my comment above. It is possible to make it
> show partitions by another identifier than size, but it requires some
> extra work.

Not much. Give each file system a unique label and then you'll get to
see those that are mounted under "My Computer". You can do this using
tune2fs for ext2 and ext3 file systems[0]. Other file systems have
ways of doing this as well.


[0] This might also work with ext4 but can't confirm or deny it as yet.

Regards,
David Bolt

--
Team Acorn: www.distributed.net OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s
openSUSE 10.3 32b | openSUSE 11.0 32b | |
openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b | openSUSE 11.2rc1
RISC OS 4.02 | RISC OS 3.11 | openSUSE 11.1 PPC | TOS 4.02
Back to top
Login to vote
VWWall

External


Since: Nov 28, 2008
Posts: 16



(Msg. 25) Posted: Wed Oct 28, 2009 1:20 pm
Post subject: Re: Mounting Linux partition [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

David Bolt wrote:
> On Tuesday 27 Oct 2009 17:54, while playing with a tin of spray paint,
> VWWall painted this mural:
>
> <snip>
>
>> I just edited fstab, mounting /dev/sda12 to /mnt, (a default directory
>> in "/"), and it did indeed appear in "My Computer" as "17G Media". An
>> attempt to unmount failed. I can probably sort out the error message,
>> but this just illustrates my comments above! I could do it neatly by
>> making sub-directories under /mnt for each added partition in fsab.
>
<Snip useful instructions. The partition lay-out is very close to mine>

>> See Paul Gans' reply and my comment above. It is possible to make it
>> show partitions by another identifier than size, but it requires some
>> extra work.
>
> Not much. Give each file system a unique label and then you'll get to
> see those that are mounted under "My Computer". You can do this using
> tune2fs for ext2 and ext3 file systems[0]. Other file systems have
> ways of doing this as well.
>
Strangely enough, openSUSE already has /dev/disk/by-label, which shows
*all* partitions that have been given labels. It shows my "PCLOS_root",
which is the only one I labeled. It doesn't seem to use these entries
for anything.

In PCLOS and Mepis, all you need to do is in "System Menu>>Storage
Media", re-name the first column of names to whatever you wish.
This can be reached in Konqueror with "system:/media/ in "Location".

Some distros default to labels if they find partition labels on the
drive(s).

A right click on these "names" allows mounting the partition, checking
its properties, etc. just as "My Computer" in openSUSE does.
>
> [0] This might also work with ext4 but can't confirm or deny it as yet.
>
I haven't played with ext4 yet as my GRUB boot can't handle it without
chain loading. Just the inode changes some distros make by default, if
you let their install do the formatting, confuses legacy GRUB!

--
Virg Wall
Back to top
Login to vote
houghi

External


Since: May 12, 2004
Posts: 420



(Msg. 26) Posted: Wed Oct 28, 2009 3:20 pm
Post subject: Re: Mounting Linux partition [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

[[This message is not archived, and is only displayed for one month past post date.]]

David Bolt wrote:
> Using Konqueror, right-click and select "properties" or, using KDE4,
> open Dolphin and do the same.

That is all KDE stuff. You can use gparted or even much better:
/usr/sbin/parted -l
That will show clearly all the information in a readable form.

Use the -m option as well if you want to use it in scripts:
houghi@penne : /usr/sbin/parted -lm
BYT;
/dev/sda:500GB:scsi:512:512:msdos:ATA SAMSUNG HD502IJ;
1:32.3kB:1078MB:1077MB:linux-swap::, , , , , , , , , type=82, , ;
2:1078MB:22.6GB:21.5GB:ext3::, , , , , , , , , type=83, , ;
3:22.6GB:22.7GB:107MB:ext3::, , , , , , , , , type=83, , ;
4:22.7GB:500GB:477GB:::boot, , , , , , lba, , , type=0f, , ;
5:22.7GB:130GB:107GB:ext3::, , , , , , , , , type=83, , ;
6:130GB:237GB:107GB:ext3::, , , , , , , , , type=83, , ;
7:237GB:345GB:107GB:ext3::, , , , , , , , , type=83, , ;
8:345GB:452GB:107GB:ext3::, , , , , , , , , type=83, , ;
9:452GB:500GB:48.0GB:ext3::, , , , , , , , , type=83, , ;

BYT;
/dev/sdb:500GB:scsi:512:512:msdos:ATA SAMSUNG HD501LJ;
1:32.3kB:500GB:500GB:ext3::, , , , , , , , , type=83, , ;

So that should not be too dificult to re-write as something like:
Disk/Part Size Type
/dev/sda 500GB
/dev/sda1 1077MB linux-swap
/dev/sda2 21.5GB ext3
/dev/sda3 107MB ext3
....

And using df to add the name of the directory if available as well as
the free space. Simple.

houghi
--
Always listen to experts. They'll tell you what can't be done,
and why. Then do it.
-- Heinlein : Time Enough For Love
Back to top
Login to vote
houghi

External


Since: May 12, 2004
Posts: 420



(Msg. 27) Posted: Wed Oct 28, 2009 3:20 pm
Post subject: Re: Mounting Linux partition [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

[[This message is not archived, and is only displayed for one month past post date.]]

VWWall wrote:
> I can edit fstab, using YAST if desired, to mount any or all non-SUSE
> partitions.

You do not need fstab to mount stuff.

> These then show only by approximate size. Sure, I can open
> each, hoping to find the one I want to copy to, but identifying them by
> almost anything other then size would be helpful.

/dev/sda1, /dev/sda2, ...

> Why not have *all* partitions, not just SUSE and Windows, appear in
> fstab using noauto as mount.

Please no. I do not want things in fstab unless they must be there. Now
if you do that, you must have some place to mount them IF you decide you
want to mount them.

So what you can do is add that yourself.

> Then "My Computer", that terrible Windows
> left-over, could show them all and allow mounting/unmounting by a simple
> right-click, as it now does for the ones it shows.

The pain is less worth then the gain.

> Many distros have avoided using "My Computer" by having an entry like:
> "System>>Storage Media" which shows all partitions on the system.

No ideas how others do it. What you could do is see what program that
actualy is and install and use that.


houghi
--
Always listen to experts. They'll tell you what can't be done,
and why. Then do it.
-- Heinlein : Time Enough For Love
Back to top
Login to vote
houghi

External


Since: May 12, 2004
Posts: 420



(Msg. 28) Posted: Wed Oct 28, 2009 3:20 pm
Post subject: Re: Mounting Linux partition [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

[[This message is not archived, and is only displayed for one month past post date.]]

Kevin Miller wrote:
> It can be handy when doing a reinstall - in the partition editor you can
> see that /sde1 has a label of Home so you know to assign it to /home
> when setting up the partitions. Or maybe /hdd12 is the /var partition
> so you label it Var. Or whatever.

OK, that is labeling the partitions.

> And after installing, it's easy to identify what partition is what even
> if they're not installed...

OK. Clear.

houghi
--
Always listen to experts. They'll tell you what can't be done,
and why. Then do it.
-- Heinlein : Time Enough For Love
Back to top
Login to vote
Shmuel

External


Since: Nov 15, 2007
Posts: 20



(Msg. 29) Posted: Wed Oct 28, 2009 4:47 pm
Post subject: Re: Mounting Linux partition [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In <slrnhegdoh.ejo.houghi DeleteThis @penne.houghi>, on 10/28/2009
at 01:20 PM, houghi <houghi DeleteThis @houghi.org.invalid> said:

>What you need to know as root is what sda1 sda2 and sda3 contain.

No, you only need to know an available label.

>If you do not know that, then openSUSE does not know that.

Yast isn't part of openSUSE? Because the Yast Partitioner *DOES* know
those data.

--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to spamtrap DeleteThis @library.lspace.org
Back to top
Login to vote
Shmuel

External


Since: Nov 15, 2007
Posts: 20



(Msg. 30) Posted: Wed Oct 28, 2009 4:52 pm
Post subject: Re: Mounting Linux partition [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In <slrnhege5q.ejo.houghi RemoveThis @penne.houghi>, on 10/28/2009
at 01:27 PM, houghi <houghi RemoveThis @houghi.org.invalid> said:

>What I do when I am done with YaST is edit fstab so that the order is in
>an order I like. It will change lines, not delete them and add at the end
>afterwards.

I don't recall the details, but I've had cases where I edited a
configuration file manually and Yast later overwrote my changes. I've
found it to be safer to just use Yast across the board, and only edit
those files that Yast doesn't handle.

--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to spamtrap RemoveThis @library.lspace.org
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Surely suse is not this popular - At time of posting and accorind to torrentspy.com there are over 185437 people downloading Suse! No way! ..

YAST - Change Location Problem - Having problem with YAST (SLES9) where the original source of installation was deleted via 'Change Source of..

FTP - I have installed vsftpd but I am wondering how I set it up so that FTPing requires a password? The docs do not seem to....

pro100 - McDoo wrote: ..> I just purchased the pro/1000 gt nic. Suse 10.2 does not seem to have a >> diver for them....

openSuSE 10.2 No virtual consoles at RunLevel 5? - Hi, a.o.l.s Just migrated to 10.2 (from 9.3). Most stuff seems to be working, but just noticed that I can't use the..

System resolution timer too low - When I try to start the Rosegarden4 MIDI sequencer it trows up a box that says my system timer resolution is too low an...
       Soft32 Home -> Linux -> SUSE All times are: Pacific Time (US & Canada) (change)
Goto page Previous  1, 2, 3, 4
Page 2 of 4

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]