Set internal hard drives unaccessible to imager


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Set internal hard drives unaccessible to imager
# 8  
Old 01-20-2012
I didn't suggest editing a rule, but adding a rule.

I don't think /dev/sda is generated by any rule -- it's a default. Kernel says this device is named 'sda', and no udev rules change that name, so it just ends up /dev/sda. (Yes, there's rules related to sda already, but none of them actually rename it. So the default name remains.)

My intent is to catch the devices you don't want to use and prevent them from appearing in their default locations by giving them different names.
# 9  
Old 01-21-2012
I added the 00-custom.rule under /etc/udev/rules.d/ and still shows my hard drive as an option.. hmmmm.
Checked my squashfs up for the paths and the rule did its job - clonezilla still shows the hard drive as available.

Under /dev/skipme/ I have
sda, sdb, sdc, sr0

Under /dev/ I have
sda, sda1, sda2, sdb, sdb1, sdc


==================================

drives shown in system are:
sda - 80GB Hard drive
sdb - 16GB usb clonezilla live
sdc - doesn't show valid partition but is a loader stick as well 8 gb

---------- Post updated at 01:24 PM ---------- Previous update was at 12:58 PM ----------

Found out an easy way without having to even unpack the filesystem and modifying.

squashfs doesn't save any changes so a startup command to delete kernel modules will have no effect if I wanted to have them enabled the next time.

set my bootup param to do the following
rmmod ahci
rmmod libahci
rmmod libata

no more hard drives show up available on the system - If I want them enabled just leave those commands not available on another menu item

Last edited by traustic; 01-20-2012 at 07:01 PM..
# 10  
Old 01-23-2012
Sorry about the rule, I was convinced that overriding the default would prevent the rule being created... I also can't tell what all the existing rules you have are. udev doesn't seem to have a "match this rule and STOP PROCESSING RIGHT NOW" directive, otherwise I'd have done that too.

Glad that works. Just beware the system doesn't get it in its head to modprobe it again when a device gets plugged in or something. You might want to move or remove ahci.ko itself (if possible).

sdc may be weird because some usb sticks come formatted without partition tables at all -- they're formatted like old-fashioned floppy disks, with FAT partitions right at the boot sector itself.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Understanding volumes and hard drives

Ok so i thought i was smart but i can tell I need some help. I am playing around with understanding lvm and adding disks to a linux box. I added a disk and then ran what i thought were commands to add this disk to the box but I think I messed up and would like some help. My question is did i... (5 Replies)
Discussion started by: cptkirkh
5 Replies

2. Solaris

Solaris 8 - Accessing Hard Drives

Hi, I have two SCSI Hard Drives in a Sun Solaris 8 server as shown below. I would like to access Disk1 and look at its contents, directory structure and files. How do I change my default directory from Disk 0 to Disk 1 and vice versa? Thank you. (5 Replies)
Discussion started by: ssabet
5 Replies

3. Hardware

Hard Drives and MBR

Hello everyone. I have a question which I may know the answer to, I'm just looking for a confirmation. When it comes to the MBR of a hard drive, i've read in multiple sources that it's always located in the first sector of the hard drive. Is the MBR there from the factory? When I buy a new blank... (3 Replies)
Discussion started by: Lost in Cyberia
3 Replies

4. Solaris

Reinstall old hard drives

I have a T2000 Sun-Fire server. I have 2 sets of drives in a raid 1. Lets call them Set A and Set B. I had Set A installed and working. I needed a new install so I so build up Set B. After some time I wanted to put Set A back in the server. Now the system will not boot off of Set A. I tried to boot... (7 Replies)
Discussion started by: stu1811
7 Replies

5. UNIX for Dummies Questions & Answers

How to set server's ip address, router, network mask and set if it is an internal or external ip?

Hello, I need to write a program which sets server's ip address, router, network mask. Program also should set if it is an internal or external ip. Maybe someone can help me ? Any information from u is very useful :b: I stopped at .. :( #!/bin/sh A=`hostname -i` echo "server ip address is $A"... (4 Replies)
Discussion started by: zagaruika
4 Replies

6. Filesystems, Disks and Memory

Help adding new hard drives

Folks; I just added 2 physical new hard drives to my SUSE server. My server is already running SUSE 10.3 version. Is there a command i can use to add the new space or even see if the system can sees them? (3 Replies)
Discussion started by: Katkota
3 Replies

7. Solaris

formating and repartitioning an external hard drives

Version: solaris 10 x86 I just got a western digital external harddrive formated with fat 32. this drive came with some setup files which is meant for windows or mac. I want to reformat and partition this drive into two ( for solaris and windows) such that the setup files will still be there... (2 Replies)
Discussion started by: seyiisq
2 Replies

8. Filesystems, Disks and Memory

Opinions on Internal SCSI Tape Drives for FreeBSD home server?

Any recommend manufacturers for an internal SCSI tape drive in my FreeBSD 7.0 home server? Besides RAID-1, I'm not backing-up, but man, are they expensive! What makes a tape drive so darn pricy? There is no way I can afford a new drive so I'll start looking on eBay and craigslist to see if there... (3 Replies)
Discussion started by: Aaron Van
3 Replies

9. Linux

No Hard Drives Have Been Found

I am using an Acer Aspire 4720Z with two partitions C and D. Windows is installed on C and I decided to install Red Hat Linux 9 in partition D. The two partitions are in NTFS file system. During my installation of the the Linux, a prompt was displayed on screen with the message: "No hard drives... (2 Replies)
Discussion started by: tamcomng
2 Replies

10. UNIX for Dummies Questions & Answers

Hard drives

Will some one tell me what this means. "warning: ida 0 <slot 6> : command timed out on dev 1/42 blk 4824290 logical unit=0 blocks=5512102, size 2, cmd=0x20." I'm running SCO 505 on a proliant 1600r. Thnank you in advance. (3 Replies)
Discussion started by: franruiz
3 Replies
Login or Register to Ask a Question