Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
finottiOffline
Post subject: disks and fstab  PostPosted: 05.11.2010, 17:27



Joined: 2010-09-12
Posts: 319

Status: Offline
Dear all,

I've been getting some strange messages when booting and shutting down.

When I booting a see very quickly passing messages about "mount", but
they pass to fast to see. (The "break/pause" key doesn't work.) I could
not find these messages with "dmesg" or in "/var/log/syslog"... (BTW,
Is there another place to find these messages from boot and shutdown.
This is independent of this problem. It's just something I'd like to
know for the future.)


One message that I see is something like "/dev/sda6" not found or could
not write... (I am sorry I can't be more precise.)

Since I changed the default fstab, I thought I had messed it up
somehow. (This is a new installation, but up to date.)

Here are the details:

      Code:

root@debian[/home/finotti]# infobash -v3
Host/Kernel/OS  "debian" running Linux 2.6.36-0.slh.3-aptosid-amd64 x86_64 [ aptosid 2010-02 Κῆρες - kde-full - (201009132215) ]                   
CPU Info        (1) Intel Core2 Duo E8400 @ 6144 KB cache flags( sse3 ht nx lm vmx ) clocked at [ 3000.030 MHz ]                                   
                (2) Intel Core2 Duo E8400 @ 6144 KB cache flags( sse3 ht nx lm vmx ) clocked at [ 3000.030 MHz ]                                   
Videocard       nVidia G86 [GeForce 8500 GT]  X.Org 1.7.7  [ 1366x768@50.0hz ]                                                                     
Network cards   nVidia MCP55                                             
                nVidia MCP55                                             
Processes 175 | Uptime 1day | Memory 1226.9/8005.5MB | HDD
ST3500320AS,WDC WD1500ADFD-0,WDC WD1001FALS-0,ST31000528AS Size 2650GB
(28%used) | GLX Renderer NVS 3100M/PCI/SSE2 | GLX Version 3.2.0 NVIDIA
195.36.31 | Client Shell | Infobash v3.34


Here is the original fstab:

      Code:

root@debian[/home/finotti]# cat /etc/fstab.original
/dev/disk/by-uuid/0A58C78B58C773CB            /media/disk1part1    ntfs       auto,users,ro,dmask=0022,fmask=0133,nls=utf8 0 0
/dev/disk/by-uuid/47B3-8E25    /media/disk1part2    vfat       auto,users,rw,quiet,umask=000,shortname=lower 0 0
UUID=593c3d69-8d44-4320-a144-ba03d1da0f9b     /media/disk1part3    ext3       auto,users,rw,exec,noatime 0 0
UUID=e7c45146-fa48-4c05-8fe8-ae8fdfa35929     /home                ext3       defaults,noatime,errors=remount-ro 0 2
/dev/sda6            none                 swap       sw 0 0
/dev/disk/by-uuid/B66C5FB26C5F6C5D            /media/disk2part1    ntfs       auto,users,ro,dmask=0022,fmask=0133,nls=utf8 0 0
UUID=2d1914be-f48c-4206-9c69-be2757799f13     /                    ext4       defaults,noatime,errors=remount-ro,barrier=0 0 1
/dev/sdb3            none                 swap       sw 0 0
UUID=1e2b1265-00f7-4a71-8a5a-c8e33345b06c     /media/disk3part1    ext3       auto,users,rw,exec,noatime 0 0
UUID=e64aefeb-c791-4f33-9aee-b6237aba4a3e     /media/disk4part1    ext4       auto,users,rw,exec,noatime 0 0


Here is the new one:
      Code:

root@debian[/home/finotti]# cat /etc/fstab
/dev/disk/by-uuid/0A58C78B58C773CB            /media/winroot    ntfs       auto,users,ro,dmask=0022,fmask=0133,nls=utf8 0 0
/dev/disk/by-uuid/47B3-8E25    /media/fat    vfat       auto,users,rw,quiet,umask=000,shortname=lower 0 0
UUID=593c3d69-8d44-4320-a144-ba03d1da0f9b     /home                ext3       defaults,noatime,errors=remount-ro 0 2
UUID=e7c45146-fa48-4c05-8fe8-ae8fdfa35929     /media/disk1part5    ext3       noauto,users,rw,exec,noatime 0 0
/dev/sda6            none                 swap       sw 0 0
/dev/disk/by-uuid/B66C5FB26C5F6C5D            /media/winfiles    ntfs       auto,users,ro,dmask=0022,fmask=0133,nls=utf8 0 0
UUID=54009e41-822a-4e3a-90a9-d0eca6313048     /                    ext4       defaults,noatime,errors=remount-ro,barrier=0 0 1
/dev/sdb3            none                 swap       sw 0 0
UUID=1e2b1265-00f7-4a71-8a5a-c8e33345b06c     /media/media    ext3       auto,users,rw,exec,noatime 0 0
UUID=e64aefeb-c791-4f33-9aee-b6237aba4a3e     /media/data    ext4       auto,users,rw,exec,noatime 0 0
sshfs#finotti@agnesi.math.utk.edu:. /home/finotti/utk    fuse    user,noauto 0 0


Note that i both the swap partitions have no UUIDs:

      Code:

root@debian[/home/finotti]# ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Nov  4 05:56 0A58C78B58C773CB -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov  4 05:56 1e2b1265-00f7-4a71-8a5a-c8e33345b06c -> ../../sdc1                                                           
lrwxrwxrwx 1 root root 10 Nov  4 05:56 2d1914be-f48c-4206-9c69-be2757799f13 -> ../../sdb2                                                           
lrwxrwxrwx 1 root root 10 Nov  4 05:56 47B3-8E25 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov  4 05:56 593c3d69-8d44-4320-a144-ba03d1da0f9b -> ../../sda3                                                           
lrwxrwxrwx 1 root root 10 Nov  4 05:56 B66C5FB26C5F6C5D -> ../../sdb1
lrwxrwxrwx 1 root root 10 Nov  4 05:56 e64aefeb-c791-4f33-9aee-b6237aba4a3e -> ../../sdd1                                                           
lrwxrwxrwx 1 root root 10 Nov  4 05:56 e7c45146-fa48-4c05-8fe8-ae8fdfa35929 -> ../../sda5


(They do have IDs.) I don't know why, as the swap partition of my
laptop does. Is this a sign of some problem? (They do have IDs,
though. Should I use them instead?)

Here is fdisk -l:

      Code:

root@debian[/home/finotti]# fdisk -l

Disk /dev/sda: 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: 0x69205244

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        3648    29302528+   7  HPFS/NTFS
/dev/sda2            6375       38244   255995775    b  W95 FAT32
/dev/sda3           38245       60801   181189102+  83  Linux
/dev/sda4            3649        6374    21896595    5  Extended
/dev/sda5   *        3649        6255    20940696   83  Linux
/dev/sda6            6256        6374      955836   82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sdb: 150.0 GB, 150039945216 bytes
255 heads, 63 sectors/track, 18241 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: 0x0f80b796

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        7649    61440561    7  HPFS/NTFS
/dev/sdb2            7650       17221    76887090   83  Linux
/dev/sdb3           17222       18241     8193150   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: 0x0007c0c7

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1      121601   976760001   83  Linux

Disk /dev/sdd: 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: 0x00004647

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1      121601   976760001   83  Linux


All partitions seem to be working, though, but the messages (especially
since I cannot read them) are getting me a bit worried.

Any help with any of these issued would be appreciated.

Best to all,

Luis
 
 View user's profile Send private message  
Reply with quote Back to top
diblOffline
Post subject:   PostPosted: 05.11.2010, 19:00



Joined: 2010-09-12
Posts: 302
Location: Dayton, Ohio, USA
Status: Offline
If I am reading it correctly, the UUID of your root partition was changed, from the original /etc/fstab file, to the new one. Why would that be? Can you confirm that it is still correct (as root) with

      Code:
ls -l /dev/disk/by-uuid
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
finottiOffline
Post subject:   PostPosted: 05.11.2010, 20:16



Joined: 2010-09-12
Posts: 319

Status: Offline
That is very odd!

Well, the result of "ls -l /dev/disk/by-uuid" was in the original post. Root should be the one in the original. The UUID of the root partition in my new file doesn't even seem to exist, and I have no idea how I got it. (What I did wan get a copy of the original and just change the mounting points...) It is surprising that I can boot at all.

Thank you dibl so much for finding this. I will fix it and see if it fixes the problem.

Best to all,

Luis
 
 View user's profile Send private message  
Reply with quote Back to top
x-un-i
Post subject:   PostPosted: 05.11.2010, 20:55
Team Member


Joined: 2010-08-26
Posts: 170

If you boot to runlevel 3

( enter e on grub and then edit the kernel line ( the one with "linux /boot...") and add at the end 3 - after that press Ctrl-X to boot.

then you can scroll up and down over the most part of the boot messages (use Shift+PgUp/PgDn)[/b]

_________________
Why do strong arms fatigue themselves with frivolous dumbbells?
To dig a vineyard is worthier exercise for men.
Marcus Valerius Martialis, römischer Satiriker und Epigrammdichter

Será que o diabo perdeu a virgindade?
 
 View user's profile Send private message  
Reply with quote Back to top
finottiOffline
Post subject:   PostPosted: 08.11.2010, 16:14



Joined: 2010-09-12
Posts: 319

Status: Offline
OK, thanks all for the help.

Indeed getting the correct root directory in fstab solved the error messages about mount on boot.

I still get some messages regarding /dev/sda6... Thanks yo x-un-i, I can read them, but forgot to write it down. I will check again when I can reboot.

Thanks,

Luis
 
 View user's profile Send private message  
Reply with quote Back to top
finottiOffline
Post subject:   PostPosted: 11.11.2010, 12:33



Joined: 2010-09-12
Posts: 319

Status: Offline
OK, the message I've been getting is from initramfs. Here is what I've got with a DU:

      Code:

update-initramfs: Generating /boot/initrd.img-2.6.36-0.slh.3-aptosid-amd64
/etc/initramfs-tools/conf.d/resume: 1: /dev/sda6: Permission denied


As you can see from the original post, sda6 is a swap partition. Changing it to the other one (which would be the prefered) /dev/sdb3 gives the same error (with /dev/sdb3 instead, of course). It seems that I do have swap, though:

      Code:

root@debian[~]# free
             total       used       free     shared    buffers     cached
Mem:       8197648    1418132    6779516          0     111536     600548
-/+ buffers/cache:     706048    7491600
Swap:      9148976          0    9148976


Here are the permissions:

      Code:

root@debian[~]# ls -l /dev/sda6 /dev/sdb3
brw-rw---- 1 root disk 8,  6 Nov 11 06:51 /dev/sda6
brw-rw---- 1 root disk 8, 19 Nov 11 06:51 /dev/sdb3


So, here are my questions:


    1) Why am I getting the "permission denied" warning?

    2) Why do the swap partitions have no UUID? (Is it normal?)

    3) Is there a different way (than what x-un-i suggested) to read boot/shutdown messages?


