You are not logged in.

#1 2013-08-25 02:23:31

peterpeter
Member
Registered: 2013-05-21
Posts: 8

[SOLVED] Remove hard drive

I set up Arch Linux with a hard drive /dev/sdc connected to the computer. I now want to remove this hard drive completely. However on boot (using Syslinux with no chain for this hard drive) the system stops at the start job for that device.
If I plug the hard drive back in (connect sata cable) all works well again.
Where do I remove the device so that the boot process does not expect it to be connected.
Thanks

Last edited by peterpeter (2013-08-25 12:46:58)

Offline

#2 2013-08-25 02:27:46

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,170
Website

Re: [SOLVED] Remove hard drive

Without anymore information, I wouldn't know what to say, but the /etc/fstab file has all the information about what filesystems are to be mounted and where they should be mounted. So:
1) could you post your /etc/fstab file please?
2) what does your machine actually say when it kicks up the error?
3) are you using a set-up like LVM or RAID?

Last edited by clfarron4 (2013-08-25 02:29:55)


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#3 2013-08-25 03:11:35

peterpeter
Member
Registered: 2013-05-21
Posts: 8

Re: [SOLVED] Remove hard drive

Thanks clfarron4,
The device /dev/sdd1 is not listed in fstab. I can mount it using  sudo mount or using Dolphin (KDE on Arch Linux) if I want to.
If the hard drive is not plugged in, the boot message is: a start job is running for dev-sdd1.device
This then times out
History is that I installed Arch on another hard drive with Linux Mint on sdd1 using grub and os-prober. I assume that the system (the kernal?) now expects to find that hard drive and boot fails if I disconnect it.
Presumably there is a way of telling Arch that the device is not there, but I do not know what file to modify.

I am not using LVM or RAID

Offline

#4 2013-08-25 08:23:48

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Re: [SOLVED] Remove hard drive

Could you post the ouput of

lsblk

and

cat /etc/fstab

and

cat /boot/syslinux/syslinux.cfg

Edit:
also, have a read here https://wiki.archlinux.org/index.php/Pe … ice_naming

I would suggest referencing your filesystems by uuid in your /etc/fstab, and /boot/syslinux/syslinux.cfg files

*Although it sounds as though you are trying to mount something that is not there

Last edited by jrussell (2013-08-25 08:28:20)


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#5 2013-08-25 10:10:59

peterpeter
Member
Registered: 2013-05-21
Posts: 8

Re: [SOLVED] Remove hard drive

Hi Jrussell,
lblsk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 111.8G  0 disk
├─sda1   8:1    0  99.1G  0 part
└─sda2   8:2    0  12.7G  0 part /
sdb      8:16   0  37.3G  0 disk
└─sdb1   8:17   0  37.3G  0 part
sdc      8:32   0  55.9G  0 disk
├─sdc1   8:33   0  18.7G  0 part
├─sdc2   8:34   0     1K  0 part
└─sdc5   8:37   0  37.3G  0 part
sdd      8:48   0 465.8G  0 disk
├─sdd1   8:49   0   417G  0 part /mnt/Windata
└─sdd2   8:50   0  48.8G  0 part /home
sr0     11:0    1  1024M  0 rom

sdc is the drive I don't want

# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# /dev/sda2
UUID=6cc28dce-2d88-40da-b307-5573a0103aad       /               ext4           rw,relatime,data=ordered 0 1

# /dev/sdd2
UUID=e6c8090f-e7fe-43b9-aa7b-6fcc39764242       /home           ext4           rw,relatime,data=ordered 0 2

10.1.1.3:/homes/peter /mnt/backup nfs rw,user,hard,intr  0  0

# Windata
/dev/sdd1  /mnt/Windata ntfs-3g defaults,rw    0    0

and syslinux

# Config file for Syslinux -
# /boot/syslinux/syslinux.cfg
#
# Comboot modules:
#   * menu.c32 - provides a text menu
#   * vesamenu.c32 - provides a graphical menu
#   * chain.c32 - chainload MBRs, partition boot sectors, Windows bootloaders
#   * hdt.c32 - hardware detection tool
#   * reboot.c32 - reboots the system
#   * poweroff.com - shutdown the system
#
# To Use: Copy the respective files from /usr/lib/syslinux to /boot/syslinux.
# If /usr and /boot are on the same file system, symlink the files instead
# of copying them.
#
# If you do not use a menu, a 'boot:' prompt will be shown and the system
# will boot automatically after 5 seconds.
#
# Please review the wiki: https://wiki.archlinux.org/index.php/Syslinux
# The wiki provides further configuration examples

DEFAULT arch
PROMPT 0        # Set to 1 if you always want to display the boot: prompt
TIMEOUT 50
# You can create syslinux keymaps with the keytab-lilo tool
#KBDMAP de.ktl

# Menu Configuration
# Either menu.c32 or vesamenu32.c32 must be copied to /boot/syslinux
UI menu.c32
#UI vesamenu.c32

# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
MENU TITLE Arch Linux
#MENU BACKGROUND splash.png
MENU COLOR border       30;44   #40ffffff #a0000000 std
MENU COLOR title        1;36;44 #9033ccff #a0000000 std
MENU COLOR sel          7;37;40 #e0ffffff #20ffffff all
MENU COLOR unsel        37;44   #50ffffff #a0000000 std
MENU COLOR help         37;40   #c0ffffff #a0000000 std
MENU COLOR timeout_msg  37;40   #80ffffff #00000000 std
MENU COLOR timeout      1;37;40 #c0ffffff #00000000 std
MENU COLOR msg07        37;40   #90ffffff #a0000000 std
MENU COLOR tabmsg       31;40   #30ffffff #00000000 std

# boot sections follow
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*

LABEL arch
        MENU LABEL Arch Linux
        LINUX ../vmlinuz-linux
        APPEND root=/dev/sda2 rw
        INITRD ../initramfs-linux.img

LABEL archfallback
        MENU LABEL Arch Linux Fallback
        LINUX ../vmlinuz-linux
        APPEND root=/dev/sda2 rw
        INITRD ../initramfs-linux-fallback.img

LABEL windows
        MENU LABEL Windows
        COM32 chain.c32
        APPEND hd0 1


LABEL hdt
        MENU LABEL HDT (Hardware Detection Tool)
        COM32 hdt.c32

LABEL reboot
        MENU LABEL Reboot
        COM32 reboot.c32

LABEL off
        MENU LABEL Power Off
        COMBOOT poweroff.com

Offline

#6 2013-08-25 10:57:00

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,405
Website

Re: [SOLVED] Remove hard drive

Please use code tags.

Your problem is that, when you remove sdc, sdd becomes sdc in it's place. Rewrite your fstab entry for Windata to use UUID or label identification.

Last edited by WorMzy (2013-08-25 10:58:07)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2013-08-25 12:13:50

peterpeter
Member
Registered: 2013-05-21
Posts: 8

Re: [SOLVED] Remove hard drive

Sometimes experience is required to see the obvious. 

Thanks WorMzy

Offline

#8 2013-08-25 12:39:15

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Re: [SOLVED] Remove hard drive

Don't forget to mark your thread as 'solved'
Edit the first post and change the subject


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

Board footer

Powered by FluxBB