I use a Technoethical refurbished ThinkPad t400s with 64bit Debian stretch and recently decided to swap my compact disc drive for an additional hard disc. It basically works but for some odd reason the disk doesn't mount automatically but can be found only under "other locations" in Nautilus and I need to type in my root password before I can access it.
I guess it can be set up in a way that it just shows up in Nautilus like other normal (even external) discs and without the need to type in the root password? Do you have any idea why this disc might show up in this particular way and how I might be able to change that?
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
[solved] thinkpad t400s cd drive replacement disc mounting
- Onsemeliot
- Posts: 333
- Joined: 2010-12-15 14:43
- Has thanked: 20 times
- Been thanked: 5 times
[solved] thinkpad t400s cd drive replacement disc mounting
Last edited by Onsemeliot on 2018-09-17 14:58, edited 1 time in total.
Re: thinkpad t400s cd drive replacement disc mounting proble
In terminal run as root
then, as normal user
Paste both, if you are not familiar with those. Idea is that you should get UUID of new disk to fstab.
Code: Select all
blkid
Code: Select all
cat /etc/fstab
-
- Emeritus
- Posts: 2435
- Joined: 2010-12-07 19:55
- Has thanked: 14 times
- Been thanked: 54 times
Re: thinkpad t400s cd drive replacement disc mounting proble
It's a bit old, but this suggests that the DVD-Rom will power off when not in use - and similarly the Hard Drive in the uUtrabay will power off.
https://www.linuxquestions.org/question ... 175531429/
https://www.linuxquestions.org/question ... 175531429/
Re: thinkpad t400s cd drive replacement disc mounting proble
I've set my hdds spin down after certain idle time. When I need those, I don't have to anything unusual, of course there is a short lag, when hdd spins up. All UUIDs are in fstab.arochester wrote:It's a bit old, but this suggests that the DVD-Rom will power off when not in use - and similarly the Hard Drive in the uUtrabay will power off.
From /etc/fstab:
# Use 'blkid' 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).
So I would try. If power is not controlled by kernel, then it can be tricky,
- Onsemeliot
- Posts: 333
- Joined: 2010-12-15 14:43
- Has thanked: 20 times
- Been thanked: 5 times
Re: thinkpad t400s cd drive replacement disc mounting proble
Thank you very much for your fast answers. The disk "160gb" (sdb1) clearly gets recognized as root but is misinterpreted as CD drive as a normal user:arzgi wrote:Paste both, if you are not familiar with those. Idea is that you should get UUID of new disk to fstab.
Code: Select all
# blkid
/dev/mapper/sda5_crypt: UUID="eICKHI-aw0t-sJU9-p42S-ivio-QqXu-XcBVkS" TYPE="LVM2_member"
/dev/mapper/pc--pers--vg-root: UUID="470af472-b9bc-4c76-8b1b-7edea9556aa5" TYPE="ext4"
/dev/sda1: UUID="cdfccc03-136a-4b98-a626-4c2c55117a83" TYPE="ext2" PARTUUID="c2f7c768-01"
/dev/sda5: UUID="02a5f41b-f3f5-4e8e-ae98-729c789b0371" TYPE="crypto_LUKS" PARTUUID="c2f7c768-05"
/dev/sdb1: LABEL="160gb" UUID="2aec4e55-db00-4cef-8f09-25d47c4b5216" TYPE="ext4"
/dev/mapper/pc--pers--vg-swap_1: UUID="a79a0e73-b554-4616-9875-306dafa6e0ac" TYPE="swap"
$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' 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>
/dev/mapper/pc--pers--vg-root / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=cdfccc03-136a-4b98-a626-4c2c55117a83 /boot ext2 defaults 0 2
/dev/mapper/pc--pers--vg-swap_1 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
Re: thinkpad t400s cd drive replacement disc mounting proble
Now you should identify your disks.
might help doing that.
Then make mount point, some directory.
As root edit /etc/fstab, add line for your new disk:
After editing, reboot, or as root:
That was my original idea, but after archoester's post, I say your mileage may vary. Worth try anyway.
Code: Select all
/dev/disk/by-uuid/
Then make mount point, some directory.
As root edit /etc/fstab, add line for your new disk:
Code: Select all
UUID = [blkid] [mount point] [fs type] defaults 0, 2
Code: Select all
mount -a
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: thinkpad t400s cd drive replacement disc mounting proble
No, you are misinterpreting the contents of fstab.Onsemeliot wrote:The disk "160gb" (sdb1) clearly gets recognized as root but is misinterpreted as CD drive as a normal user:Code: Select all
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
This line was added during the installation because a CD drive was present, and it just means that the CD may be mounted on /media/cdrom0 by a normal user.
Now you must add a line to automatically mount the "disk" (actually the filesystem in the partition) on some mount point at boot time.
For example :
Code: Select all
UUID=2aec4e55-db00-4cef-8f09-25d47c4b5216 /extradisk ext4 nofail
Notes :
- Do not use a mount point in /media, it is reserved for removable media.
- Do not use /mnt or a subdirectory, it is reserved for temporary mounts.
- Onsemeliot
- Posts: 333
- Joined: 2010-12-15 14:43
- Has thanked: 20 times
- Been thanked: 5 times
Re: thinkpad t400s cd drive replacement disc mounting proble
Thanks for your help and all your explanations. The disk is now accessible without the need to type my root password.