SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2009-07-16 11:46:42

enseyn
Member
From: ...texas :|
Registered: 2009-06-17
Posts: 41

Swap not mounting. Fix, re-install, backup questions

Alrighty, I'm in need of some advice yet again

I installed 9.04 64-bit on my shiny new comp and have everything set up so nicely and how i like it smile
now for the problems.....
I have a 500GB HD and partitioned it like so:
15GB - ext3 - root
150GB - ext3 - home
300GB -  ext3 - unmounted (wanted to use for storing files that are not used frequently)
2GB- swap
the problem is that i couldn't get the storage partition to mount. I started messing with the partitions and changed the position of swap. well anyways, I got the partition mounted, but now my swap doesn't seem to be mounted. I am guessing that I need to make changes to fstab, but I am not really sure on what to do. Here is my fstab:

# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda1 during installation
UUID=a6f02e77-ef11-4aac-a4d8-7b349b696889 /               ext3    relatime,erro$
# /home was on /dev/sda2 during installation
UUID=fa615d35-007e-4f2f-9adf-27d202f47410 /home           ext3    relatime     $
# swap was on /dev/sda5 during installation
UUID=8abd335f-f96f-4dbc-ba8c-b3b558e14589 none            swap    sw           $
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
/dev/sda3 /storage ext3 defaults 0 0

also, is my storage going to mount on startup every time? if so, what is a better way to get it working how I am wanting?
another question I have is what are the real benefits of ext4? and if it is worth it, what is the best way to back up everything that I have now (Programs i installed, configs, ect.) to easily put everything back once i have reformatted my partitions to ext4?
and one last question i have, that i am sure there is an answer to somewhere i haven't found... how do you have the Num lock automatically turned on at start up? i can not remember how to save my life and it is just annoying smile


lalalala.... POTATO! big_smile

Offline

Be excellent to each other!

#2 2009-07-16 11:56:05

iggykoopa
Script Master
Registered: 2008-12-13
Posts: 1,486

Re: Swap not mounting. Fix, re-install, backup questions

you can use the command "blkid" to find the uuid of your swap partition and change the fstab to use the uuid instead. Ext4 is a little quicker and in the near future should support online defrag, I've been using it for a couple months and it has been pretty stable, but there were some issues with me having to power down my server because of bad video drivers and I lost some data. If you do want to use ext4 here are instructions to convert http://ext4.wiki.kernel.org/index.php/E … em_to_ext4 , no need to reinstall. I would still make sure you have backups though. Also once you make the changes to convert to ext4 make sure you update your fstab to say ext4 as well.

edit: sorry just realized your swap was using the uuid. It may be a conflict with your storage partition being mounted as /dev/sda3, I'd try swapping that over to uuid as well and see if it sorts it out. Since you changed the order it may have changed the number for your storage partition.

Last edited by iggykoopa (2009-07-16 11:59:11)


I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.

Offline

#3 2009-07-16 12:14:48

enseyn
Member
From: ...texas :|
Registered: 2009-06-17
Posts: 41

Re: Swap not mounting. Fix, re-install, backup questions

Thank you so much. So would this work? (looked up the new uuid)

# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda1 during installation
UUID=a6f02e77-ef11-4aac-a4d8-7b349b696889 /               ext3    relatime,errors=remount-ro 0       1
# /home was on /dev/sda2 during installation
UUID=fa615d35-007e-4f2f-9adf-27d202f47410 /home           ext3    relatime        0       2
# /storage was on /dev/sda3
UUID=9d0fdcaa-1636-4f28-a074-d6df651afe4b /storage           ext3    relatime        0       3
# swap was on /dev/sda5 during installation
UUID=2a3bd6bb-3070-4344-8293-5f8062b079b8 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0


I keep backups of my files religiously, but I have never had much experience with backing up a system in linux, and any pointers would be much appreciated.

***edited because some of fstab was cut off at the end***

Last edited by enseyn (2009-07-16 12:43:22)


lalalala.... POTATO! big_smile

Offline

#4 2009-07-16 12:58:32

enseyn
Member
From: ...texas :|
Registered: 2009-06-17
Posts: 41

Re: Swap not mounting. Fix, re-install, backup questions

Alright, been reading up on fstab and noticed the option to keep the partition from auto mounting (noauto) so would I modify the string like this?

# /storage was on /dev/sda3
UUID=9d0fdcaa-1636-4f28-a074-d6df651afe4b /storage           ext3    relatime,noauto        0       3

Last edited by enseyn (2009-07-16 12:59:02)


lalalala.... POTATO! big_smile

Offline

#5 2009-07-16 14:17:05

enseyn
Member
From: ...texas :|
Registered: 2009-06-17
Posts: 41

Re: Swap not mounting. Fix, re-install, backup questions

YAY! everything is working wonderfully. You the man iggykoopa. Thank you so much.


lalalala.... POTATO! big_smile

Offline

#6 2009-07-16 18:30:40

iggykoopa
Script Master
Registered: 2008-12-13
Posts: 1,486

Re: Swap not mounting. Fix, re-install, backup questions

glad to help big_smile


I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo