[opensuse] How to tell what format is a partions
Guy, This might be a nubie question, but last night I installed a new sata card and 1TB drive. Well, I thought I had made the 1TB drive ext3, but when I got to mount it, I get wrong super block error. Now, if I tell that to mount it with auto it does. So how can I tell what format is the partions, because it not ext3. Thanks. -- -- Command, n.: Statement presented by a human and accepted by a computer in such a manner as to make the human feel as if he is in control. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, Aug 5, 2008 at 7:11 PM, Chuck Payne
This might be a nubie question, but last night I installed a new sata card and 1TB drive. Well, I thought I had made the 1TB drive ext3, but when I got to mount it, I get wrong super block error. Now, if I tell that to mount it with auto it does. So how can I tell what format is the partions, because it not ext3.
If you have KDE installed you can simply open "My Computer" on the desktop and it will show all the mounted disks and the format. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 2008-08-05 at 19:16 -0400, Andrew Joakimsen wrote:
On Tue, Aug 5, 2008 at 7:11 PM, Chuck Payne
wrote: So how can I tell what format is the partions, because it not ext3.
If you have KDE installed you can simply open "My Computer" on the desktop and it will show all the mounted disks and the format.
And if you have GNOME installed, you can click on the System Monitor button on the slab menu to see all about the file system partition, along with the system resources monitor and running processes. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Chuck Payne wrote:
Guy,
This might be a nubie question, but last night I installed a new sata card and 1TB drive. Well, I thought I had made the 1TB drive ext3, but when I got to mount it, I get wrong super block error. Now, if I tell that to mount it with auto it does. So how can I tell what format is the partions, because it not ext3.
Thanks.
How 'bout fstab? -- Tony Alfrey tonyalfrey@earthlink.net "I'd Rather Be Sailing" -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 05 August 2008 16:11, Chuck Payne wrote:
Guy,
This might be a nubie question, but last night I installed a new sata card and 1TB drive. Well, I thought I had made the 1TB drive ext3, but when I got to mount it, I get wrong super block error. Now, if I tell that to mount it with auto it does. So how can I tell what format is the partions, because it not ext3.
Use "file -s" command on the partition's /dev entry. You usually must be root to do this. On my system: # file -s /dev/sd[a-z][0-9] /dev/sda1: ReiserFS V3.6 block size 4096 (mounted or unclean) num blocks 73254384 r5 hash /dev/sdb1: SGI XFS filesystem data (blksz 4096, inosz 256, v2 dirs) /dev/sdb2: x86 boot sector, Microsoft Windows XP MBR /dev/sdb3: Linux/i386 swap file (new style) 1 (4K pages) size 1048240 pages /dev/sdb4: x86 boot sector, extended partition table /dev/sdc1: SGI XFS filesystem data (blksz 4096, inosz 256, v2 dirs) /dev/sdd1: SGI XFS filesystem data (blksz 4096, inosz 256, v2 dirs) /dev/sdd2: SGI XFS filesystem data (blksz 4096, inosz 256, v2 dirs) /dev/sdd3: SGI XFS filesystem data (blksz 4096, inosz 256, v2 dirs) This works on CDs and DVDs, too, if there's a disc in the drive. and will show you the volume label.
Thanks.
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Randall R Schulz wrote:
On Tuesday 05 August 2008 16:11, Chuck Payne wrote:
Guy,
This might be a nubie question, but last night I installed a new sata card and 1TB drive. Well, I thought I had made the 1TB drive ext3, but when I got to mount it, I get wrong super block error. Now, if I tell that to mount it with auto it does. So how can I tell what format is the partions, because it not ext3.
Use "file -s" command on the partition's /dev entry. You usually must be root to do this.
Leave it to R.S. to know what he's talking about. -- Tony Alfrey tonyalfrey@earthlink.net "I'd Rather Be Sailing" -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 05 August 2008 16:58, Tony Alfrey wrote:
Randall R Schulz wrote:
On Tuesday 05 August 2008 16:11, Chuck Payne wrote:
Guy,
... So how can I tell what format is the partions, because it not ext3.
Use "file -s" command on the partition's /dev entry. You usually must be root to do this.
Leave it to R.S. to know what he's talking about.
Hey, man, I demand that you take that back! How dare you impugn me like this...
-- Tony Alfrey tonyalfrey@earthlink.net "I'd Rather Be Sailing"
Does that include the Tech Dinghy? I learned to sail on them, but haven't sailed since. Good times... RRS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, August 6, 2008 01:37, Randall R Schulz wrote:
Use "file -s" command on the partition's /dev entry. You usually must be root to do this.
On my system:
# file -s /dev/sd[a-z][0-9]
Wow, that's a real nice solution. I'm not near such a box now, but would this also work for RAID (md) and LVM devices? -- Amedee -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 6 Aug 2008 23:12:00 Amedee Van Gasse wrote:
On Wed, August 6, 2008 01:37, Randall R Schulz wrote:
Use "file -s" command on the partition's /dev entry. You usually must be root to do this.
On my system:
# file -s /dev/sd[a-z][0-9]
Wow, that's a real nice solution. I'm not near such a box now, but would this also work for RAID (md) and LVM devices?
-- Amedee
With a slight change to the regex (or just specifying the /dev/md<n> device directly) it does work correctly for Raid 1 partitions (showing them as the underlying format, in my case ext3) but not for linear raid partitions. It shows the first part as expected, but the second part is shown as an "MPEG sequence" and the third simply as "data". I don't have any LVM partitions so I can't comment on that. -- =================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au =================================================== Rule of the Great: When people you greatly admire appear to be thinking deep thoughts, they probably are thinking about lunch.
On Wed, August 6, 2008 18:04, Rodney Baker wrote:
On Wed, 6 Aug 2008 23:12:00 Amedee Van Gasse wrote:
On Wed, August 6, 2008 01:37, Randall R Schulz wrote:
Use "file -s" command on the partition's /dev entry. You usually must be root to do this.
On my system:
# file -s /dev/sd[a-z][0-9]
Wow, that's a real nice solution. I'm not near such a box now, but would this also work for RAID (md) and LVM devices?
-- Amedee
With a slight change to the regex (or just specifying the /dev/md<n> device directly) it does work correctly for Raid 1 partitions (showing them as the underlying format, in my case ext3) but not for linear raid partitions. It shows the first part as expected, but the second part is shown as an "MPEG sequence" and the third simply as "data".
I don't have any LVM partitions so I can't comment on that.
I have some LVM partitions on top of RAID5. But I cannot reach that box at the moment, I just switched from cable to DSL and I have not yet configured the new DSL modem/router to forward port 22. Perhaps tonight, if I don't forget it, I'll experiment a bit. -- Amedee -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Chuck Payne wrote:
Guy,
This might be a nubie question, but last night I installed a new sata card and 1TB drive. Well, I thought I had made the 1TB drive ext3, but when I got to mount it, I get wrong super block error. Now, if I tell that to mount it with auto it does. So how can I tell what format is the partions, because it not ext3.
Thanks.
what about typing "mount" in a konsole window? -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
David C. Rankin wrote:
Chuck Payne wrote:
Guy,
This might be a nubie question, but last night I installed a new sata card and 1TB drive. Well, I thought I had made the 1TB drive ext3, but when I got to mount it, I get wrong super block error. Now, if I tell that to mount it with auto it does. So how can I tell what format is the partions, because it not ext3.
Thanks.
what about typing "mount" in a konsole window?
Alright, don't be lazy, we'll clean it up a bit: mount | sed -e 's/^.*on\(.*\)$/\1/' -e '/^\w/d' | awk '{ printf "%-30s\t%s\t%s\n", $1,$2,$3}' / type ext3 /proc type proc /sys type sysfs /sys/kernel/debug type debugfs /dev type tmpfs /dev/pts type devpts /boot type ext3 /home type ext3 -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2008-08-06 at 21:31 -0500, David C. Rankin wrote:
David C. Rankin wrote:
Chuck Payne wrote:
Guy,
This might be a nubie question, but last night I installed a new sata card and 1TB drive. Well, I thought I had made the 1TB drive ext3, but when I got to mount it, I get wrong super block error. Now, if I tell that to mount it with auto it does. So how can I tell what format is the partions, because it not ext3.
Thanks.
what about typing "mount" in a konsole window?
Alright, don't be lazy, we'll clean it up a bit:
mount | sed -e 's/^.*on\(.*\)$/\1/' -e '/^\w/d' | awk '{ printf "%-30s\t%s\t%s\n", $1,$2,$3}'
/ type ext3 /proc type proc /sys type sysfs /sys/kernel/debug type debugfs /dev type tmpfs /dev/pts type devpts /boot type ext3 /home type ext3
IIRC,mount deals with partition that are mounted, or listed in fstab, but not ones that might be attached, unmounted and not listed in fstab? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mike McMullin wrote:
On Wed, 2008-08-06 at 21:31 -0500, David C. Rankin wrote:
David C. Rankin wrote:
Chuck Payne wrote:
Guy,
This might be a nubie question, but last night I installed a new sata card and 1TB drive. Well, I thought I had made the 1TB drive ext3, but when I got to mount it, I get wrong super block error. Now, if I tell that to mount it with auto it does. So how can I tell what format is the partions, because it not ext3.
Thanks.
what about typing "mount" in a konsole window?
Alright, don't be lazy, we'll clean it up a bit:
mount | sed -e 's/^.*on\(.*\)$/\1/' -e '/^\w/d' | awk '{ printf "%-30s\t%s\t%s\n", $1,$2,$3}'
/ type ext3 /proc type proc /sys type sysfs /sys/kernel/debug type debugfs /dev type tmpfs /dev/pts type devpts /boot type ext3 /home type ext3
IIRC,mount deals with partition that are mounted, or listed in fstab, but not ones that might be attached, unmounted and not listed in fstab?
Right you are, but "cat /proc/partitions lists the partitions but not the type. I think in the unmounted case, you are back to what Randall suggested. -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 7 Aug 2008, David C. Rankin wrote:-
Right you are, but "cat /proc/partitions lists the partitions but not the type. I think in the unmounted case, you are back to what Randall suggested.
For mounted partitions, you can use "cat /etc/mtab" to list what's mounted on the system. It's in the same format as /etc/fstab but, for file systems listed as "auto" in /etc/fstab, it shows the file system type that is actually being used. Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-P2 @ ~100Mnodes RC5-72 @ ~15Mkeys SUSE 10.1 32 | | openSUSE 10.3 32b | openSUSE 11.0 32b | openSUSE 10.2 64b | openSUSE 10.3 64b | openSUSE 11.0 64b RISC OS 3.6 | TOS 4.02 | openSUSE 10.3 PPC | RISC OS 3.11 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (10)
-
Allen
-
Amedee Van Gasse
-
Andrew Joakimsen
-
Chuck Payne
-
David Bolt
-
David C. Rankin
-
Mike McMullin
-
Randall R Schulz
-
Rodney Baker
-
Tony Alfrey