df -hT
teicah
teicah at comcast.net
Tue Jul 6 19:21:35 UTC 2010
Two parts to my post
1) bg info
a) fdisk -l
b) grub.cfg
c) fstab
2) question
-------------- next part --------------
Two parts to my post
1) bg info
a) fdisk -l
b) grub.cfg
c) fstab
2) question
#################################### background info ####################################
mobo: asus M4A785-M
distro: ubuntu lucid 10.04 amd64
hdds: 1sata (1TB), 2pata (250GB each), 1usb external (500GB)
fdisk -l returns:
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xdd5bdd5b
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1305 10482381 83 Linux
/dev/sda2 1306 14359 104856255 83 Linux
/dev/sda3 14360 30270 127805107+ 83 Linux
/dev/sda4 30271 30401 1052257+ 82 Linux swap / Solaris
Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00043f4f
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 783 6289416 83 Linux
/dev/sdb2 784 13837 104856255 83 Linux
/dev/sdb3 13838 30270 131998072+ 83 Linux
/dev/sdb4 30271 30401 1052257+ 82 Linux swap / Solaris
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00018d2b
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 1306 10490413+ 83 Linux
/dev/sdc2 1307 39816 309331575 83 Linux
/dev/sdc3 39817 121340 654841530 83 Linux
/dev/sdc4 121341 121601 2096482+ 82 Linux swap / Solaris
Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x44fdfe06
Device Boot Start End Blocks Id System
/dev/sdd1 * 1 15200 122093968+ 83 Linux
/dev/sdd2 15201 30400 122094000 83 Linux
/dev/sdd3 30401 60801 244196032+ 83 Linux
My /boot/grub/grub.cfg looks like this:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 6d19f259-7d0c-447d-96cf-1a4d6dfeef3c
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 6d19f259-7d0c-447d-96cf-1a4d6dfeef3c
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=3
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 6d19f259-7d0c-447d-96cf-1a4d6dfeef3c
linux /boot/vmlinuz-2.6.32-23-generic root=UUID=6d19f259-7d0c-447d-96cf-1a4d6dfeef3c ro ipv6.disable=1 quiet splash
initrd /boot/initrd.img-2.6.32-23-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Ubuntu, with Linux 2.6.32-22-generic (on /dev/sdb1)" {
insmod ext2
set root='(hd1,1)'
search --no-floppy --fs-uuid --set 618e6f1c-7314-4a8e-9ec7-395a37eae6c4
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=618e6f1c-7314-4a8e-9ec7-395a37eae6c4 ro ipv6.disable=1 quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry "Linux Mint 9, 2.6.32-21-generic (on /dev/sdc1)" {
insmod ext2
set root='(hd2,1)'
search --no-floppy --fs-uuid --set 77d48073-a01e-4709-9e95-2f36115c9d7d
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=77d48073-a01e-4709-9e95-2f36115c9d7d ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry "Ubuntu, with Linux 2.6.32-22-generic (on /dev/sdd1)" {
insmod ext2
set root='(hd3,1)'
search --no-floppy --fs-uuid --set c9ebe765-043f-4c7f-809d-9cdb00c8efd0
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=c9ebe765-043f-4c7f-809d-9cdb00c8efd0 ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
My /etc/fstab file:
proc /proc proc nodev,noexec,nosuid 0 0
## SDA DISK
UUID=6d19f259-7d0c-447d-96cf-1a4d6dfeef3c / ext3 errors=remount-ro 0 1
UUID=0452b871-1e6d-4367-ba6a-fd5e1aec13e6 /home ext3 defaults 0 2
UUID=c9613987-7d50-4a2f-80ed-f992d9b8d3fb /other ext3 defaults 0 2
UUID=03b8e9a7-1fc3-4d58-bf59-c8f6097b48cf none swap sw 0 0
## SDB DISK
UUID=618e6f1c-7314-4a8e-9ec7-395a37eae6c4 /media/sdb1 ext3 noauto,defaults 0 0
UUID=dc78c5b5-6577-43fd-8fd4-aa868e606d85 /media/sdb2 ext3 noauto,defaults 0 2
UUID=c26cbf0e-88c5-4132-986c-5bca5b95c61b /media/sdb3 ext3 noauto,defaults 0 2
#UUID=f39adb44-6849-4105-8cb5-6fb4d93677cf none swap sw 0 0
## SDC DISK
UUID=77d48073-a01e-4709-9e95-2f36115c9d7d /media/sdc1 ext3 noauto,defaults 0 0
UUID=44035581-fae0-4e09-b88e-cb742ef60e32 /media/sdc2 ext3 noauto,defaults 0 2
UUID=9f47c4d2-70e3-43b0-8430-2a966927d8e5 /media/sdc3 ext3 noauto,defaults 0 2
#UUID=c5dcebb0-4fd5-4028-b2dc-3d2d11550243 none swap sw 0 0
## SDD DISK
UUID=c9ebe765-043f-4c7f-809d-9cdb00c8efd0 /media/sdd1 ext3 noauto,defaults 0 0
UUID=93d4e6ab-e8c2-438d-bb2a-fa69761c848f /media/sdd2 ext3 noauto,defaults 0 0
UUID=d58be805-23ec-462e-9421-447d2f2ed4ec /media/sdd3 ext3 noauto,defaults 0 2
#################################### question ####################################
I have selected the sata drive to be the default boot device (and it always does -good so far-)
The uuid's in grub.cfg match "ls /dev/disk/by-uuid -lh|grep sdxy" where x=a,b,c,d y=1,2,3,4
My problem/bug? is that sometimes the *labels* of sda & sdc switch places in "fdisk -l" and "df -hT." I say *labels* only because I recognize the partition sizes.
Right now df -hT spits:
Filesystem Type Size Used Avail Use% Mounted on
/dev/sdc1 ext3 9.9G 4.8G 4.6G 51% /
none devtmpfs 874M 348K 873M 1% /dev
none tmpfs 878M 1.5M 877M 1% /dev/shm
none tmpfs 878M 88K 878M 1% /var/run
none tmpfs 878M 4.0K 878M 1% /var/lock
none tmpfs 878M 0 878M 0% /lib/init/rw
/dev/sdc2 ext3 291G 83G 194G 30% /home
/dev/sdc3 ext3 615G 146G 439G 25% /other
And some other times spits:
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda1 ext3 9.9G 4.8G 4.6G 51% /
none devtmpfs 874M 348K 873M 1% /dev
none tmpfs 878M 1.5M 877M 1% /dev/shm
none tmpfs 878M 88K 878M 1% /var/run
none tmpfs 878M 4.0K 878M 1% /var/lock
none tmpfs 878M 0 878M 0% /lib/init/rw
/dev/sda2 ext3 291G 83G 194G 30% /home
/dev/sda3 ext3 615G 146G 439G 25% /other
Do you have any idea as to why and how to correct it? Thanks in advance.
More information about the ubuntu-users
mailing list