harddisk control (adding/changing)

pbecks1963
Posts: 51
Joined: Fri Dec 12, 2008 12:24 am
Location: Netherlands/Zutphen

Re: harddisk control (adding/changing)

Postby pbecks1963 » Wed Jan 28, 2009 1:52 am

Hello,

Tried su- and the diskmounter script and after that tried to click on the drive (in the gnome`-menu) but no sigar. Even gparted won't startup...

See below:
***************************************************************************************************************************
[patrick@localhost ~]$ su -
Password:
[root@localhost ~]# fdisk

Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda (for the first IDE disk)
or: fdisk /dev/sdc (for the third SCSI disk)
or: fdisk /dev/eda (for the first PS/2 ESDI drive)
or: fdisk /dev/rd/c0d0 or: fdisk /dev/ida/c0d0 (for RAID devices)
...

[root@localhost Download]# sh Diskmounter.sh

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1 doesn't contain a valid partition table

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1 doesn't contain a valid partition table

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1 doesn't contain a valid partition table

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1 doesn't contain a valid partition table
Diskmounter.sh: line 127: pmount: command not found
Diskmounter.sh: line 127: pmount: command not found
mount: unknown filesystem type 'lvm2pv'
Diskmounter.sh: line 127: pmount: command not found
mount: you must specify the filesystem type
Diskmounter.sh: line 127: pmount: command not found
mount: you must specify the filesystem type
[root@localhost Download]# gparted
======================
libparted : 1.8.8
======================
Backtrace has 11 calls on stack:
11: /lib/libparted-1.8.so.8(ped_assert+0x3b) [0xbce72b]
10: /lib/libparted-1.8.so.8 [0xc0f3ee]
9: /lib/libparted-1.8.so.8 [0xc0fdb8]
8: /lib/libparted-1.8.so.8(ped_disk_new+0xa4) [0xbd76d4]
7: /usr/sbin/gpartedbin [0x808a286]
6: /usr/sbin/gpartedbin [0x8090b50]
5: /usr/sbin/gpartedbin [0x80b5952]
4: /usr/lib/libglibmm-2.4.so.1 [0x67183f5]
3: /lib/libglib-2.0.so.0 [0x7bd20f]
2: /lib/libpthread.so.0 [0x70732f]
1: /lib/libc.so.6(clone+0x5e) [0x64220e]
Assertion (last_within_agpt <= disk->dev->length - 2) at gpt.c:680 in function _parse_header() failed.
Both the primary and backup GPT tables are corrupt. Try making a fresh table, and using Parted's rescue feature to recover partitions.
*** glibc detected *** /usr/sbin/gpartedbin: double free or corruption (out): 0x09d63c00 ***
======= Backtrace: =========
/lib/libc.so.6[0x5d1874]
/lib/libc.so.6(cfree+0x96)[0x5d38d6]
/lib/libparted-1.8.so.8(ped_free+0x1d)[0xbd12ed]
/lib/libparted-1.8.so.8[0xc0e9a5]
/lib/libparted-1.8.so.8[0xc0fe94]
/lib/libparted-1.8.so.8(ped_disk_new+0xa4)[0xbd76d4]
/usr/sbin/gpartedbin[0x808a286]
/usr/sbin/gpartedbin[0x8090b50]
/usr/sbin/gpartedbin[0x80b5952]
/usr/lib/libglibmm-2.4.so.1[0x67183f5]
/lib/libglib-2.0.so.0[0x7bd20f]
/lib/libpthread.so.0[0x70732f]
/lib/libc.so.6(clone+0x5e)[0x64220e]
======= Memory map: ========
00110000-00111000 r-xp 00110000 00:00 0 [vdso]
00111000-0013a000 r-xp 00000000 fd:00 4966145 /usr/lib/libpangoft2-1.0.so.0.2000.4
0013a000-0013b000 rw-p 00028000 fd:00 4966145 /usr/lib/libpangoft2-1.0.so.0.2000.4
0013b000-00145000 r-xp 00000000 fd:00 6496376 /lib/libnss_files-2.8.so
00145000-00146000 r--p 0000a000 fd:00 6496376 /lib/libnss_files-2.8.so
00146000-00147000 rw-p 0000b000 fd:00 6496376 /lib/libnss_files-2.8.so
00149000-00158000 r-xp 00000000 fd:00 4966960 /usr/lib/libXext.so.6.4.0
00158000-00159000 rw-p 0000e000 fd:00 4966960 /usr/lib/libXext.so.6.4.0
00169000-001d6000 r-xp 00000000 fd:00 4969729 /usr/lib/libcairo.so.2.17.5
001d6000-001d8000 rw-p 0006d000 fd:00 4969729 /usr/lib/libcairo.so.2.17.5
001d8000-001ea000 r-xp 00000000 fd:00 5080954 /usr/lib/gtk-2.0/2.10.0/engines/libnodoka.so
001ea000-001eb000 rw-p 00011000 fd:00 5080954 /usr/lib/gtk-2.0/2.10.0/engines/libnodoka.so
001ed000-00219000 r-xp 00000000 fd:00 4966031 /usr/lib/libpixman-1.so.0.10.0
00219000-0021a000 rw-p 0002c000 fd:00 4966031 /usr/lib/libpixman-1.so.0.10.0
0021c000-00237000 r-xp 00000000 fd:00 4966964 /usr/lib/libatk-1.0.so.0.2209.1
00237000-00239000 rw-p 0001a000 fd:00 4966964 /usr/lib/libatk-1.0.so.0.2209.1
00288000-002c9000 r-xp 00000000 fd:00 4965923 /usr/lib/libpango-1.0.so.0.2000.4
002c9000-002cb000 rw-p 00040000 fd:00 4965923 /usr/lib/libpango-1.0.so.0.2000.4
0043b000-00456000 r-xp 00000000 fd:00 4965342 /usr/lib/libxcb.so.1.0.0
00456000-00457000 rw-p 0001b000 fd:00 4965342 /usr/lib/libxcb.so.1.0.0
00459000-00481000 r-xp 00000000 fd:00 4969731 /usr/lib/libpangomm-1.4.so.1.0.30
00481000-00484000 rw-p 00027000 fd:00 4969731 /usr/lib/libpangomm-1.4.so.1.0.30
00516000-00532000 r-xp 00000000 fd:00 4965913 /usr/lib/libgdk_pixbuf-2.0.so.0.1200.12
00532000-00533000 rw-p 0001b000 fd:00 4965913 /usr/lib/libgdk_pixbuf-2.0.so.0.1200.12
00544000-00560000 r-xp 00000000 fd:00 6496445 /lib/ld-2.8.so
00560000-00561000 r--p 0001c000 fd:00 6496445 /lib/ld-2.8.so
00561000-00562000 rw-p 0001d000 fd:00 6496445 /lib/ld-2.8.so
00564000-006c7000 r-xp 00000000 fd:00 6496447 /lib/libc-2.8.so
006c7000-006c9000 r--p 00163000 fd:00 6496447 /lib/libc-2.8.so
006c9000-006ca000 rw-p 00165000 fd:00 6496447 /lib/libc-2.8.so
006ca000-006cd000 rw-p 006ca000 00:00 0
006cf000-006f6000 r-xp 00000000 fd:00 6496493 /lib/libm-2.8.so
006f6000-006f7000 r--p 00026000 fd:00 6496493 /lib/libm-2.8.so
006f7000-006f8000 rw-p 00027000 fd:00 6496493 /lib/libm-2.8.so
006fa000-006fd000 r-xp 00000000 fd:00 6496491 /lib/libdl-2.8.so
006fd000-006fe000 r--p 00002000 fd:00 6496491 /lib/libdl-2.8.so
006fe000-006ff000 rw-p 00003000 fd:00 6496491 /lib/libdl-2.8.so
00701000-00716000 r-xp 00000000 fd:00 6496499 /lib/libpthread-2.8.so
00716000-00717000 r--p 00014000 fd:00 6496499 /lib/libpthread-2.8.so
00717000-00718000 rw-p 00015000 fd:00 6496499 /lib/libpthread-2.8.so
00718000-0071a000 rw-p 00718000 00:00 0
0071c000-0072f000 r-xp 00000000 fd:00 6496492 /lib/libz.so.1.2.3
0072f000-00730000 rw-p 00012000 fd:00 6496492 /lib/libz.so.1.2.3
00732000-0073a000 r-xp 00000000 fd:00 6496502 /lib/librt-2.8.so
0073a000-0073b000 r--p 00007000 fd:00 6496502 /lib/librt-2.8.so
0073b000-0073c000 rw-p 00008000 fd:00 6496502 /lib/librt-2.8.so
0073e000-00758000 r-xp 00000000 fd:00 6496507 /lib/libselinux.so.1
00758000-00759000 r--p 00019000 fd:00 6496507 /lib/libselinux.so.1
00759000-0075a000 rw-p 0001a000 fd:00 6496507 /lib/libselinux.so.1
[root@localhost Download]# fdisk -l

Disk /dev/sda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90909090

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 2434 19350292+ 8e Linux LVM

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 40.0 GB, 40037760000 bytes
255 heads, 63 sectors/track, 4867 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 1 4983 40021631+ ee EFI GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdc1 1 1 16+ ee EFI GPT
/dev/sdc2 * 1 9730 78150710+ 8e Linux LVM

WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdd: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdd1 1 1 16+ ee EFI GPT
/dev/sdd2 * 1 9965 80043230+ 8e Linux LVM

Disk /dev/dm-0: 180.0 GB, 180019527680 bytes
255 heads, 63 sectors/track, 21886 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 1610 MB, 1610612736 bytes
255 heads, 63 sectors/track, 195 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800

Disk /dev/dm-1 doesn't contain a valid partition table
[root@localhost Download]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
gvfs-fuse-daemon on /home/patrick/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=patrick)
[root@localhost Download]#

pbecks1963
Posts: 51
Joined: Fri Dec 12, 2008 12:24 am
Location: Netherlands/Zutphen

Re: harddisk control (adding/changing)

Postby pbecks1963 » Wed Jan 28, 2009 1:57 am

ps: i installed system-config-lvm 1.1.4 but i dare not tinker in it. (waiting for a good "how-to")

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: harddisk control (adding/changing)

Postby cpg » Thu Jan 29, 2009 1:31 am

i am at a loss why this script would not work for you and seems to work for other people.

perhaps some bash scripting guru can take a look at it and figure out what may be going wrong ...
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: harddisk control (adding/changing)

Postby moredruid » Thu Jan 29, 2009 3:32 am

I'm not a bash scripting guru, but this is fairly easy to find out...

Code: Select all

# This utility searches for available HFS+, NTFS and FAT32 partitions, creates # mount points for them and mounts the partitions

Code: Select all

# Now for the real work drivesntfs=`fdisk -l | grep -i 'ntfs' | awk -F '/| ' '{print $3}'` drivesfat=`fdisk -l | grep -i 'fat32' | awk -F '/| ' '{print $3}'` driveshfs=`fdisk -l | grep -i 'Apple_HFS' | awk -F '/| ' '{print $3}'` drivesext=`fdisk -l | grep -i 'Linux' | grep -v 'swap' | awk -F '/| ' '{print $3}'`
are dead giveaways: it doesn't check for LVMs (no built-in support)
filetype system: 8e (linux extended LV) is simply not parsed, so it throws an exception

I just glanced over it, so I might be wrong (but I don't think so ;) ).
Also from what I can tell it already needs a filesystem on the disk, it won't create partitions and filesystems or whathaveyou but only mounts them if they're available.
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

Who is online

Users browsing this forum: No registered users and 76 guests