Thanks to all,

Luis
 
 View user's profile Send private message  
Reply with quote Back to top
diblOffline
Post subject:   PostPosted: 11.11.2010, 23:53



Joined: 2010-09-12
Posts: 302
Location: Dayton, Ohio, USA
Status: Offline
Something is definitely wrong -- the swap partition should have a UUID same as the others. Here is my list, for example:


      Code:
don@sidbox:~$ ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Nov 11  2010 0c423529-961e-4526-8016-c14da6f1a863 -> ../../sdb3
lrwxrwxrwx 1 root root 10 Nov 11  2010 1e908a65-7ddb-4a1f-9913-d5a82ddb3137 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov 11  2010 2b7ce29a-4550-4c6f-9171-8406d9688da7 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Nov 11  2010 8cfacbec-2b8a-43e0-b499-7aaf721a4330 -> ../../sda6
lrwxrwxrwx 1 root root 10 Nov 11  2010 8f03cf64-35dd-4d7f-b055-2d42aa291028 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Nov 11  2010 932854dc-d16b-4612-9bd7-37345d1def09 -> ../../sda4
lrwxrwxrwx 1 root root 10 Nov 11  2010 a1934295-3ff7-4700-901a-637513a74cfa -> ../../sdc3
lrwxrwxrwx 1 root root 10 Nov 11  2010 b69c6415-23e4-4e96-9f72-17d2d7736b93 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Nov 11  2010 bef7fc54-d120-4869-920c-edc64a214bae -> ../../sda3
lrwxrwxrwx 1 root root 10 Nov 11  2010 dfd5d21c-b8d7-4dd7-8d44-ac3146008354 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Nov 11  2010 ec17a5f9-d3b5-4332-97c5-af3074aa0904 -> ../../sda5


