 |
|
| Linux Forum Index » Linux - Suse Forum » Mounting Linux partition... |
|
Page 2 of 4 Goto page Previous 1, 2, 3, 4 Next |
|
| Author |
Message |
| houghi... |
Posted: Wed Oct 28, 2009 9:48 am |
|
|
|
Guest
|
EOS wrote:
Quote: 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 |
|
|
|
| EOS... |
Posted: Wed Oct 28, 2009 9:51 am |
|
|
|
Guest
|
|
| Back to top |
|
|
|
| houghi... |
Posted: Wed Oct 28, 2009 10:01 am |
|
|
|
Guest
|
EOS wrote:
Quote: houghi wrote:
Why would you need that info?
You not ;-)
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 |
|
|
|
| David Bolt... |
Posted: Wed Oct 28, 2009 11:00 am |
|
|
|
Guest
|
On Wednesday 28 Oct 2009 15:51, EOS played with alphabet spaghetti and
left this residue on the plate:
Quote: houghi wrote:
Why would you need that info?
houghi
You not ;-)
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 at (no spam) ~100Mnodes RC5-72 at (no spam) ~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 |
|
|
|
| VWWall... |
Posted: Wed Oct 28, 2009 11:06 am |
|
|
|
Guest
|
Paul J Gans wrote:
Quote: VWWall <vwall at (no spam) 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.
Quote: 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.
Quote: 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 |
|
|
|
| VWWall... |
Posted: Wed Oct 28, 2009 11:17 am |
|
|
|
Guest
|
houghi wrote:
Quote: EOS wrote:
houghi wrote:
Why would you need that info?
You not ;-)
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 |
|
|
|
| David Bolt... |
Posted: Wed Oct 28, 2009 12:18 pm |
|
|
|
Guest
|
On Tuesday 27 Oct 2009 17:54, while playing with a tin of spray paint,
VWWall painted this mural:
<snip>
Quote: 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"
Quote: 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 at (no spam) ~100Mnodes RC5-72 at (no spam) ~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 |
|
|
|
| Kevin Miller... |
Posted: Wed Oct 28, 2009 12:46 pm |
|
|
|
Guest
|
houghi wrote:
Quote: 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 |
|
|
|
| VWWall... |
Posted: Wed Oct 28, 2009 1:11 pm |
|
|
|
Guest
|
David Bolt wrote:
Quote: 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
Quote: 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.
Quote:
[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 |
|
|
|
| houghi... |
Posted: Wed Oct 28, 2009 1:13 pm |
|
|
|
Guest
|
David Bolt wrote:
Quote: 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 at (no spam) 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 |
|
|
|
| houghi... |
Posted: Wed Oct 28, 2009 1:21 pm |
|
|
|
Guest
|
VWWall wrote:
Quote: I can edit fstab, using YAST if desired, to mount any or all non-SUSE
partitions.
You do not need fstab to mount stuff.
Quote: 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, ...
Quote: 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.
Quote: 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.
Quote: 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 |
|
|
|
| houghi... |
Posted: Wed Oct 28, 2009 1:25 pm |
|
|
|
Guest
|
Kevin Miller wrote:
Quote: 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.
Quote: 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 |
|
|
|
| David Bolt... |
Posted: Wed Oct 28, 2009 3:32 pm |
|
|
|
Guest
|
On Wednesday 28 Oct 2009 19:13, while playing with a tin of spray paint,
houghi painted this mural:
Quote: David Bolt wrote:
Using Konqueror, right-click and select "properties" or, using KDE4,
open Dolphin and do the same.
That is all KDE stuff.
That's because EOS was talking about finding out how much free space he
had available while using his desktop. If he was using a console, I'd
have suggested using df, possibly appending a path known to exist on
the file system he's interested in checking out the free space size.
Quote: You can use gparted or even much better:
/usr/sbin/parted -l
That will show clearly all the information in a readable form.
<snip>
Quote: And using df to add the name of the directory if available as well as
the free space. Simple.
You already did something like that a short(ish) while ago. That script
showed the free space available on the various mounted file systems,
along with the total.
Regards,
David Bolt
--
Team Acorn: www.distributed.net OGR-NG at (no spam) ~100Mnodes RC5-72 at (no spam) ~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 |
|
|
|
| David Bolt... |
Posted: Wed Oct 28, 2009 3:36 pm |
|
|
|
Guest
|
On Wednesday 28 Oct 2009 19:11, while playing with a tin of spray paint,
VWWall painted this mural:
<snip>
Quote: 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.
I've been using it for several releases, although it was an issue with
10.2[0] and having /var on a separate partition that moved me to using
labels for all my file systems. It made things much easier and means
that it doesn't matter if I change drive ordering. With the change in
11.1 to using /dev/disk/by-id/ in /boot/grub/device.map , this isn't as
big an issue.
Quote: It shows my "PCLOS_root",
which is the only one I labeled. It doesn't seem to use these entries
for anything.
You can change /etc/fstab to specify mounting using the file system
labels. Gets around the issue of /dev/disk/by-id when cloning a file
system from a failing hard drive.
Quote: Some distros default to labels if they find partition labels on the
drive(s).
I'm not surprised. It seems that various methods were used when certain
changes were made that meant the drive order was no longer fixed. Some
distros use by-id, others use by-label, and I'm sure there'll be some
others that are using by-uuid
Quote: 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!
I don't know about that. The only system I have with ext4 is the 11.2
test system, and grub boots that properly.
[0] May have been 10.1, I don't remember for certain.
Regards,
David Bolt
--
Team Acorn: www.distributed.net OGR-NG at (no spam) ~100Mnodes RC5-72 at (no spam) ~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 |
|
|
|
| Shmuel (Seymour J.) Metz... |
Posted: Wed Oct 28, 2009 3:47 pm |
|
|
|
Guest
|
In <slrnhegdoh.ejo.houghi at (no spam) penne.houghi>, on 10/28/2009
at 01:20 PM, houghi <houghi at (no spam) houghi.org.invalid> said:
Quote: What you need to know as root is what sda1 sda2 and sda3 contain.
No, you only need to know an available label.
Quote: 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 at (no spam) library.lspace.org |
|
|
| Back to top |
|
|
|
|
|
All times are GMT - 5 Hours
The time now is Mon Dec 07, 2009 11:38 am
|
|