You are not logged in.

#1 2009-06-19 20:52:41

MaitreEauEau
Member
Registered: 2009-04-05
Posts: 6

[MOUNT] Change mountpoint of swap (SOLVED)

Hi,

I'm using Arch since maybe... 2 weeks, and I LOVE it! It is simple, fast and I like the K.I.S.S philosophy!:D

As with all the other distro out there, I'm having a problem -> not directly with Arch (I never got problem with it lol ...), but with something else that I'll explain right here :

OK, so at the moment, my partition scheme looks like this :

/dev/sda1   ntfs     [no mountpoint]   121 GO      BOOT
/dev/sda2   ext4    /                         23.28 GO
/dev/sda3   ext4    /home                 84.75 GO   
/dev/sda4   swap   swap                   3.78 GO

:: What I want to do ::

I want to try Gentoo (please, don't tell me to try in a virtualbox -> I think it's not the same feeling wink )
I would resize my home partition to get another 20 GO for the / (root) of my gentoo)

At this point, there is noo problem, I know tongue

Here comes the problem :

I already have 4 primary partitions -> I have to delete one and make a extended partition that would contain the / and the other one that I deleted...

What I tought  could do :

Resize the /home partiton.Delete de swap partiton. Create an extended partition. Create 2 logical partitions : 1- swap  2-/ (root) for gentoo 
All this, using gparted.

The problem is that ArchLinux won't know where is my swap partition then!
i tought i could change the /etc/fstab...

Here is mine (before changes)

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0
/dev/sdb1              /mnt/usb     auto   rw,noauto,async,user    0      0

UUID=2fb3d0dd-86a3-480f-9f8e-f8a54b8dbe59 swap swap defaults 0 0
UUID=6fb774a1-b90a-4f2e-a54a-06f78b4b8f27 /home ext4 defaults 0 1
UUID=e02487ef-3354-4e8a-a588-13ebe07dbc28 / ext4 defaults 0 1

To change the /etc/fstab, I need to know the UUID of the partition (right?)... so I can i do this?

Thanks for your answer smile

By!:)

Last edited by MaitreEauEau (2009-06-20 22:21:59)

Offline

#2 2009-06-19 20:55:00

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [MOUNT] Change mountpoint of swap (SOLVED)

ls -l /dev/disk/by-uuid/

Offline

#3 2009-06-20 10:21:46

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [MOUNT] Change mountpoint of swap (SOLVED)

You can also use "blkid"


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2009-06-20 22:20:57

MaitreEauEau
Member
Registered: 2009-04-05
Posts: 6

Re: [MOUNT] Change mountpoint of swap (SOLVED)

Hi,

Thanks for your answer!

NOW, I know how to know the uuid of my partitions. So, I can delete the swap, make another swap and a root directorie in an extended partition.

Thanks!

PS:I'm goiing to wait a bit for this -> I have a old computer that nobody is using in the house -> I'm going to use it to test cool

Bye

Last edited by MaitreEauEau (2009-06-20 22:21:08)

Offline

Board footer

Powered by FluxBB