See that /dev/sdc2 is my swap partition:

      Code:
root@sidbox:/home/don# blkid
/dev/sda2: LABEL="MUSIC" UUID="1e908a65-7ddb-4a1f-9913-d5a82ddb3137" TYPE="ext4"
/dev/sda3: LABEL="DOCS&PIX" UUID="bef7fc54-d120-4869-920c-edc64a214bae" TYPE="ext4"
/dev/sda4: LABEL="VIDEOS" UUID="932854dc-d16b-4612-9bd7-37345d1def09" TYPE="ext4"
/dev/sda5: UUID="ec17a5f9-d3b5-4332-97c5-af3074aa0904" TYPE="ext4"
/dev/sda6: UUID="8cfacbec-2b8a-43e0-b499-7aaf721a4330" UUID_SUB="0ef90973-f1b1-43a1-94ed-c3e1e79636e6" TYPE="btrfs"
/dev/sdb1: LABEL="DOCSPIXBAK" UUID="2b7ce29a-4550-4c6f-9171-8406d9688da7" TYPE="jfs"
/dev/sdb2: LABEL="MUSICBAK" UUID="b69c6415-23e4-4e96-9f72-17d2d7736b93" TYPE="jfs"
/dev/sdb3: LABEL="BTRFSTEST" UUID="0c423529-961e-4526-8016-c14da6f1a863" UUID_SUB="0e0252d9-b2ff-445c-9d61-3685c5ab411c" TYPE="btrfs"
/dev/sdc1: LABEL="SIDUX" UUID="dfd5d21c-b8d7-4dd7-8d44-ac3146008354" TYPE="jfs"
/dev/sdc2: UUID="8f03cf64-35dd-4d7f-b055-2d42aa291028" TYPE="swap"
/dev/sdc3: LABEL="WHATEVER" UUID="a1934295-3ff7-4700-901a-637513a74cfa" TYPE="ext4"
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio