Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello guys I want to install open mandriva on a USB. My plan was to boot it in live mode and then install it on another flash drive to have it installed and use it as a complete OS.
I want to prevent any type of changes to my internal hard drives. So I think to boot up the flash drive, unmount the 2 internal hard drives and then install the system on the mounted flashdrive. My question is do I have to unmount the disks in the live environment and I'm ok or I have to fisically remove the hard drives from the computer? Also if I unmount the hard drives in the open mandriva live environment are they unmounted even when I boot up my main normal OS (that is installed on the 2 hard drives) or the os will automatically mount them as usual ?
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,503
Rep:
I always hate live distros that automatically mount internal drives!
You can boot up into live mode, insert your 2nd pendrive, open a terminal & type
Code:
dmesg | tail
that will show you what your 2nd pendrive has been designated, (probably /dev/sdd in your case with two internal HDDs), now you just install to that drive.
If you want to, you can of course, unmount your internal drives as well, best safe than sorry, but you should be offered all available drives to choose which to install to anyway.
I always hate live distros that automatically mount internal drives!
You can boot up into live mode, insert your 2nd pendrive, open a terminal & type
Code:
dmesg | tail
that will show you what your 2nd pendrive has been designated, (probably /dev/sdd in your case with two internal HDDs), now you just install to that drive.
If you want to, you can of course, unmount your internal drives as well, best safe than sorry, but you should be offered all available drives to choose which to install to anyway.
Thank you my friend. So I don't have to fisically remove them from the case just unmount them and I'm ok ?
Thank you very much again for the reply.
do I have to unmount the disks in the live environment and I'm ok or I have to fisically remove the hard drives from the computer? Also if I unmount the hard drives in the open mandriva live environment are they unmounted even when I boot up my main normal OS (that is installed on the 2 hard drives) or the os will automatically mount them as usual ?
If the drives are physically connected, there is still a (marginal) possibility that they can be written to. You could disconnect them logically with
Code:
echo > /sys/class/block/sdX/device/delete
where X is the drive letter (the precise file path may be different on Mandriva)
Second question: Unmounting the drives in the live OS has no effect on the disk-based OS.
If the drives are physically connected, there is still a (marginal) possibility that they can be written to. You could disconnect them logically with
Code:
echo > /sys/class/block/sdX/device/delete
where X is the drive letter (the precise file path may be different on Mandriva)
Second question: Unmounting the drives in the live OS has no effect on the disk-based OS.
Is this command echo > /sys/class/block/sdX/device/delete dangerous maybe when I boot into the disk os the drives will be logically disconnected or this command only affects the live distro? And also where you wrote device you mean dev/sda, /dev/sdb ecc...
The command tells the kernel to "forget" the disk. When you reboot, a new kernel is created in RAM and discovers all hardware anew. The new kernel is not affected.
Yes, I meant sda, sdb etc. Pick the correct ones, otherwise the Live OS will act funny.
The command tells the kernel to "forget" the disk. When you reboot, a new kernel is created in RAM and discovers all hardware anew. The new kernel is not affected.
Yes, I meant sda, sdb etc. Pick the correct ones, otherwise the Live OS will act funny.
Thank you very much supportive people like you are the ones that make linux great.
The command tells the kernel to "forget" the disk. When you reboot, a new kernel is created in RAM and discovers all hardware anew. The new kernel is not affected.
Yes, I meant sda, sdb etc. Pick the correct ones, otherwise the Live OS will act funny.
Bro I wrote echo > /sys/class/block/sdX//dev/sdb/delete and it says me "There is no such file or directory"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.