You are not logged in.

#1 2012-07-26 09:46:32

swordfish
Member
Registered: 2012-01-14
Posts: 160

[solved] New ISO: From USB-Stick to USB-Drive

Hi there,

yesterday, I've installed Arch on an external USB-drive that is connected to my laptop (out of pure curiosity). I've started the new ISO-image from an USB-stick.

The installation went pretty well, but now I have a little problem - because of the USB-drives smile .

The situation: As long as the USB-stick is connected to the laptop I can start Arch from the external USB-drive. If I remove the stick Arch doesn't start any longer because the USB-"syntax" (can I say that?) has changed.

If both drives are connected: The stick is /dev/sdb and the harddrive is /dev/sdc

If I remove the stick, the harddrive becomes /dev/sdb and won't be mounted any longer.

During the installation I've created the partitions with the "-L" switch:

# mkfs.ext2 -L "Boot" /dev/sdc1
# mkfs.ext4 -L "Root" /dev/sdc5
# mkfs.ext4 -L "Home" /dev/sdc7
# mkswap -L "Swap" /dev/sdc6

The fstab-entries look like this example:

# UUID=6f639e1d-9cef-4830-b30e-3b74ce121b04 LABEL="Root"
/dev/sdc5   /    ext4    rw,relatime,data=ordered    0  1

So question: Would it be sufficient to work on /etc/fstab and change all /dev/sdc to /dev/sdb? Or can I simply use the existing UUIDs?

Last edited by swordfish (2012-07-26 20:11:09)


Arch_x64 on Thinkpad Edge E520 (Intel Core i5, 4 GB RAM, 128 GB Crucial M4 SSD) + ITX-Desktop (Asrock H77M-ITX, Intel Core i3-2120T, 8GB RAM, 64 GB Samsung 830 SSD)

Offline

#2 2012-07-26 09:54:01

Larsson
Member
From: Sweden
Registered: 2010-03-22
Posts: 156

Re: [solved] New ISO: From USB-Stick to USB-Drive

It should be good if you use UUID for your usb stick.


"If the person you are talking to doesn't appear to be listening, be patient. It may simply be that he has a small piece of fluff in his ear." - A.A. Milne (Winnie-the-Pooh)

Offline

#3 2012-07-26 10:49:54

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [solved] New ISO: From USB-Stick to USB-Drive

UUIDs or labels are always preferable to /dev/sd*, because the latter can change, as in your case.

Offline

#4 2012-07-26 20:11:50

swordfish
Member
Registered: 2012-01-14
Posts: 160

Re: [solved] New ISO: From USB-Stick to USB-Drive

Switched to the UUIDs - works fine smile


Arch_x64 on Thinkpad Edge E520 (Intel Core i5, 4 GB RAM, 128 GB Crucial M4 SSD) + ITX-Desktop (Asrock H77M-ITX, Intel Core i3-2120T, 8GB RAM, 64 GB Samsung 830 SSD)

Offline

Board footer

Powered by FluxBB